Skip to content

Commit 17d7449

Browse files
Merge pull request #3 from getyoti/YD-2051
[YD-2051] Update Android dependencies to 2.2.0 & iOS to 2.1.1
2 parents d185c3f + cf908b7 commit 17d7449

File tree

12 files changed

+49
-426
lines changed

12 files changed

+49
-426
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,20 @@ allprojects {
6060
}
6161
...
6262
}
63+
```
64+
### Debug build configuration
65+
66+
Add this configuration for the debug build type to your `buildTypes` block (`android/app/build.gradle`):
67+
68+
```diff
69+
buildTypes {
70+
debug {
71+
+ matchingFallbacks = ['release']
72+
...
73+
}
74+
...
75+
}
76+
6377
```
6478

6579
Depending on your Android project setup and version of React Native, you

android/build.gradle

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,25 @@ def safeExtGet(prop, fallback) {
55
}
66

77
android {
8-
compileSdkVersion safeExtGet('compileSdkVersion', 28)
9-
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
8+
compileSdkVersion safeExtGet('compileSdkVersion', 29)
9+
buildToolsVersion safeExtGet('buildToolsVersion', '29.0.3')
1010

1111
defaultConfig {
12-
minSdkVersion safeExtGet('minSdkVersion', 16)
13-
targetSdkVersion safeExtGet('targetSdkVersion', 28)
14-
versionCode 1
15-
versionName "1.0.0"
12+
minSdkVersion safeExtGet('minSdkVersion', 21)
13+
targetSdkVersion safeExtGet('targetSdkVersion', 29)
14+
versionCode 110
15+
versionName "1.1.0"
1616
ndk {
1717
abiFilters "armeabi-v7a", "x86"
1818
}
1919
}
2020

21+
buildTypes {
22+
debug {
23+
matchingFallbacks = ['release']
24+
}
25+
}
26+
2127
packagingOptions {
2228
exclude 'META-INF/*.kotlin_module'
2329
exclude "**/kotlin/**"
@@ -27,15 +33,13 @@ android {
2733
sourceCompatibility = '1.8'
2834
targetCompatibility = '1.8'
2935
}
30-
31-
3236
}
3337

3438
dependencies {
3539
//noinspection GradleDynamicVersion
3640
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
37-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:2.1.0'
38-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:2.1.0'
41+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:2.2.0'
42+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:2.2.0'
3943
}
4044

4145
allprojects {

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip

example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ buck-out/
5757

5858
# CocoaPods
5959
/ios/Pods/
60+
Podfile.lock

example/android/app/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ android {
131131
applicationId "com.example"
132132
minSdkVersion rootProject.ext.minSdkVersion
133133
targetSdkVersion rootProject.ext.targetSdkVersion
134-
versionCode 1
135-
versionName "1.0"
134+
versionCode 110
135+
versionName "1.1.0"
136136
}
137137
splits {
138138
abi {
@@ -152,6 +152,7 @@ android {
152152
}
153153
buildTypes {
154154
debug {
155+
matchingFallbacks = ['release']
155156
signingConfig signingConfigs.debug
156157
}
157158
release {
@@ -184,6 +185,8 @@ android {
184185
pickFirst 'lib/arm64-v8a/libc++_shared.so'
185186
pickFirst 'lib/x86_64/libc++_shared.so'
186187
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
188+
exclude 'META-INF/*.kotlin_module'
189+
exclude "**/kotlin/**"
187190
}
188191
}
189192

example/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = "28.0.3"
5+
buildToolsVersion = "29.0.3"
66
minSdkVersion = 21
7-
compileSdkVersion = 28
8-
targetSdkVersion = 28
7+
compileSdkVersion = 29
8+
targetSdkVersion = 29
99
}
1010
repositories {
1111
google()
1212
jcenter()
1313
}
1414
dependencies {
15-
classpath("com.android.tools.build:gradle:3.4.2")
15+
classpath("com.android.tools.build:gradle:3.6.2")
1616

1717
// NOTE: Do not place your application dependencies here; they belong
1818
// in the individual module build.gradle files
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-5.5-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

example/android/settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
rootProject.name = 'example'
2-
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
2+
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle")
3+
applyNativeModulesSettingsGradle(settings)
34
include ':app'

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :ios, '11.0'
1+
platform :ios, '11.4'
22
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
33

44
target 'example' do

0 commit comments

Comments
 (0)