react-native-nami-sdk 3.4.12 → 3.4.13-rc.202610231929
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/android/build.gradle +8 -23
- package/dist/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/react-native-nami-sdk.podspec +1 -1
- package/src/version.ts +1 -1
- package/android/README.md +0 -15
package/android/build.gradle
CHANGED
|
@@ -13,7 +13,12 @@ if (isNewArchitectureEnabled()) {
|
|
|
13
13
|
|
|
14
14
|
apply plugin: 'com.android.library'
|
|
15
15
|
// apply plugin: 'maven'
|
|
16
|
-
|
|
16
|
+
// AGP 9 compiles Kotlin itself unless the host opts out with android.builtInKotlin=false,
|
|
17
|
+
// and applying kotlin-android on top of built-in Kotlin fails the build.
|
|
18
|
+
def agpMajorVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
|
|
19
|
+
if (agpMajorVersion < 9 || project.findProperty("android.builtInKotlin")?.toString() == "false") {
|
|
20
|
+
apply plugin: "kotlin-android"
|
|
21
|
+
}
|
|
17
22
|
buildscript {
|
|
18
23
|
ext.kotlin_version = '2.1.0'
|
|
19
24
|
// The Android Gradle plugin is only required when opening the android folder stand-alone.
|
|
@@ -85,8 +90,8 @@ dependencies {
|
|
|
85
90
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
86
91
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
87
92
|
|
|
88
|
-
playImplementation "com.namiml:sdk-android:3.4.
|
|
89
|
-
amazonImplementation "com.namiml:sdk-amazon:3.4.
|
|
93
|
+
playImplementation "com.namiml:sdk-android:3.4.13-rc.202610231929"
|
|
94
|
+
amazonImplementation "com.namiml:sdk-amazon:3.4.13-rc.202610231929"
|
|
90
95
|
|
|
91
96
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
92
97
|
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.0.4"
|
|
@@ -100,23 +105,3 @@ if (isNewArchitectureEnabled()) {
|
|
|
100
105
|
codegenJavaPackageName = "com.namiml.reactnative"
|
|
101
106
|
}
|
|
102
107
|
}
|
|
103
|
-
|
|
104
|
-
configurations {
|
|
105
|
-
customConfig.extendsFrom implementation
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
afterEvaluate { project ->
|
|
109
|
-
// some Gradle build hooks ref:
|
|
110
|
-
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
|
|
111
|
-
android.libraryVariants.all { variant ->
|
|
112
|
-
def name = variant.name.capitalize()
|
|
113
|
-
def javaCompileTask = variant.javaCompileProvider.get()
|
|
114
|
-
task "jar${name}"(type: Jar, dependsOn: javaCompileTask) {
|
|
115
|
-
from javaCompileTask.destinationDir
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
task installArchives(type: Upload) {
|
|
120
|
-
configuration = configurations.archives
|
|
121
|
-
}
|
|
122
|
-
}
|
package/dist/src/version.d.ts
CHANGED
package/package.json
CHANGED
package/src/version.ts
CHANGED
package/android/README.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# README
|
|
2
|
-
|
|
3
|
-
If you want to publish the lib as a maven dependency, follow these steps before publishing a new version to npm:
|
|
4
|
-
|
|
5
|
-
1. Be sure to have the Android [SDK](https://developer.android.com/studio/index.html) and [NDK](https://developer.android.com/ndk/guides/index.html) installed
|
|
6
|
-
2. Be sure to have a `local.properties` file in this folder that points to the Android SDK and NDK
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
ndk.dir=/Users/{username}/Library/Android/sdk/ndk-bundle
|
|
10
|
-
sdk.dir=/Users/{username}/Library/Android/sdk
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
3. Delete the `maven` folder
|
|
14
|
-
4. Run `./gradlew installArchives`
|
|
15
|
-
5. Verify that latest set of generated files is in the maven folder with the correct version number
|