storymaker / app / build.gradle @ 045d2144
History | View | Annotate | Download (5.08 KB)
| 1 |
apply plugin: 'com.android.application' |
|---|---|
| 2 |
|
| 3 |
allprojects {
|
| 4 |
repositories {
|
| 5 |
jcenter() |
| 6 |
maven { url "https://jitpack.io" }
|
| 7 |
flatDir {
|
| 8 |
dirs 'libs' //this way we can find the .aar file in libs folder |
| 9 |
} |
| 10 |
} |
| 11 |
} |
| 12 |
|
| 13 |
// required for sqlbrite/apt |
| 14 |
buildscript {
|
| 15 |
repositories {
|
| 16 |
maven { url "https://jitpack.io" }
|
| 17 |
jcenter() |
| 18 |
} |
| 19 |
dependencies {
|
| 20 |
classpath 'com.android.tools.build:gradle:2.0.0' |
| 21 |
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.7' |
| 22 |
classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1' |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
apply plugin: 'com.android.application' |
| 27 |
apply plugin: 'com.neenbedankt.android-apt' |
| 28 |
apply plugin: 'com.jakewharton.hugo' |
| 29 |
|
| 30 |
android {
|
| 31 |
compileSdkVersion 23 |
| 32 |
buildToolsVersion "23.0.3" |
| 33 |
|
| 34 |
sourceSets {
|
| 35 |
main {
|
| 36 |
manifest.srcFile 'AndroidManifest.xml' |
| 37 |
java.srcDirs = ['src'] |
| 38 |
resources.srcDirs = ['src'] |
| 39 |
aidl.srcDirs = ['src'] |
| 40 |
res.srcDirs = ['res'] |
| 41 |
assets.srcDirs = ['assets'] |
| 42 |
jniLibs.srcDir file('libs/')
|
| 43 |
} |
| 44 |
|
| 45 |
mainSqlite.setRoot('mainSqlite')
|
| 46 |
mainSqlCipher.setRoot('mainSqlCipher')
|
| 47 |
|
| 48 |
beta.setRoot("beta")
|
| 49 |
|
| 50 |
androidTest {
|
| 51 |
java.srcDirs = ['tests/src'] |
| 52 |
assets.srcDirs = ['tests/assets'] |
| 53 |
} |
| 54 |
|
| 55 |
// If you'd like to provide special files for the debug / release build variants |
| 56 |
// you can do so by adding files to the directories defined below |
| 57 |
// |
| 58 |
// Move the build types to build-types/<type> |
| 59 |
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... |
| 60 |
// This moves them out of them default location under src/<type>/... which would |
| 61 |
// conflict with src/ being used by the main source set. |
| 62 |
// Adding new build types or product flavors should be accompanied |
| 63 |
// by a similar customization. |
| 64 |
debug.setRoot('build-types/debug')
|
| 65 |
release.setRoot('build-types/release')
|
| 66 |
} |
| 67 |
|
| 68 |
productFlavors {
|
| 69 |
mainSqlite {}
|
| 70 |
mainSqlCipher {}
|
| 71 |
} |
| 72 |
|
| 73 |
buildTypes {
|
| 74 |
beta.initWith(buildTypes.debug) |
| 75 |
beta {}
|
| 76 |
|
| 77 |
debuggableRelease.initWith(buildTypes.release) |
| 78 |
debuggableRelease {
|
| 79 |
minifyEnabled false |
| 80 |
debuggable true |
| 81 |
} |
| 82 |
} |
| 83 |
|
| 84 |
defaultConfig {
|
| 85 |
minSdkVersion 16 |
| 86 |
targetSdkVersion 23 |
| 87 |
multiDexEnabled true |
| 88 |
//testPackageName "org.storymaker.app.tests" |
| 89 |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| 90 |
//testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner" |
| 91 |
} |
| 92 |
|
| 93 |
// Temporarily ignore linter errors. |
| 94 |
lintOptions {
|
| 95 |
abortOnError false |
| 96 |
} |
| 97 |
|
| 98 |
packagingOptions {
|
| 99 |
exclude 'META-INF/LICENSE.txt' |
| 100 |
exclude 'META-INF/NOTICE.txt' |
| 101 |
exclude 'META-INF/LICENSE' |
| 102 |
exclude 'META-INF/NOTICE' |
| 103 |
exclude 'META-INF/DEPENDENCIES' |
| 104 |
exclude 'LICENSE.txt' |
| 105 |
} |
| 106 |
|
| 107 |
dexOptions {
|
| 108 |
jumboMode = true |
| 109 |
javaMaxHeapSize "2g" |
| 110 |
} |
| 111 |
|
| 112 |
} |
| 113 |
|
| 114 |
|
| 115 |
// an attempt to fix "Warning:Conflict with dependency 'com.google.code.findbugs:jsr305'. Resolved versions for app (1.3.9) and test app (2.0.1) differ." |
| 116 |
// http://stackoverflow.com/questions/19008006/accessing-configurations-resolutionstrategy-from-a-plugin |
| 117 |
// this block triggers a "method call is ambiguous error" which seems to be harmless: |
| 118 |
// http://stackoverflow.com/questions/25177361/gradle-configurations-all-ambiguous |
| 119 |
configurations.all {
|
| 120 |
resolutionStrategy.force 'com.google.code.findbugs:jsr305:2.0.1' |
| 121 |
} |
| 122 |
|
| 123 |
dependencies {
|
| 124 |
|
| 125 |
compile 'com.android.support:support-v4:23.1.0' |
| 126 |
|
| 127 |
compile 'com.android.support:support-annotations:23.2.0' |
| 128 |
|
| 129 |
compile 'com.android.support:recyclerview-v7:23.2.0' |
| 130 |
compile 'com.android.support:cardview-v7:23.1.0' |
| 131 |
|
| 132 |
compile 'com.google.android.gms:play-services:8.4.0' |
| 133 |
|
| 134 |
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0' |
| 135 |
androidTestCompile 'com.android.support.test:testing-support-lib:0.1' |
| 136 |
androidTestCompile 'com.squareup.spoon:spoon-client:1.1.2' |
| 137 |
|
| 138 |
compile 'com.google.code.gson:gson:2.3' |
| 139 |
compile 'com.google.guava:guava:18.0' |
| 140 |
compile 'net.hockeyapp.android:HockeySDK:3.5.0' |
| 141 |
compile 'commons-io:commons-io:2.4' |
| 142 |
compile 'org.apache.commons:commons-lang3:3.1' |
| 143 |
|
| 144 |
compile 'info.guardianproject.cacheword:cachewordlib:0.1' |
| 145 |
compile 'net.zetetic:android-database-sqlcipher:3.3.1-1@aar' |
| 146 |
compile 'com.jakewharton.timber:timber:3.1.0' |
| 147 |
|
| 148 |
compile 'com.edmodo:rangebar:1.0.0' |
| 149 |
|
| 150 |
//scalio repos via jitpack |
| 151 |
compile 'com.github.n8fr8:NetCipher:n8fr8-dev-release' |
| 152 |
//compile 'com.github.n8fr8:cardsui-for-android:42ed1661c1' |
| 153 |
//compile 'com.github.n8fr8:Android-ViewPagerIndicator:6d15751bca' |
| 154 |
|
| 155 |
// AAR and .Jar imports |
| 156 |
compile files('libs/svg-android-1.1.jar')
|
| 157 |
compile 'io.scal.secureshare:libsecureshare:0.0.1@aar' |
| 158 |
compile 'com.facebook.android:facebook-release:1.0.0@aar' |
| 159 |
|
| 160 |
// Project imports |
| 161 |
compile project(':external:android-ffmpeg-java')
|
| 162 |
compile project(':external:liger:android-iconify')
|
| 163 |
compile project(':external:liger:lib')
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
} |