Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```
compile project(':react-native-salesforce-chat')
implementation project(':react-native-salesforce-chat')
```

## Usage
Expand Down
48 changes: 31 additions & 17 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
buildscript {
repositories {
jcenter()
google()
mavenCentral()
}

dependencies {
//noinspection GradleDependency
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:4.2.2'
}
}

apply plugin: 'com.android.library'

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion 31
buildToolsVersion "30.0.2"

defaultConfig {
minSdkVersion 16
targetSdkVersion 22
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand All @@ -29,31 +33,41 @@ android {
}

repositories {
google()
mavenCentral()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$projectDir/../../../node_modules/react-native/android"

// Uncomment to use library only local copy of react-native after npm install in project root
// url "$projectDir/../node_modules/react-native/android"
}
maven {
url 'https://salesforcesos.com/android/maven/release'
content {
includeGroup("com.salesforce.service")
includeGroup("com.salesforce.android")
}
}
}

dependencies {
compile 'com.salesforce.service:chat-ui:3.1.0'
compile 'com.facebook.react:react-native:+'
compile "com.android.support:appcompat-v7:26.1.0"
implementation 'com.salesforce.service:chat-ui:4.3.6'
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
implementation 'androidx.appcompat:appcompat:1.6.0'
}

allprojects {
repositories {
google()
jcenter()
maven {
url 'https://s3.amazonaws.com/salesforcesos.com/android/maven/release'
}
maven {
url 'http://tokbox.bintray.com/maven/'
repositories {
google()
mavenCentral()
maven { url "https://www.jitpack.io" }
maven {
url 'https://s3.amazonaws.com/salesforcesos.com/android/maven/release'
content {
includeGroup("com.salesforce.service")
includeGroup("com.salesforce.android")
}
}
}
}
}
15 changes: 15 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
#
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Thu Jan 12 19:58:06 GMT 2023
android.useAndroidX=true
android.enableJetifier=true
Binary file added android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
240 changes: 240 additions & 0 deletions android/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading