@exxili/capacitor-nfc 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ExxiliCapacitorNfc.podspec +17 -17
- package/Package.swift +28 -28
- package/README.md +597 -595
- package/android/build.gradle +67 -67
- package/android/src/main/AndroidManifest.xml +2 -2
- package/android/src/main/kotlin/com/exxili/capacitornfc/MainActivity.kt +11 -11
- package/android/src/main/kotlin/com/exxili/capacitornfc/NFCPlugin.kt +492 -464
- package/dist/esm/definitions.d.ts +13 -0
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +4 -1
- package/dist/esm/web.js +3 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +4 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +4 -0
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/NFCPlugin/NFCPlugin.swift +181 -169
- package/ios/Sources/NFCPlugin/NFCReader.swift +507 -507
- package/ios/Sources/NFCPlugin/NFCWriter.swift +89 -89
- package/ios/Tests/NFCPluginTests/NFCPluginTests.swift +15 -15
- package/package.json +90 -90
package/android/build.gradle
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
ext {
|
|
2
|
-
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
buildscript {
|
|
9
|
-
ext {
|
|
10
|
-
kotlin_version = '2.1.21'
|
|
11
|
-
}
|
|
12
|
-
repositories {
|
|
13
|
-
google()
|
|
14
|
-
mavenCentral()
|
|
15
|
-
}
|
|
16
|
-
dependencies {
|
|
17
|
-
classpath 'com.android.tools.build:gradle:8.2.2'
|
|
18
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
apply plugin: 'com.android.library'
|
|
23
|
-
apply plugin: 'org.jetbrains.kotlin.android'
|
|
24
|
-
|
|
25
|
-
android {
|
|
26
|
-
namespace "com.exxili.capacitornfc"
|
|
27
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
|
|
28
|
-
defaultConfig {
|
|
29
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 33
|
|
30
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
|
|
31
|
-
versionCode 1
|
|
32
|
-
versionName "1.0"
|
|
33
|
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
34
|
-
}
|
|
35
|
-
buildTypes {
|
|
36
|
-
release {
|
|
37
|
-
minifyEnabled false
|
|
38
|
-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
lintOptions {
|
|
42
|
-
abortOnError false
|
|
43
|
-
}
|
|
44
|
-
compileOptions {
|
|
45
|
-
sourceCompatibility JavaVersion.VERSION_17
|
|
46
|
-
targetCompatibility JavaVersion.VERSION_17
|
|
47
|
-
}
|
|
48
|
-
kotlinOptions {
|
|
49
|
-
jvmTarget = '17'
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
repositories {
|
|
54
|
-
google()
|
|
55
|
-
mavenCentral()
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
dependencies {
|
|
60
|
-
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
61
|
-
implementation project(':capacitor-android')
|
|
62
|
-
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
63
|
-
implementation 'androidx.core:core-ktx:1.16.0'
|
|
64
|
-
testImplementation "junit:junit:$junitVersion"
|
|
65
|
-
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
66
|
-
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
67
|
-
}
|
|
1
|
+
ext {
|
|
2
|
+
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
|
|
4
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
|
|
5
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
buildscript {
|
|
9
|
+
ext {
|
|
10
|
+
kotlin_version = '2.1.21'
|
|
11
|
+
}
|
|
12
|
+
repositories {
|
|
13
|
+
google()
|
|
14
|
+
mavenCentral()
|
|
15
|
+
}
|
|
16
|
+
dependencies {
|
|
17
|
+
classpath 'com.android.tools.build:gradle:8.2.2'
|
|
18
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
apply plugin: 'com.android.library'
|
|
23
|
+
apply plugin: 'org.jetbrains.kotlin.android'
|
|
24
|
+
|
|
25
|
+
android {
|
|
26
|
+
namespace "com.exxili.capacitornfc"
|
|
27
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
|
|
28
|
+
defaultConfig {
|
|
29
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 33
|
|
30
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
|
|
31
|
+
versionCode 1
|
|
32
|
+
versionName "1.0"
|
|
33
|
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
34
|
+
}
|
|
35
|
+
buildTypes {
|
|
36
|
+
release {
|
|
37
|
+
minifyEnabled false
|
|
38
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
lintOptions {
|
|
42
|
+
abortOnError false
|
|
43
|
+
}
|
|
44
|
+
compileOptions {
|
|
45
|
+
sourceCompatibility JavaVersion.VERSION_17
|
|
46
|
+
targetCompatibility JavaVersion.VERSION_17
|
|
47
|
+
}
|
|
48
|
+
kotlinOptions {
|
|
49
|
+
jvmTarget = '17'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
repositories {
|
|
54
|
+
google()
|
|
55
|
+
mavenCentral()
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
dependencies {
|
|
60
|
+
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
61
|
+
implementation project(':capacitor-android')
|
|
62
|
+
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
63
|
+
implementation 'androidx.core:core-ktx:1.16.0'
|
|
64
|
+
testImplementation "junit:junit:$junitVersion"
|
|
65
|
+
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
66
|
+
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
67
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
-
</manifest>
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
+
</manifest>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
package com.exxili.capacitornfc
|
|
2
|
-
|
|
3
|
-
import android.os.Bundle
|
|
4
|
-
import com.getcapacitor.BridgeActivity
|
|
5
|
-
|
|
6
|
-
class MainActivity : BridgeActivity() {
|
|
7
|
-
public override fun onCreate(savedInstanceState: Bundle?) {
|
|
8
|
-
super.onCreate(savedInstanceState)
|
|
9
|
-
registerPlugin(NFCPlugin::class.java)
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
package com.exxili.capacitornfc
|
|
2
|
+
|
|
3
|
+
import android.os.Bundle
|
|
4
|
+
import com.getcapacitor.BridgeActivity
|
|
5
|
+
|
|
6
|
+
class MainActivity : BridgeActivity() {
|
|
7
|
+
public override fun onCreate(savedInstanceState: Bundle?) {
|
|
8
|
+
super.onCreate(savedInstanceState)
|
|
9
|
+
registerPlugin(NFCPlugin::class.java)
|
|
10
|
+
}
|
|
11
|
+
}
|