@account-kit/react-native-signer 4.13.0 → 4.14.0
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 +66 -6
- package/package.json +5 -4
package/android/build.gradle
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import groovy.json.JsonSlurper
|
|
2
|
+
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
|
|
3
|
+
import com.vanniktech.maven.publish.SonatypeHost
|
|
4
|
+
|
|
1
5
|
buildscript {
|
|
2
6
|
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
|
|
3
7
|
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["ReactNativeSigner_kotlinVersion"]
|
|
@@ -16,6 +20,7 @@ buildscript {
|
|
|
16
20
|
|
|
17
21
|
plugins {
|
|
18
22
|
id 'org.jetbrains.kotlin.plugin.serialization' version "$ReactNativeSigner_kotlinVersion"
|
|
23
|
+
id("com.vanniktech.maven.publish") version "0.30.0"
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
@@ -104,6 +109,47 @@ android {
|
|
|
104
109
|
}
|
|
105
110
|
}
|
|
106
111
|
|
|
112
|
+
def getLibraryVersion() {
|
|
113
|
+
def packageFile = file("../package.json")
|
|
114
|
+
def packageJson = new JsonSlurper().parseText(packageFile.getText()) as Map<String, String>
|
|
115
|
+
return packageJson["version"] as String
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
mavenPublishing {
|
|
119
|
+
configure(new AndroidSingleVariantLibrary("release", true, true))
|
|
120
|
+
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
|
|
121
|
+
signAllPublications()
|
|
122
|
+
|
|
123
|
+
coordinates("com.alchemy.accountkit", "reactnativesigner", getLibraryVersion())
|
|
124
|
+
|
|
125
|
+
pom {
|
|
126
|
+
name = "Account Kit React Native Stamper"
|
|
127
|
+
description = "React Native Android module for Stamping requests with the Alchemy Signer"
|
|
128
|
+
inceptionYear = "2024"
|
|
129
|
+
url = "https://github.com/alchemyplatform/aa-sdk/"
|
|
130
|
+
licenses {
|
|
131
|
+
license {
|
|
132
|
+
name = "MIT License"
|
|
133
|
+
url = "https://github.com/alchemyplatform/aa-sdk/blob/main/LICENSE"
|
|
134
|
+
distribution = "https://github.com/alchemyplatform/aa-sdk/blob/main/LICENSE"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
developers {
|
|
138
|
+
// TODO: this needs to be like alchemyplatform or something
|
|
139
|
+
developer {
|
|
140
|
+
id = "moldy530"
|
|
141
|
+
name = "Michael Moldoveanu"
|
|
142
|
+
url = "https://github.com/moldy530"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
scm {
|
|
146
|
+
url = "https://github.com/alchemyplatform/aa-sdk/"
|
|
147
|
+
connection = "scm:git:git://github.com/alchemyplatform/aa-sdk.git"
|
|
148
|
+
developerConnection = "scm:git:ssh://git@github.com/alchemyplatform/aa-sdk.git"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
107
153
|
repositories {
|
|
108
154
|
mavenCentral()
|
|
109
155
|
google()
|
|
@@ -112,14 +158,17 @@ repositories {
|
|
|
112
158
|
dependencies {
|
|
113
159
|
// For < 0.71, this will be from the local maven repo
|
|
114
160
|
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
161
|
+
// TODO: 1) we should assume folks are on > 0.71 (they have to be for new arch) and then we should read the correct version from pkg.json
|
|
162
|
+
// of the dependency
|
|
163
|
+
// we can't use "com.facebook.react:react-native:+" here because it won't publish to maven if we do
|
|
115
164
|
//noinspection GradleDynamicVersion
|
|
116
|
-
implementation "com.facebook.react:react-
|
|
165
|
+
implementation "com.facebook.react:react-android:0.76"
|
|
117
166
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
167
|
+
api "javax.xml.bind:jaxb-api:2.3.1"
|
|
168
|
+
api "xerces:xercesImpl:2.12.2"
|
|
169
|
+
api "androidx.security:security-crypto:1.1.0-alpha06"
|
|
170
|
+
api "com.google.crypto.tink:tink-android:1.15.0"
|
|
171
|
+
api "org.bitcoinj:bitcoinj-core:0.16.3"
|
|
123
172
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1"
|
|
124
173
|
}
|
|
125
174
|
|
|
@@ -130,3 +179,14 @@ if (isNewArchitectureEnabled()) {
|
|
|
130
179
|
codegenJavaPackageName = "com.accountkit.reactnativesigner"
|
|
131
180
|
}
|
|
132
181
|
}
|
|
182
|
+
|
|
183
|
+
task extractJar(type: Copy) {
|
|
184
|
+
def aarFile = file("$buildDir/outputs/aar/${project.name}-release.aar")
|
|
185
|
+
def outputDir = file("$buildDir/libs")
|
|
186
|
+
from(zipTree(aarFile)) {
|
|
187
|
+
include "classes.jar"
|
|
188
|
+
}
|
|
189
|
+
into(outputDir)
|
|
190
|
+
rename { "${project.name}.jar" }
|
|
191
|
+
}
|
|
192
|
+
extractJar.dependsOn("assembleRelease")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@account-kit/react-native-signer",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"author": "Alchemy",
|
|
5
5
|
"description": "React Native compatible Account Kit signer",
|
|
6
6
|
"source": "./src/index.tsx",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"@react-native-community/cli": "15.0.1",
|
|
69
69
|
"@react-native/eslint-config": "^0.76.5",
|
|
70
70
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
71
|
+
"@types/express": "^5.0.0",
|
|
71
72
|
"@types/jest": "^29.5.5",
|
|
72
73
|
"@types/react": "^18.2.44",
|
|
73
74
|
"commitlint": "^17.0.2",
|
|
@@ -148,9 +149,9 @@
|
|
|
148
149
|
"version": "0.42.2"
|
|
149
150
|
},
|
|
150
151
|
"dependencies": {
|
|
151
|
-
"@aa-sdk/core": "^4.
|
|
152
|
-
"@account-kit/signer": "^4.
|
|
152
|
+
"@aa-sdk/core": "^4.14.0",
|
|
153
|
+
"@account-kit/signer": "^4.14.0",
|
|
153
154
|
"viem": "^2.21.40"
|
|
154
155
|
},
|
|
155
|
-
"gitHead": "
|
|
156
|
+
"gitHead": "9230c8f9c9af7a9a7d90538ef6ec42dcca1c39db"
|
|
156
157
|
}
|