Configure Android
OpenWeb Native View Configuration
- From within Android Studio, open your app.
- In the project build.gradle file, add the JitPack repository.
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
- In the app build.gradle file, add the
androidx.multidex:multidex:2.0.1
dependency.
dependencies {
...
implementation 'androidx.multidex:multidex:2.0.1'
}
- Also in the app build.gradle file, set
minSdkVersion
to19
or greater. If you setminSdkVersion
to19
-20
, you must also setmultiDexEnabled true
.
android {
defaultConfig {
...
minSdkVersion 19
multiDexEnabled true
}
- Apply Spot.IM gradle plugin. You can use one of the following options to apply the plugin.
Option | Steps |
---|---|
Option 1: Use the plugins DSL | In the app build.gradle file add id "im.spot" version "1.0" in the plugins section.Code example
|
Option 2: Use legacy plugin application | 1. In the project build.gradle file, add the gradle plugins repository https://plugins.gradle.org/m2/ and the OpenWeb plugin dependency gradle.plugin.im.spot:spotim-gradle-plugin:1.0 2. In the app build.gradle file, apply the im.spot plugin. Code example: project build.gradle
Code example: app build.gradle
|
Note
Make sure to apply the plugin after the
com.android.application
plugin.
- In the AndroidManifest.xml file, add the permission to use the Internet:
<uses-permission android:name="android.permission.INTERNET" />
.
Updated 5 days ago