1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:2.1.2'
- }
- }
-
- allprojects {
- repositories {
- mavenLocal()
- jcenter()
- maven {
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
- url "$projectDir/../../node_modules/react-native/android"
- }
- }
- }
-
- apply plugin: 'com.android.library'
-
- android {
- compileSdkVersion 23
- buildToolsVersion "23.0.1"
-
- defaultConfig {
- minSdkVersion 16
- targetSdkVersion 22
- versionCode 1
- versionName "1.0"
- }
- defaultPublishConfig 'release'
- publishNonDefault true
- productFlavors {
- library {
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- }
- debug {
- minifyEnabled false
- }
- }
- lintOptions {
- abortOnError false
- }
- }
-
- repositories {
- maven {
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
- url '../../../react-native/android'
- }
- }
-
- allprojects { p ->
- p.tasks.whenTaskAdded { task ->
- if (task.name.toLowerCase().contains('lint')) {
- task.enabled = false;
- }
- }
- }
-
- dependencies {
- compile fileTree(dir: "libs", include: ["*.jar"])
- compile "com.aurelhubert:ahbottomnavigation:1.2.3"
- compile "com.android.support:appcompat-v7:23.0.1"
- compile 'com.android.support:design:23.1.1'
- compile "com.facebook.react:react-native:+" // From node_modules
-
- testCompile 'junit:junit:4.12'
- testCompile "org.robolectric:robolectric:3.1.1"
- }
|