|
|
|
@ -1,16 +1,15 @@
|
|
|
|
|
import java.security.MessageDigest
|
|
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
|
ext.kotlin_version = "1.3.31"
|
|
|
|
|
ext.kotlin_version = "1.4.0"
|
|
|
|
|
ext.kovenant_version = "3.3.0"
|
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
mavenLocal()
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
jcenter()
|
|
|
|
|
}
|
|
|
|
|
dependencies {
|
|
|
|
|
classpath "com.android.tools.build:gradle:3.4.1"
|
|
|
|
|
classpath "com.android.tools.build:gradle:4.0.1"
|
|
|
|
|
classpath files('libs/gradle-witness.jar')
|
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
|
classpath "com.google.gms:google-services:4.3.3"
|
|
|
|
@ -18,8 +17,8 @@ buildscript {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
apply plugin: 'witness'
|
|
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|
|
|
|
@ -73,14 +72,15 @@ configurations.all {
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
|
|
|
implementation 'com.google.android.material:material:1.2.0'
|
|
|
|
|
implementation 'com.google.android.material:material:1.2.1'
|
|
|
|
|
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
|
|
|
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
|
|
|
implementation 'androidx.preference:preference:1.1.1'
|
|
|
|
|
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
|
|
|
|
|
implementation 'androidx.gridlayout:gridlayout:1.0.0'
|
|
|
|
|
implementation 'androidx.exifinterface:exifinterface:1.2.0'
|
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
|
|
|
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
|
|
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
|
|
|
implementation 'androidx.lifecycle:lifecycle-common-java8:2.2.0'
|
|
|
|
|
|
|
|
|
@ -89,7 +89,6 @@ dependencies {
|
|
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-analytics'
|
|
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-core:2.9.1'
|
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-ui:2.9.1'
|
|
|
|
|
implementation 'org.conscrypt:conscrypt-android:2.0.0'
|
|
|
|
@ -141,6 +140,23 @@ dependencies {
|
|
|
|
|
exclude group: 'com.fasterxml.jackson.core'
|
|
|
|
|
exclude group: 'org.freemarker'
|
|
|
|
|
}
|
|
|
|
|
// Loki
|
|
|
|
|
// Local:
|
|
|
|
|
implementation "org.whispersystems:signal-service-android:2.13.2" // Run ./gradlew install from session-android-service to install
|
|
|
|
|
implementation "org.whispersystems:curve25519-java:0.5.0"
|
|
|
|
|
// Remote:
|
|
|
|
|
implementation "com.google.protobuf:protobuf-java:2.5.0"
|
|
|
|
|
implementation "com.fasterxml.jackson.core:jackson-databind:2.9.8"
|
|
|
|
|
implementation "com.squareup.okhttp3:okhttp:3.12.1"
|
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
|
implementation "nl.komponents.kovenant:kovenant:$kovenant_version"
|
|
|
|
|
implementation "nl.komponents.kovenant:kovenant-android:$kovenant_version"
|
|
|
|
|
implementation "com.github.lelloman:android-identicons:v11"
|
|
|
|
|
implementation "com.prof.rssparser:rssparser:2.0.4"
|
|
|
|
|
implementation "com.jakewharton.rxbinding3:rxbinding:3.1.0"
|
|
|
|
|
implementation "com.github.tbruyelle:rxpermissions:0.10.2"
|
|
|
|
|
implementation "com.github.ybq:Android-SpinKit:1.4.0"
|
|
|
|
|
implementation "com.opencsv:opencsv:4.6"
|
|
|
|
|
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
|
testImplementation 'org.assertj:assertj-core:3.11.1'
|
|
|
|
@ -149,8 +165,9 @@ dependencies {
|
|
|
|
|
testImplementation 'org.powermock:powermock-module-junit4:1.6.1'
|
|
|
|
|
testImplementation 'org.powermock:powermock-module-junit4-rule:1.6.1'
|
|
|
|
|
testImplementation 'org.powermock:powermock-classloading-xstream:1.6.1'
|
|
|
|
|
|
|
|
|
|
testImplementation 'androidx.test:core:1.3.0-rc03'
|
|
|
|
|
testImplementation 'androidx.test:core:1.3.0'
|
|
|
|
|
androidTestImplementation 'androidx.multidex:multidex:2.0.1'
|
|
|
|
|
androidTestImplementation 'androidx.multidex:multidex-instrumentation:2.0.0'
|
|
|
|
|
androidTestImplementation 'com.google.dexmaker:dexmaker:1.2'
|
|
|
|
|
androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.2'
|
|
|
|
|
androidTestImplementation ('org.assertj:assertj-core:1.7.1') {
|
|
|
|
@ -162,28 +179,10 @@ dependencies {
|
|
|
|
|
}
|
|
|
|
|
testImplementation 'org.robolectric:robolectric:4.2'
|
|
|
|
|
testImplementation 'org.robolectric:shadows-multidex:4.2'
|
|
|
|
|
|
|
|
|
|
// Loki
|
|
|
|
|
// Local:
|
|
|
|
|
implementation "org.whispersystems:signal-service-android:2.13.2" // Run ./gradlew install from session-android-service to install
|
|
|
|
|
implementation "org.whispersystems:curve25519-java:0.5.0"
|
|
|
|
|
// Remote:
|
|
|
|
|
implementation "com.google.protobuf:protobuf-java:2.5.0"
|
|
|
|
|
implementation "com.fasterxml.jackson.core:jackson-databind:2.9.8"
|
|
|
|
|
implementation "com.squareup.okhttp3:okhttp:3.12.1"
|
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
|
implementation "nl.komponents.kovenant:kovenant:$kovenant_version"
|
|
|
|
|
implementation "nl.komponents.kovenant:kovenant-android:$kovenant_version"
|
|
|
|
|
implementation "com.github.lelloman:android-identicons:v11"
|
|
|
|
|
implementation "com.prof.rssparser:rssparser:2.0.4"
|
|
|
|
|
implementation "com.jakewharton.rxbinding3:rxbinding:3.1.0"
|
|
|
|
|
implementation "com.github.tbruyelle:rxpermissions:0.10.2"
|
|
|
|
|
implementation "com.github.ybq:Android-SpinKit:1.4.0"
|
|
|
|
|
implementation "com.opencsv:opencsv:4.6"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def canonicalVersionCode = 84
|
|
|
|
|
def canonicalVersionName = "1.5.0"
|
|
|
|
|
def canonicalVersionCode = 93
|
|
|
|
|
def canonicalVersionName = "1.5.2"
|
|
|
|
|
|
|
|
|
|
def postFixSize = 10
|
|
|
|
|
def abiPostFix = ['armeabi-v7a' : 1,
|
|
|
|
@ -208,9 +207,10 @@ android {
|
|
|
|
|
|
|
|
|
|
minSdkVersion 21
|
|
|
|
|
targetSdkVersion 29
|
|
|
|
|
multiDexEnabled true // Even though we're running API 21+, this is still needed for release builds
|
|
|
|
|
|
|
|
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
|
project.ext.set("archivesBaseName", "Signal")
|
|
|
|
|
project.ext.set("archivesBaseName", "session")
|
|
|
|
|
|
|
|
|
|
buildConfigField "long", "BUILD_TIMESTAMP", getLastCommitTimestamp() + "L"
|
|
|
|
|
buildConfigField "String", "SIGNAL_URL", "\"\""
|
|
|
|
@ -279,7 +279,7 @@ android {
|
|
|
|
|
'proguard-ez-vcard.pro',
|
|
|
|
|
'proguard.cfg'
|
|
|
|
|
testProguardFiles 'proguard-automation.pro',
|
|
|
|
|
'proguard.cfg'
|
|
|
|
|
'proguard.cfg'
|
|
|
|
|
}
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled true
|
|
|
|
@ -349,6 +349,7 @@ android {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
def assembleWebsiteDescriptor = { variant, file ->
|
|
|
|
|
if (file.exists()) {
|
|
|
|
|
MessageDigest md = MessageDigest.getInstance("SHA-256")
|
|
|
|
@ -372,7 +373,7 @@ def assembleWebsiteDescriptor = { variant, file ->
|
|
|
|
|
descriptorFile.write(descriptor)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
def signProductionRelease = { variant ->
|
|
|
|
|
variant.outputs.collect { output ->
|
|
|
|
|
String apkName = output.outputFile.name
|
|
|
|
|