Skip to content

Commit 27d1daa

Browse files
committed
change architectual 🏗️
1 parent c02faeb commit 27d1daa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+825
-290
lines changed

app/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ dependencies {
2828
implementation Libs.support_appcompat_v7
2929
implementation Libs.support_constraint_layout
3030
implementation Libs.support_design
31-
implementation Libs.nfc_emv_lib
3231
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
3332
testImplementation Libs.junit
3433
androidTestImplementation Libs.test_runner

app/src/main/java/com/qifan/nfcbank/cardEmulation/MyHostApduService.java

-256
This file was deleted.

app/src/main/res/layout/activity_nfcsend.xml

-18
This file was deleted.

app/src/main/res/values/strings.xml

+5-13
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
<resources>
22
<string name="app_name">NFCBank</string>
3-
<string name="repoUrl">https://github.com/pro100svitlo/Credit-Card-NFC-Reader#questions-and-help</string>
4-
<string name="tv_noNfc">There is no NFC module on this device</string>
5-
<string name="tv_tapYourCard">Please put your card to back panel of the phone</string>
6-
<string name="ad_progressBar_title">Scanning …</string>
7-
<string name="ad_progressBar_mess">Please do not remove or move card during reading.</string>
8-
<string name="snack_unknown_bank_card">This is unknown bank card. Please, go to my github repo!</string>
9-
<string name="snack_doNotMoveCard">Please do not move card, try again !</string>
10-
<string name="snack_unknownEmv">Unknown EMV card</string>
11-
<string name="snack_lockedNfcCard">NFC is locked on this card.</string>
12-
<string name="ad_nfcTurnOn_title">NFC is turned off.</string>
13-
<string name="ad_nfcTurnOn_message">You need turn on NFC module for scanning. Wish turn on it now?</string>
143
<string name="ad_nfcTurnOn_pos">Turn on</string>
154
<string name="ad_nfcTurnOn_neg">Dismiss</string>
165
<string name="initial_status_nfc">Waiting for NFC</string>
17-
<string name="aiddescription">aiddescription</string>
18-
<string name="servicedesc">servicedesc</string>
196
<string name="confirm">Confirm</string>
207
<string name="edit_text_hint">Input whatever your want</string>
218
<string name="toast_msg">please write something in editText</string>
9+
<string name="servicedesc">servicedesc</string>
10+
<string name="aiddescription">aiddescription</string>
11+
<string name="ad_nfcTurnOn_title">NFC is turned off.</string>
12+
<string name="ad_nfcTurnOn_message">You need turn on NFC module for scanning. Wish turn on it now?</string>
13+
<string name="tv_noNfc">There is no NFC module on this device</string>
2214
</resources>

nfcemvread/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

nfcemvread/build.gradle

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
4+
android {
5+
compileSdkVersion 28
6+
7+
8+
9+
defaultConfig {
10+
applicationId "com.qifan.nfcemvread"
11+
minSdkVersion 21
12+
targetSdkVersion 28
13+
versionCode 1
14+
versionName "1.0"
15+
16+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
17+
18+
}
19+
20+
buildTypes {
21+
release {
22+
minifyEnabled false
23+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
24+
}
25+
}
26+
27+
}
28+
29+
dependencies {
30+
implementation fileTree(dir: 'libs', include: ['*.jar'])
31+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
32+
implementation Libs.nfc_emv_lib
33+
implementation Libs.support_appcompat_v7
34+
implementation Libs.support_constraint_layout
35+
implementation Libs.support_design
36+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
37+
testImplementation Libs.junit
38+
androidTestImplementation Libs.test_runner
39+
androidTestImplementation Libs.espresso_core
40+
}

nfcemvread/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

0 commit comments

Comments
 (0)