Skip to content

Commit

Permalink
🐛 Update build.gradle, fixes frostney#12
Browse files Browse the repository at this point in the history
  • Loading branch information
frostney committed Feb 23, 2017
1 parent 28ae8e5 commit 796f714
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions templates/android.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
module.exports = platform => [{
name: () => `${platform}/build.gradle`,
content: () => `
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
}
}
apply plugin: 'com.android.library'
android {
Expand All @@ -12,24 +22,18 @@ android {
targetSdkVersion 22
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
lintOptions {
warning 'InvalidPackage'
abortOnError false
}
}
allprojects {
repositories {
jcenter()
maven { url "$projectDir/../../react-native/android" }
}
repositories {
mavenCentral()
}
dependencies {
compile 'com.facebook.react:react-native:0.20.+'
compile 'com.facebook.react:react-native:+'
}
`,
}, {
Expand Down

0 comments on commit 796f714

Please sign in to comment.