react-native-app-attestation 0.1.0 → 0.1.1

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,26 @@
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
+
15
8
  android {
16
- compileSdkVersion 33
9
+ compileSdkVersion safeExtGet("compileSdkVersion", 34)
10
+ namespace "com.reactnativeappattestation"
11
+
17
12
  defaultConfig {
18
- minSdkVersion 24
19
- targetSdkVersion 33
13
+ minSdkVersion safeExtGet("minSdkVersion", 21)
14
+ targetSdkVersion safeExtGet("targetSdkVersion", 34)
15
+ }
16
+
17
+ compileOptions {
18
+ sourceCompatibility JavaVersion.VERSION_1_8
19
+ targetCompatibility JavaVersion.VERSION_1_8
20
+ }
21
+
22
+ kotlinOptions {
23
+ jvmTarget = "1.8"
20
24
  }
21
25
  }
22
26
 
@@ -26,6 +30,12 @@ repositories {
26
30
  }
27
31
 
28
32
  dependencies {
29
- implementation "com.facebook.react:react-native:+"
33
+ // Provided by the host app / React Native Gradle plugin
34
+ implementation "com.facebook.react:react-android"
30
35
  implementation "com.google.android.play:integrity:1.3.0"
36
+
37
+ def kotlinVersion = safeExtGet("kotlinVersion", null)
38
+ if (kotlinVersion != null) {
39
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
40
+ }
31
41
  }
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.1",
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
+ }