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
21 changes: 10 additions & 11 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
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.1'
}
}

apply plugin: 'com.android.library'

android {
compileSdkVersion 23
compileSdkVersion 30
buildToolsVersion "23.0.1"

defaultConfig {
minSdkVersion 16
targetSdkVersion 22
targetSdkVersion 30
versionCode 1
versionName "1.0"
}
Expand All @@ -40,20 +41,18 @@ repositories {
}

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:3.1.0'
implementation 'com.facebook.react:react-native:+'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.annotation:annotation:1.0.2'
}

allprojects {
repositories {
google()
jcenter()
maven {
url 'https://s3.amazonaws.com/salesforcesos.com/android/maven/release'
}
maven {
url 'http://tokbox.bintray.com/maven/'
}
mavenCentral()
}
}
2 changes: 2 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
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.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
185 changes: 185 additions & 0 deletions android/gradlew

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

89 changes: 89 additions & 0 deletions android/gradlew.bat

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

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

package org.andrewbestbier.salesforcechat;

import java.util.LinkedList;
import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentActivity;

import android.support.annotation.NonNull;
import android.support.v4.app.FragmentActivity;
import java.util.LinkedList;

import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactApplicationContext;
Expand Down
Loading