Files
react-native-dialogs/android/build.gradle
T

51 lines
1.2 KiB
Groovy

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
}
}
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
allprojects {
configurations.all {
resolutionStrategy {
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion rootProject.properties.get('compileSdkVersion', 26)
buildToolsVersion rootProject.properties.get('buildToolsVersion', '26.0.3')
defaultConfig {
minSdkVersion 16
targetSdkVersion rootProject.properties.get('targetSdkVersion', 26)
versionCode 1
versionName "1.0"
}
lintOptions{
abortOnError false
}
}
repositories {
maven { url "https://jitpack.io" }
jcenter()
}
dependencies {
implementation 'com.facebook.react:react-native:+'
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
implementation 'com.afollestad.material-dialogs:commons:0.9.6.0'
}