Skip to content

Commit

Permalink
Change build settings to support Connect-SDK-Android-Lite
Browse files Browse the repository at this point in the history
  • Loading branch information
jonghenhan committed Apr 26, 2022
1 parent 2a5459c commit 3d38f15
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ iOS:

npx pod-install

Android:

cd android
git clone https://github.com/ConnectSDK/Connect-SDK-Android-Core

Thats it! Dependencies will be downloaded and set up automatically.

**Dependencies will not be downloaded automatically for versions older than 1.6.0. You'll need to check the README from that branch and follow any manual set up steps.**
Expand Down
9 changes: 5 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:7.0.2'
}
}
}
Expand All @@ -19,9 +19,9 @@ def safeExtGet(prop, fallback) {
}

android {
compileSdkVersion safeExtGet('ConnectsdkReactNative_compileSdkVersion', 29)
compileSdkVersion safeExtGet('ConnectsdkReactNative_compileSdkVersion', 31)
defaultConfig {
minSdkVersion safeExtGet('ConnectsdkReactNative_minSdkVersion', 16)
minSdkVersion safeExtGet('ConnectsdkReactNative_minSdkVersion', 24)
targetSdkVersion safeExtGet('ConnectsdkReactNative_targetSdkVersion', 29)
versionCode 1
versionName "1.0"
Expand Down Expand Up @@ -51,11 +51,12 @@ repositories {
google()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}

dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules
implementation project(':Connect-SDK-Android-Core')
implementation 'com.github.ConnectSDK:Connect-SDK-Android-Lite:-SNAPSHOT'
implementation 'com.google.code.gson:gson:2.8.6'
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "connectsdk-react-native",
"version": "1.0.32",
"version": "1.0.33",
"description": "React Native ConnectSDK Component",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit 3d38f15

Please sign in to comment.