Skip to content

Commit 57d3d92

Browse files
authored
Merge pull request #46 from getyoti/DEP-597
[TASK][DEP-597] Support Android SDK 4.1.0
2 parents c0e5154 + 49e587d commit 57d3d92

File tree

9 files changed

+24
-16
lines changed

9 files changed

+24
-16
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To integrate with Yoti IDV, a working infrastructure is needed (see [developers.
1717
Start your integration by adding the following dependency to your `package.json` file:
1818
```json
1919
"dependencies": {
20-
"@getyoti/yoti-doc-scan-react-native": "^5.0.0"
20+
"@getyoti/yoti-doc-scan-react-native": "^5.0.1"
2121
}
2222
```
2323

@@ -26,7 +26,7 @@ Continuing with your integration for Android, add the following property and rep
2626
```groovy
2727
buildscript {
2828
ext {
29-
yotiSdkVersion = "4.0.0"
29+
yotiSdkVersion = "4.1.0"
3030
}
3131
}
3232
allprojects {

android/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ def safeExtGet(prop, fallback) {
55
}
66

77
android {
8-
compileSdk safeExtGet('compileSdkVersion', 33)
8+
namespace "com.yoti.reactnative.docscan"
9+
10+
compileSdk safeExtGet('compileSdkVersion', 34)
911

1012
defaultConfig {
1113
minSdkVersion safeExtGet('minSdkVersion', 21)
12-
targetSdkVersion safeExtGet('targetSdkVersion', 33)
13-
versionCode 500
14-
versionName "5.0.0"
14+
targetSdkVersion safeExtGet('targetSdkVersion', 34)
15+
versionCode 501
16+
versionName "5.0.1"
1517
ndk {
1618
abiFilters "armeabi-v7a", "x86"
1719
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.yoti.reactnative.docscan"></manifest>
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" ></manifest>

example/android/app/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ def jscFlavor = 'org.webkit:android-jsc:+'
1414
def enableHermes = project.ext.react.get("enableHermes", false);
1515

1616
android {
17-
compileSdkVersion rootProject.ext.compileSdkVersion
17+
namespace "com.example"
18+
19+
compileSdk rootProject.ext.compileSdkVersion
1820
compileOptions {
1921
sourceCompatibility JavaVersion.VERSION_1_8
2022
targetCompatibility JavaVersion.VERSION_1_8
@@ -72,6 +74,9 @@ android {
7274
exclude 'META-INF/*.kotlin_module'
7375
exclude "**/kotlin/**"
7476
}
77+
buildFeatures {
78+
buildConfig true
79+
}
7580
}
7681

7782
dependencies {

example/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
33
<uses-permission android:name="android.permission.INTERNET"/>
44
<application
55
android:name=".MainApplication"

example/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
buildscript {
22
ext {
33
minSdkVersion = 21
4-
compileSdkVersion = 33
5-
targetSdkVersion = 33
6-
yotiSdkVersion = "4.0.0"
4+
compileSdkVersion = 34
5+
targetSdkVersion = 34
6+
yotiSdkVersion = "4.1.0"
77
}
88
repositories {
99
google()
1010
jcenter()
1111
}
1212
dependencies {
13-
classpath('com.android.tools.build:gradle:7.4.2')
13+
classpath('com.android.tools.build:gradle:8.8.0')
1414
}
1515
}
1616

example/android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# The setting is particularly useful for tweaking memory settings.
1212
# Default value: -Xmx10248m -XX:MaxPermSize=256m
1313
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14+
org.gradle.jvmargs=-Xmx2048m
1415

1516
# When configured, Gradle will run in incubating parallel mode.
1617
# This option should only be used with decoupled projects. More details, visit
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "https://www.yoti.com/terms/identity-verification",
66
"author": "Yoti Ltd",
77
"main": "RNYotiDocScan.js",
8-
"version": "5.0.0",
8+
"version": "5.0.1",
99
"peerDependencies": {
1010
"react": ">=18.0.0",
1111
"react-native": ">=0.70.0"

0 commit comments

Comments
 (0)