Skip to content

Commit ffd7afd

Browse files
committed
deploying version o.1
1 parent 4ca7d7f commit ffd7afd

File tree

59 files changed

+388
-46
lines changed

Some content is hidden

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

59 files changed

+388
-46
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fun setupNfc() {
6464
```
6565
9. Perform transactions by calling appropriate methods:
6666
```kotlin
67-
runBlocking {
67+
runBlocking {
6868
useCases.emvPayUseCase.invoke("100".toInt().toLong(), this@MainActivity, this@MainActivity)
6969
}
7070
```

app/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
plugins {
2-
id 'com.android.application'
2+
// id 'com.android.application'
33
id 'org.jetbrains.kotlin.android'
4-
id 'kotlin-parcelize'
4+
// id 'kotlin-parcelize'
5+
id 'com.android.library'
56
}
67

78
def apikeyPropertiesFile = rootProject.file("api_key.properties")
@@ -13,7 +14,7 @@ android {
1314
compileSdk 33
1415

1516
defaultConfig {
16-
applicationId "com.lovisgod.testVisaTTP"
17+
// applicationId "com.lovisgod.testVisaTTP"
1718
minSdk 29
1819
targetSdk 33
1920
versionCode 1
@@ -64,6 +65,7 @@ dependencies {
6465
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
6566
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
6667
implementation 'com.pixplicity.easyprefs:EasyPrefs:1.10.0'
68+
implementation project(':visattpsdk_aar')
6769
api "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.10"
6870

6971
// retrofit

app/src/main/AndroidManifest.xml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,42 +15,42 @@
1515
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
1616
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
1717

18-
<application
19-
android:allowBackup="true"
20-
android:name=".SampleApplication"
21-
android:dataExtractionRules="@xml/data_extraction_rules"
22-
android:fullBackupContent="@xml/backup_rules"
23-
android:icon="@mipmap/ic_launcher"
24-
android:label="@string/app_name"
25-
android:roundIcon="@mipmap/ic_launcher_round"
26-
android:supportsRtl="true"
27-
android:theme="@style/Theme.MyApplication"
28-
tools:replace="android:theme"
29-
tools:targetApi="31">
30-
<activity
31-
android:name=".MainActivity"
32-
android:exported="true">
33-
<intent-filter>
34-
<action android:name="android.intent.action.MAIN" />
35-
36-
<category android:name="android.intent.category.LAUNCHER" />
37-
</intent-filter>
38-
39-
<!-- <intent-filter>-->
40-
<!-- <action android:name="android.nfc.action.NDEF_DISCOVERED"/>-->
41-
<!-- <category android:name="android.intent.category.DEFAULT"/>-->
42-
<!-- </intent-filter>-->
18+
<!-- <application-->
19+
<!-- android:allowBackup="true"-->
20+
<!-- android:name=".SampleApplication"-->
21+
<!-- android:dataExtractionRules="@xml/data_extraction_rules"-->
22+
<!-- android:fullBackupContent="@xml/backup_rules"-->
23+
<!-- android:icon="@mipmap/ic_launcher"-->
24+
<!-- android:label="@string/app_name"-->
25+
<!-- android:roundIcon="@mipmap/ic_launcher_round"-->
26+
<!-- android:supportsRtl="true"-->
27+
<!-- android:theme="@style/Theme.MyApplication"-->
28+
<!-- tools:replace="android:theme"-->
29+
<!-- tools:targetApi="31">-->
30+
<!-- <activity-->
31+
<!-- android:name=".MainActivity"-->
32+
<!-- android:exported="true">-->
4333
<!-- <intent-filter>-->
44-
<!-- <action android:name="android.nfc.action.TECH_DISCOVERED"/>-->
45-
<!-- </intent-filter>-->
34+
<!-- <action android:name="android.intent.action.MAIN" />-->
4635

47-
<!-- <meta-data android:name="android.nfc.action.TECH_DISCOVERED"-->
48-
<!-- android:resource="@xml/nfc_tech_list" />-->
49-
50-
<!-- <intent-filter>-->
51-
<!-- <action android:name="android.nfc.action.TAG_DISCOVERED"/>-->
36+
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
5237
<!-- </intent-filter>-->
53-
</activity>
54-
</application>
38+
39+
<!--&lt;!&ndash; <intent-filter>&ndash;&gt;-->
40+
<!--&lt;!&ndash; <action android:name="android.nfc.action.NDEF_DISCOVERED"/>&ndash;&gt;-->
41+
<!--&lt;!&ndash; <category android:name="android.intent.category.DEFAULT"/>&ndash;&gt;-->
42+
<!--&lt;!&ndash; </intent-filter>&ndash;&gt;-->
43+
<!--&lt;!&ndash; <intent-filter>&ndash;&gt;-->
44+
<!--&lt;!&ndash; <action android:name="android.nfc.action.TECH_DISCOVERED"/>&ndash;&gt;-->
45+
<!--&lt;!&ndash; </intent-filter>&ndash;&gt;-->
46+
47+
<!--&lt;!&ndash; <meta-data android:name="android.nfc.action.TECH_DISCOVERED"&ndash;&gt;-->
48+
<!--&lt;!&ndash; android:resource="@xml/nfc_tech_list" />&ndash;&gt;-->
49+
50+
<!--&lt;!&ndash; <intent-filter>&ndash;&gt;-->
51+
<!--&lt;!&ndash; <action android:name="android.nfc.action.TAG_DISCOVERED"/>&ndash;&gt;-->
52+
<!--&lt;!&ndash; </intent-filter>&ndash;&gt;-->
53+
<!-- </activity>-->
54+
<!-- </application>-->
5555

5656
</manifest>

app/src/main/java/com/lovisgod/testVisaTTP/handlers/network/PurchaseResponse.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.lovisgod.testVisaTTP.handlers.network
22

33
import android.os.Parcelable
4-
import kotlinx.android.parcel.Parcelize
54
import org.simpleframework.xml.Element
65
import org.simpleframework.xml.Namespace
76
import org.simpleframework.xml.NamespaceList
@@ -13,7 +12,7 @@ import org.simpleframework.xml.Root
1312
Namespace( prefix = "ns2", reference = "http://interswitchng.com"),
1413
Namespace( prefix = "ns3", reference = "http://tempuri.org/ns.xsd")
1514
)
16-
@Parcelize
15+
1716
data class PurchaseResponse(
1817

1918
@field:Element(name = "description", required = false)
@@ -58,7 +57,6 @@ data class PurchaseResponse(
5857
@field: Element(name = "transactionId", required = false)
5958
var transactionId: String? = null,
6059

61-
@field: Element(name = "transtype", required = false)
6260
var transTYpe: String? = null,
6361

6462
@field: Element(name = "paymentType", required = false)
@@ -76,7 +74,7 @@ data class PurchaseResponse(
7674
// val inquiryResponse: InquiryResponse? = null,
7775

7876
@field:Element(name = "remoteResponseCode", required = false)
79-
var remoteResponseCode: String = ""):Parcelable
77+
var remoteResponseCode: String = "")
8078

8179

8280

app/src/main/java/com/lovisgod/testVisaTTP/models/datas/TerminalInfo.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ package com.lovisgod.testVisaTTP.models.datas
33
import android.os.Parcelable
44
import com.google.gson.Gson
55
import com.pixplicity.easyprefs.library.Prefs
6-
import kotlinx.android.parcel.Parcelize
76
import org.simpleframework.xml.Element
87
import org.simpleframework.xml.Root
98

10-
@Parcelize
119
@Root(name = "terminalInfoBySerials", strict = false)
1210
data class TerminalInfo(
1311

@@ -63,7 +61,7 @@ data class TerminalInfo(
6361
var terminalCapabilities: String = "E0F8C8",
6462
var terminalExtCapabilities: String = "F000F0F001",
6563
var terminalEntryMode: String = "05"
66-
): Parcelable {
64+
) {
6765
override fun toString(): String {
6866
"""code: ${terminalCode}
6967
capailty: ${terminalCapabilities}

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ dependencyResolutionManagement {
1414
}
1515
}
1616
rootProject.name = "My Application"
17-
include ':app'
17+
include ':app', ':visattpsdk_aar'

visattpsdk_aar/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
configurations.maybeCreate("default")
2+
artifacts.add("default", file('TTPKernelv22-prod-release.aar'))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
o/com.visa.app.ttpkernel

0 commit comments

Comments
 (0)