mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 02:55:23 +00:00
67a4523ca7
// FREEBIE
161 lines
5.6 KiB
Groovy
161 lines
5.6 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven {
|
|
url "https://repo1.maven.org/maven2"
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:0.14.0'
|
|
classpath files('libs/gradle-witness.jar')
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'witness'
|
|
|
|
repositories {
|
|
maven {
|
|
url "https://repo1.maven.org/maven2"
|
|
}
|
|
maven {
|
|
url "https://raw.github.com/whispersystems/maven/master/preferencefragment/releases/"
|
|
}
|
|
maven {
|
|
url "https://raw.github.com/whispersystems/maven/master/gson/releases/"
|
|
}
|
|
maven {
|
|
url "https://raw.github.com/whispersystems/maven/master/smil/releases/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile 'se.emilsjolander:stickylistheaders:2.2.0'
|
|
compile 'com.google.android.gms:play-services:6.1.71'
|
|
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
|
|
compile 'org.w3c:smil:1.0.0'
|
|
compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
|
|
compile 'com.github.chrisbanes.photoview:library:1.2.3'
|
|
compile 'com.android.support:appcompat-v7:21.0.0'
|
|
compile ('com.android.support:support-v4-preferencefragment:1.0.0@aar'){
|
|
exclude module: 'support-v4'
|
|
}
|
|
compile 'com.squareup.dagger:dagger:1.2.2'
|
|
provided 'com.squareup.dagger:dagger-compiler:1.2.2'
|
|
|
|
androidTestCompile 'com.squareup:fest-android:1.0.8'
|
|
androidTestCompile 'com.google.dexmaker:dexmaker:1.1'
|
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.1'
|
|
|
|
compile project(':libtextsecure')
|
|
compile project(':jobqueue')
|
|
}
|
|
|
|
dependencyVerification {
|
|
verify = [
|
|
'se.emilsjolander:stickylistheaders:89146b46c96fea0e40200474a2625cda10fe94891e4128f53cdb42375091b9b6',
|
|
'com.google.android.gms:play-services:32e7d1834a1cf8fa4b17e8d359db580c286e26c1eefbf84fdb9996eac8d74919',
|
|
'com.astuetz:pagerslidingtabstrip:f1641396732c7132a7abb837e482e5ee2b0ebb8d10813fc52bbaec2c15c184c2',
|
|
'org.w3c:smil:085dc40f2bb249651578bfa07499fd08b16ad0886dbe2c4078586a408da62f9b',
|
|
'org.apache.httpcomponents:httpclient-android:6f56466a9bd0d42934b90bfbfe9977a8b654c058bf44a12bdc2877c4e1f033f1',
|
|
'com.android.support:appcompat-v7:45e999dda55fe81d9cc1c7342b7b70480ff3f307baa8da0df767f92fc5c52cd1',
|
|
'com.android.support:support-v4-preferencefragment:5470f5872514a6226fa1fc6f4e000991f38805691c534cf0bd2778911fc773ad',
|
|
'com.google.protobuf:protobuf-java:e0c1c64575c005601725e7c6a02cebf9e1285e888f756b2a1d73ffa8d725cc74',
|
|
'com.madgag:sc-light-jdk15on:931f39d351429fb96c2f749e7ecb1a256a8ebbf5edca7995c9cc085b94d1841d',
|
|
'com.googlecode.libphonenumber:libphonenumber:eba17eae81dd622ea89a00a3a8c025b2f25d342e0d9644c5b62e16f15687c3ab',
|
|
'org.whispersystems:gson:08f4f7498455d1539c9233e5aac18e9b1805815ef29221572996508eb512fe51',
|
|
'com.github.chrisbanes.photoview:library:8b5344e206f125e7ba9d684008f36c4992d03853c57e5814125f88496126e3cc',
|
|
'com.android.support:support-v4:199ef7bb169386c80b4836354df6747ce2ae3d24434db923c22439e47106a1e2',
|
|
'com.android.support:support-annotations:e9e817959d1b846349e93b796537bdaef84aef2c67d8b8b2acc31c6ef540d559',
|
|
]
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 21
|
|
buildToolsVersion '21.0.2'
|
|
|
|
defaultConfig {
|
|
minSdkVersion 9
|
|
targetSdkVersion 21
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
|
|
android {
|
|
buildTypes {
|
|
debug {
|
|
runProguard true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
|
|
}
|
|
release {
|
|
runProguard true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
java.srcDirs = ['src']
|
|
resources.srcDirs = ['src']
|
|
aidl.srcDirs = ['src']
|
|
renderscript.srcDirs = ['src']
|
|
res.srcDirs = ['res']
|
|
assets.srcDirs = ['assets']
|
|
}
|
|
androidTest {
|
|
java.srcDirs = ['androidTest/java']
|
|
resources.srcDirs = ['androidTest/java']
|
|
aidl.srcDirs = ['androidTest/java']
|
|
renderscript.srcDirs = ['androidTest/java']
|
|
}
|
|
}
|
|
}
|
|
|
|
signingConfigs {
|
|
release
|
|
}
|
|
buildTypes {
|
|
release {
|
|
signingConfig signingConfigs.release
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
}
|
|
|
|
tasks.whenTaskAdded { task ->
|
|
if (task.name.equals("lint")) {
|
|
task.enabled = false
|
|
}
|
|
}
|
|
|
|
def Properties props = new Properties()
|
|
def propFile = new File('signing.properties')
|
|
|
|
if (propFile.canRead()){
|
|
props.load(new FileInputStream(propFile))
|
|
|
|
if (props !=null &&
|
|
props.containsKey('STORE_FILE') &&
|
|
props.containsKey('STORE_PASSWORD') &&
|
|
props.containsKey('KEY_ALIAS') &&
|
|
props.containsKey('KEY_PASSWORD'))
|
|
{
|
|
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
|
|
android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
|
|
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
|
|
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
|
|
} else {
|
|
println 'signing.properties found but some entries are missing'
|
|
android.buildTypes.release.signingConfig = null
|
|
}
|
|
}else {
|
|
println 'signing.properties not found'
|
|
android.buildTypes.release.signingConfig = null
|
|
}
|