123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- apply plugin: "com.android.application"
-
- import com.android.build.OutputFile
-
-
-
- if (!project.file("../../node_modules/react-native/react.gradle").exists()) {
- throw new RuntimeException("React modules are not installed. execute: 'yarn install' in 'example' folder. ")
- }
-
- apply from: "../../node_modules/react-native/react.gradle"
-
-
- def enableSeparateBuildPerCPUArchitecture = false
-
-
- def enableProguardInReleaseBuilds = false
-
- android {
- compileSdkVersion 27
- buildToolsVersion '28.0.3'
-
- defaultConfig {
- applicationId "com.viewshotexample"
- minSdkVersion 16
- targetSdkVersion 27
-
- versionCode 1
- versionName "1.0"
-
- ndk {
- abiFilters "armeabi-v7a", "x86"
- }
- }
- splits {
- abi {
- reset()
- enable enableSeparateBuildPerCPUArchitecture
- universalApk false
- include "armeabi-v7a", "x86"
- }
- }
- buildTypes {
- release {
- minifyEnabled enableProguardInReleaseBuilds
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
- }
- }
-
- 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) * 1048576 + defaultConfig.versionCode
- }
- }
- }
- }
-
- repositories {
- google()
- jcenter()
- mavenLocal()
- maven {
-
- url "${project.projectDir}/../node_modules/react-native/android"
- }
- }
-
- dependencies {
- implementation project(':react-native-svg')
- implementation fileTree(dir: "libs", include: ["*.jar"])
-
- implementation "com.android.support:appcompat-v7:27.+"
- implementation "com.facebook.react:react-native:+"
-
- implementation project(':react-native-view-shot')
- implementation project(':gl-react-native')
- implementation project(':react-native-maps')
- implementation project(':react-native-video')
- }
-
-
-
- task copyDownloadableDepsToLibs(type: Copy) {
- from configurations.compile
- into 'libs'
- }
|