backend_nfc
Serik.Uvaissov 2020-07-22 01:36:45 +06:00
parent 4196636df1
commit 3eb69b1ff2
6 changed files with 60 additions and 22 deletions

View File

@ -67,14 +67,16 @@ android {
buildConfigField ("String[]", "SUPPORTED_DEVICES", collectSupportedDevicesToArray()) buildConfigField ("String[]", "SUPPORTED_DEVICES", collectSupportedDevicesToArray())
} }
release { release {
minifyEnabled false //useProguard true
shrinkResources false //minifyEnabled false
//shrinkResources false
// proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release signingConfig signingConfigs.release
} }
} }
compileOptions { compileOptions {
//coreLibraryDesugaringEnabled true coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
@ -82,6 +84,7 @@ android {
kotlinOptions { kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString() jvmTarget = JavaVersion.VERSION_1_8.toString()
} }
} }
flutter { flutter {
@ -89,7 +92,7 @@ flutter {
} }
dependencies { dependencies {
//coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.9' coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.9'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
@ -99,26 +102,28 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
//m4bank dependencies //m4bank dependencies
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation deps.zlibrary implementation deps.zlibrary
implementation deps.hardware.terminalCommon.values()
implementation deps.hardware.aisino.aisino_common // implementation deps.hardware.aisino.aisino_common
implementation deps.hardware.aisino.vm20.values() // implementation deps.hardware.aisino.vm20.values()
implementation deps.hardware.wangpos.values() // implementation deps.hardware.wangpos.values()
implementation deps.hardware.roam.values() // implementation deps.hardware.roam.values()
implementation deps.hardware.spirelib // implementation deps.hardware.spirelib
implementation deps.hardware.icmp.values() // implementation deps.hardware.icmp.values()
implementation deps.hardware.atol.values() implementation deps.hardware.atol.values()
if (buildType.buildType == 'NFC') { implementation deps.hardware.terminalCommon.values()
//if (buildType.buildType == 'NFC') {
implementation deps.hardware.softpos.softpaylibrary implementation deps.hardware.softpos.softpaylibrary
implementation deps.hardware.softpos.softpay_dependencies implementation deps.hardware.softpos.softpay_dependencies
} else { //} else {
implementation deps.hardware.aisino.a90.values() // implementation deps.hardware.aisino.a90.values()
} //}
implementation deps.hardware.shtrih.values() // implementation deps.hardware.shtrih.values()
implementation deps.hardware.redlib // implementation deps.hardware.redlib
implementation deps.hardware.sunmi // implementation deps.hardware.sunmi
implementation deps.hardware.d200lib // implementation deps.hardware.d200lib
//Implementation okhhtp library //Implementation okhhtp library
implementation deps.okhttp.values() implementation deps.okhttp.values()
@ -135,7 +140,6 @@ dependencies {
implementation deps.timber implementation deps.timber
implementation deps.paperdb implementation deps.paperdb
implementation deps.greendao implementation deps.greendao
implementation deps.retro_stream implementation deps.retro_stream
implementation deps.websockets // Only for useWebsockets parameter implementation deps.websockets // Only for useWebsockets parameter

26
android/app/proguard-rules.pro vendored Normal file
View File

@ -0,0 +1,26 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\android_sdk\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
#Flutter Wrapper
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.** { *; }
-keep class io.flutter.util.** { *; }
-keep class io.flutter.view.** { *; }
-keep class io.flutter.** { *; }
-keep class io.flutter.plugins.** { *; }
#M4Bank Wrapper
-keep class java9.util.stream.** { *; }

View File

@ -19,7 +19,9 @@
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="Аман Касса" android:label="Аман Касса"
android:roundIcon="@mipmap/ic_launcher_rounded" android:roundIcon="@mipmap/ic_launcher_rounded"
android:usesCleartextTraffic="true"> android:usesCleartextTraffic="true"
android:networkSecurityConfig="@xml/network_security_config"
>
<activity android:name=".activities.BankActivity" android:theme="@android:style/Theme.Black.NoTitleBar"></activity> <activity android:name=".activities.BankActivity" android:theme="@android:style/Theme.Black.NoTitleBar"></activity>
<activity android:name=".bank.M4BankActivity" android:theme="@android:style/Theme.Light.NoTitleBar"></activity> <activity android:name=".bank.M4BankActivity" android:theme="@android:style/Theme.Light.NoTitleBar"></activity>
<activity <activity

View File

@ -2,7 +2,7 @@ package kz.com.aman.kassa.bank;
import android.widget.Toast; import android.widget.Toast;
import com.landicorp.uns.result; //import com.landicorp.uns.result;
import java.util.List; import java.util.List;

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<!--Set application-wide security config using base-config tag.-->
<base-config cleartextTrafficPermitted="true"/>
</network-security-config>

View File

@ -7,6 +7,7 @@ buildscript {
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.5.0' classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
} }