react-native-app-attestation 0.1.0 → 0.1.2

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.
@@ -1,22 +1,32 @@
1
- buildscript {
2
- repositories {
3
- google()
4
- mavenCentral()
5
- }
6
- dependencies {
7
- classpath "com.android.tools.build:gradle:7.4.2"
8
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
9
- }
10
- }
11
-
12
1
  apply plugin: "com.android.library"
13
2
  apply plugin: "kotlin-android"
14
3
 
4
+ def safeExtGet(prop, fallback) {
5
+ return rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
6
+ }
7
+
8
+ def javaVersion = safeExtGet("javaVersion", JavaVersion.VERSION_17)
9
+ def kotlinJvmTarget = safeExtGet(
10
+ "kotlinJvmTarget",
11
+ javaVersion == JavaVersion.VERSION_1_8 ? "1.8" : "17"
12
+ )
13
+
15
14
  android {
16
- compileSdkVersion 33
15
+ compileSdkVersion safeExtGet("compileSdkVersion", 34)
16
+ namespace "com.reactnativeappattestation"
17
+
17
18
  defaultConfig {
18
- minSdkVersion 24
19
- targetSdkVersion 33
19
+ minSdkVersion safeExtGet("minSdkVersion", 21)
20
+ targetSdkVersion safeExtGet("targetSdkVersion", 34)
21
+ }
22
+
23
+ compileOptions {
24
+ sourceCompatibility javaVersion
25
+ targetCompatibility javaVersion
26
+ }
27
+
28
+ kotlinOptions {
29
+ jvmTarget = kotlinJvmTarget
20
30
  }
21
31
  }
22
32
 
@@ -26,6 +36,12 @@ repositories {
26
36
  }
27
37
 
28
38
  dependencies {
29
- implementation "com.facebook.react:react-native:+"
39
+ // Provided by the host app / React Native Gradle plugin
40
+ implementation "com.facebook.react:react-android"
30
41
  implementation "com.google.android.play:integrity:1.3.0"
42
+
43
+ def kotlinVersion = safeExtGet("kotlinVersion", null)
44
+ if (kotlinVersion != null) {
45
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
46
+ }
31
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-app-attestation",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Mobile app attestation for React Native — Android Play Integrity & iOS App Attest",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -36,7 +36,6 @@
36
36
  "type": "all",
37
37
  "jsSrcsDir": "src"
38
38
  },
39
- "react-native": "src/index.ts",
40
39
  "source": "src/index.ts",
41
40
  "peerDependencies": {
42
41
  "react": "*",
@@ -46,4 +45,4 @@
46
45
  "typescript": "^5.0.0",
47
46
  "@types/react-native": "^0.72.0"
48
47
  }
49
- }
48
+ }