Skip to content

Instantly share code, notes, and snippets.

@akbarsha03
Created April 20, 2018 12:24
Show Gist options
  • Save akbarsha03/a729848fdefc8be310d048b09913ae23 to your computer and use it in GitHub Desktop.
Save akbarsha03/a729848fdefc8be310d048b09913ae23 to your computer and use it in GitHub Desktop.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
}
}
allprojects {
repositories {
flatDir {
dirs 'libs'
}
jcenter()
maven { url 'https://maven.google.com' }
mavenLocal()
maven {
// All of React Native (JS, Android binaries) is installed from npm
url "E:/experimentRepo/reactRepo/sampleReactApp/node_modules/react-native/android"
}
}
}
apply plugin: 'com.android.application'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:27.1.0'
compile 'com.facebook.react:react-native:+'
compile(name:'reactmodule-debug', ext:'aar')
**DEPS**}
android {
compileSdkVersion **APIVERSION**
buildToolsVersion '**BUILDTOOLS**'
defaultConfig {
targetSdkVersion **TARGETSDKVERSION**
applicationId '**APPLICATIONID**'
ndk {
abiFilters "armeabi-v7a", "x86", 'armeabi', 'arm64-v8a'
}
}
lintOptions {
abortOnError false
}
aaptOptions {
noCompress '.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**
}
**SIGN**
buildTypes {
debug {
minifyEnabled **MINIFY_DEBUG**
useProguard **PROGUARD_DEBUG**
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD**
jniDebuggable true
}
release {
minifyEnabled **MINIFY_RELEASE**
useProguard **PROGUARD_RELEASE**
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD**
**SIGNCONFIG**
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment