Skip to content

Commit

Permalink
change architectual 🏗️
Browse files Browse the repository at this point in the history
  • Loading branch information
underwindfall committed Dec 5, 2018
1 parent c02faeb commit 27d1daa
Show file tree
Hide file tree
Showing 52 changed files with 825 additions and 290 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Expand Up @@ -28,7 +28,6 @@ dependencies {
implementation Libs.support_appcompat_v7
implementation Libs.support_constraint_layout
implementation Libs.support_design
implementation Libs.nfc_emv_lib
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation Libs.junit
androidTestImplementation Libs.test_runner
Expand Down

This file was deleted.

18 changes: 0 additions & 18 deletions app/src/main/res/layout/activity_nfcsend.xml

This file was deleted.

18 changes: 5 additions & 13 deletions app/src/main/res/values/strings.xml
@@ -1,22 +1,14 @@
<resources>
<string name="app_name">NFCBank</string>
<string name="repoUrl">https://github.com/pro100svitlo/Credit-Card-NFC-Reader#questions-and-help</string>
<string name="tv_noNfc">There is no NFC module on this device</string>
<string name="tv_tapYourCard">Please put your card to back panel of the phone</string>
<string name="ad_progressBar_title">Scanning …</string>
<string name="ad_progressBar_mess">Please do not remove or move card during reading.</string>
<string name="snack_unknown_bank_card">This is unknown bank card. Please, go to my github repo!</string>
<string name="snack_doNotMoveCard">Please do not move card, try again !</string>
<string name="snack_unknownEmv">Unknown EMV card</string>
<string name="snack_lockedNfcCard">NFC is locked on this card.</string>
<string name="ad_nfcTurnOn_title">NFC is turned off.</string>
<string name="ad_nfcTurnOn_message">You need turn on NFC module for scanning. Wish turn on it now?</string>
<string name="ad_nfcTurnOn_pos">Turn on</string>
<string name="ad_nfcTurnOn_neg">Dismiss</string>
<string name="initial_status_nfc">Waiting for NFC</string>
<string name="aiddescription">aiddescription</string>
<string name="servicedesc">servicedesc</string>
<string name="confirm">Confirm</string>
<string name="edit_text_hint">Input whatever your want</string>
<string name="toast_msg">please write something in editText</string>
<string name="servicedesc">servicedesc</string>
<string name="aiddescription">aiddescription</string>
<string name="ad_nfcTurnOn_title">NFC is turned off.</string>
<string name="ad_nfcTurnOn_message">You need turn on NFC module for scanning. Wish turn on it now?</string>
<string name="tv_noNfc">There is no NFC module on this device</string>
</resources>
1 change: 1 addition & 0 deletions nfcemvread/.gitignore
@@ -0,0 +1 @@
/build
40 changes: 40 additions & 0 deletions nfcemvread/build.gradle
@@ -0,0 +1,40 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 28



defaultConfig {
applicationId "com.qifan.nfcemvread"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation Libs.nfc_emv_lib
implementation Libs.support_appcompat_v7
implementation Libs.support_constraint_layout
implementation Libs.support_design
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation Libs.junit
androidTestImplementation Libs.test_runner
androidTestImplementation Libs.espresso_core
}
21 changes: 21 additions & 0 deletions nfcemvread/proguard-rules.pro
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# 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 *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

0 comments on commit 27d1daa

Please sign in to comment.