Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: "com.android.application"
- import com.android.build.OutputFile
- project.ext.react = [
- entryFile: "index.js"
- ]
- apply from: "react.gradle"
- project.ext.envConfigFiles = [
- debug: ".env.development",
- release: ".env.production"
- ]
- apply from: project(":react-native-config").projectDir.getPath() + "/dotenv.gradle"
- project.ext.vectoricons = [
- iconFontNames: [ "Feather.ttf", "Ionicons.ttf" ]
- ]
- apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
- def enableSeparateBuildPerCPUArchitecture = true
- def enableProguardInReleaseBuilds = true
- android {
- compileSdkVersion 27
- buildToolsVersion "27.0.3"
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- dexOptions {
- preDexLibraries false
- javaMaxHeapSize "8g"
- }
- defaultConfig {
- applicationId "com.testing.webrtc"
- minSdkVersion 19
- targetSdkVersion 22
- versionCode 2
- versionName "1.0"
- ndk {
- //abiFilters "armeabi-v7a", "x86"
- }
- }
- splits {
- abi {
- reset()
- enable enableSeparateBuildPerCPUArchitecture
- universalApk true
- include "armeabi-v7a", "x86"
- }
- }
- signingConfigs {
- release {
- storeFile file(RELEASE_STORE_FILE)
- storePassword RELEASE_STORE_PASSWORD
- keyAlias RELEASE_KEY_ALIAS
- keyPassword RELEASE_KEY_PASSWORD
- }
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- debuggable false
- zipAlignEnabled true
- minifyEnabled enableProguardInReleaseBuilds
- shrinkResources enableProguardInReleaseBuilds
- useProguard enableProguardInReleaseBuilds
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
- }
- }
- // applicationVariants are e.g. debug, release
- applicationVariants.all { variant ->
- variant.outputs.each { output ->
- def versionCodes = ["armeabi-v7a":1, "x86":2]
- def abi = output.getFilter(OutputFile.ABI)
- if (abi != null) {
- output.versionCodeOverride = versionCodes.get(abi) * 2048576 + defaultConfig.versionCode
- defaultConfig.versionCode = output.versionCodeOverride
- }
- }
- }
- }
- dependencies {
- implementation fileTree(dir: "libs", include: ["*.jar"])
- implementation "com.android.support:appcompat-v7:27.0.2"
- implementation "com.android.support:support-v4:27.0.2"
- implementation "com.facebook.react:react-native:+"
- implementation project(':react-native-firebase')
- implementation "com.google.android.gms:play-services-base:15.0.1"
- implementation "com.google.firebase:firebase-core:16.0.1"
- implementation "com.google.firebase:firebase-ads:15.0.1"
- implementation "com.google.firebase:firebase-messaging:17.1.0"
- implementation "me.leolin:ShortcutBadger:1.1.21@aar"
- implementation project(':realm')
- implementation project(':react-native-config')
- implementation project(':react-native-vector-icons')
- implementation project(':WebRTCModule')
- implementation project(':react-native-orientation')
- implementation project(':react-native-incall-manager')
- implementation project(':react-native-sensitive-info')
- implementation project(':react-native-spinkit')
- }
- task copyDownloadableDepsToLibs(type: Copy) {
- from configurations.compile
- into 'libs'
- }
- apply plugin: 'com.google.gms.google-services'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement