mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
add bare-minimum gradle build config
This commit is contained in:
parent
155502b9b9
commit
1420e35359
2 changed files with 65 additions and 6 deletions
9
clients/android/NewsBlur/.gitignore
vendored
9
clients/android/NewsBlur/.gitignore
vendored
|
@ -1,12 +1,8 @@
|
|||
build.xml
|
||||
custom_rules.xml
|
||||
local.properties
|
||||
*.java.swo
|
||||
*.java.swp
|
||||
*.xml.swo
|
||||
*.xml.swp
|
||||
*.css.swo
|
||||
*.css.swp
|
||||
.*.swo
|
||||
.*.swp
|
||||
*.iml
|
||||
out/
|
||||
bin/
|
||||
|
@ -20,3 +16,4 @@ libs/ActionBarSherlock/
|
|||
app/
|
||||
gradle/
|
||||
*.gradle
|
||||
!build.gradle
|
||||
|
|
62
clients/android/NewsBlur/build.gradle
Normal file
62
clients/android/NewsBlur/build.gradle
Normal file
|
@ -0,0 +1,62 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:1.5.0'
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
dependencies {
|
||||
compile 'com.android.support:support-v13:19.1.0'
|
||||
compile 'com.jakewharton:butterknife:7.0.1'
|
||||
compile 'com.squareup.okhttp3:okhttp:3.2.0'
|
||||
compile 'com.google.code.gson:gson:2.6.2'
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 23
|
||||
buildToolsVersion '23.0.2'
|
||||
sourceSets {
|
||||
main {
|
||||
manifest.srcFile 'AndroidManifest.xml'
|
||||
java.srcDirs = ['src']
|
||||
res.srcDirs = ['res']
|
||||
assets.srcDirs = ['assets']
|
||||
}
|
||||
}
|
||||
lintOptions {
|
||||
abortOnError false
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
shrinkResources false
|
||||
}
|
||||
release {
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
|
||||
}
|
||||
}
|
||||
// quick and easy signing of a 'release' with your debug key:
|
||||
/*
|
||||
signingConfigs {
|
||||
release {
|
||||
storeFile file('PATH-TO-HOME-GOES-HERE/.android/debug.keystore')
|
||||
keyAlias 'androiddebugkey'
|
||||
storePassword 'android'
|
||||
keyPassword 'android'
|
||||
}
|
||||
}
|
||||
buildTypes.release.signingConfig = signingConfigs.release
|
||||
*/
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue