2017-10-10 21:26:41 +00:00
|
|
|
apply plugin: 'com.android.application'
|
Upgrade to matrix-android-sdk 0.9.14.
There's a bunch of changes, required, to move to the latest SDK:
1. Update AAR's. The matrix-sdk.aar in this commit was built from the
v0.9.14 tag of the matrix-android-sdk git repository. olm-sdk.jar is
pulled from the same place.
2. Updates to the build scripts. matrix-android-sdk added kotlin as a
dependency, moved to okhttp3, added io.realm, and so on.
3. Code modifications to support new SDK itself. The changes, here, are
a grab bag, and you're best off just reading the commit.
Of particular note, here, is that LoginRestClient.loginWithUser takes a
device name *and* a device ID, now (the previous API only took a device
name). As a wicked had, right now, I'm just using the name as the ID,
but I have no doubt that's wrong and this should be cleaned up to
include a randomly generated, persisted device ID, as I believe this is
used by Synapse to track login sessions.
2018-12-29 23:26:49 +00:00
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
apply plugin: 'realm-android'
|
2017-10-10 21:26:41 +00:00
|
|
|
|
|
|
|
android {
|
2019-10-12 20:21:09 +00:00
|
|
|
compileSdkVersion 29
|
2018-11-19 09:56:55 +00:00
|
|
|
buildToolsVersion '28.0.3'
|
2017-10-10 21:26:41 +00:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "eu.droogers.smsmatrix"
|
|
|
|
minSdkVersion 23
|
2019-10-12 20:21:09 +00:00
|
|
|
targetSdkVersion 29
|
2019-10-12 20:27:36 +00:00
|
|
|
versionCode 13
|
|
|
|
versionName "0.0.13"
|
2019-10-12 20:21:09 +00:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2017-10-10 21:26:41 +00:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
flatDir {
|
|
|
|
dir 'libs'
|
|
|
|
}
|
|
|
|
}
|
Upgrade to matrix-android-sdk 0.9.14.
There's a bunch of changes, required, to move to the latest SDK:
1. Update AAR's. The matrix-sdk.aar in this commit was built from the
v0.9.14 tag of the matrix-android-sdk git repository. olm-sdk.jar is
pulled from the same place.
2. Updates to the build scripts. matrix-android-sdk added kotlin as a
dependency, moved to okhttp3, added io.realm, and so on.
3. Code modifications to support new SDK itself. The changes, here, are
a grab bag, and you're best off just reading the commit.
Of particular note, here, is that LoginRestClient.loginWithUser takes a
device name *and* a device ID, now (the previous API only took a device
name). As a wicked had, right now, I'm just using the name as the ID,
but I have no doubt that's wrong and this should be cleaned up to
include a randomly generated, persisted device ID, as I believe this is
used by Synapse to track login sessions.
2018-12-29 23:26:49 +00:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility 1.8
|
|
|
|
targetCompatibility 1.8
|
|
|
|
}
|
2017-10-10 21:26:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-10-12 20:21:09 +00:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
|
|
implementation 'androidx.preference:preference:1.1.0'
|
Upgrade to matrix-android-sdk 0.9.14.
There's a bunch of changes, required, to move to the latest SDK:
1. Update AAR's. The matrix-sdk.aar in this commit was built from the
v0.9.14 tag of the matrix-android-sdk git repository. olm-sdk.jar is
pulled from the same place.
2. Updates to the build scripts. matrix-android-sdk added kotlin as a
dependency, moved to okhttp3, added io.realm, and so on.
3. Code modifications to support new SDK itself. The changes, here, are
a grab bag, and you're best off just reading the commit.
Of particular note, here, is that LoginRestClient.loginWithUser takes a
device name *and* a device ID, now (the previous API only took a device
name). As a wicked had, right now, I'm just using the name as the ID,
but I have no doubt that's wrong and this should be cleaned up to
include a randomly generated, persisted device ID, as I believe this is
used by Synapse to track login sessions.
2018-12-29 23:26:49 +00:00
|
|
|
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
2019-10-12 20:21:09 +00:00
|
|
|
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
|
2017-10-10 21:26:41 +00:00
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
})
|
2019-10-12 20:21:09 +00:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
|
|
testImplementation 'junit:junit:4.12'
|
2017-10-10 21:26:41 +00:00
|
|
|
|
Upgrade to matrix-android-sdk 0.9.14.
There's a bunch of changes, required, to move to the latest SDK:
1. Update AAR's. The matrix-sdk.aar in this commit was built from the
v0.9.14 tag of the matrix-android-sdk git repository. olm-sdk.jar is
pulled from the same place.
2. Updates to the build scripts. matrix-android-sdk added kotlin as a
dependency, moved to okhttp3, added io.realm, and so on.
3. Code modifications to support new SDK itself. The changes, here, are
a grab bag, and you're best off just reading the commit.
Of particular note, here, is that LoginRestClient.loginWithUser takes a
device name *and* a device ID, now (the previous API only took a device
name). As a wicked had, right now, I'm just using the name as the ID,
but I have no doubt that's wrong and this should be cleaned up to
include a randomly generated, persisted device ID, as I believe this is
used by Synapse to track login sessions.
2018-12-29 23:26:49 +00:00
|
|
|
implementation(name: 'matrix-sdk', ext: 'aar')
|
2019-10-12 20:21:09 +00:00
|
|
|
implementation(name: 'matrix-sdk-core', ext: 'aar')
|
|
|
|
implementation(name: 'matrix-sdk-crypto', ext: 'aar')
|
Upgrade to matrix-android-sdk 0.9.14.
There's a bunch of changes, required, to move to the latest SDK:
1. Update AAR's. The matrix-sdk.aar in this commit was built from the
v0.9.14 tag of the matrix-android-sdk git repository. olm-sdk.jar is
pulled from the same place.
2. Updates to the build scripts. matrix-android-sdk added kotlin as a
dependency, moved to okhttp3, added io.realm, and so on.
3. Code modifications to support new SDK itself. The changes, here, are
a grab bag, and you're best off just reading the commit.
Of particular note, here, is that LoginRestClient.loginWithUser takes a
device name *and* a device ID, now (the previous API only took a device
name). As a wicked had, right now, I'm just using the name as the ID,
but I have no doubt that's wrong and this should be cleaned up to
include a randomly generated, persisted device ID, as I believe this is
used by Synapse to track login sessions.
2018-12-29 23:26:49 +00:00
|
|
|
implementation(name: 'olm-sdk', ext: 'aar')
|
2017-10-10 21:26:41 +00:00
|
|
|
|
Upgrade to matrix-android-sdk 0.9.14.
There's a bunch of changes, required, to move to the latest SDK:
1. Update AAR's. The matrix-sdk.aar in this commit was built from the
v0.9.14 tag of the matrix-android-sdk git repository. olm-sdk.jar is
pulled from the same place.
2. Updates to the build scripts. matrix-android-sdk added kotlin as a
dependency, moved to okhttp3, added io.realm, and so on.
3. Code modifications to support new SDK itself. The changes, here, are
a grab bag, and you're best off just reading the commit.
Of particular note, here, is that LoginRestClient.loginWithUser takes a
device name *and* a device ID, now (the previous API only took a device
name). As a wicked had, right now, I'm just using the name as the ID,
but I have no doubt that's wrong and this should be cleaned up to
include a randomly generated, persisted device ID, as I believe this is
used by Synapse to track login sessions.
2018-12-29 23:26:49 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
2019-10-12 20:21:09 +00:00
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.6.0'
|
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.6.0'
|
|
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.12.3'
|
|
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.3'
|
Upgrade to matrix-android-sdk 0.9.14.
There's a bunch of changes, required, to move to the latest SDK:
1. Update AAR's. The matrix-sdk.aar in this commit was built from the
v0.9.14 tag of the matrix-android-sdk git repository. olm-sdk.jar is
pulled from the same place.
2. Updates to the build scripts. matrix-android-sdk added kotlin as a
dependency, moved to okhttp3, added io.realm, and so on.
3. Code modifications to support new SDK itself. The changes, here, are
a grab bag, and you're best off just reading the commit.
Of particular note, here, is that LoginRestClient.loginWithUser takes a
device name *and* a device ID, now (the previous API only took a device
name). As a wicked had, right now, I'm just using the name as the ID,
but I have no doubt that's wrong and this should be cleaned up to
include a randomly generated, persisted device ID, as I believe this is
used by Synapse to track login sessions.
2018-12-29 23:26:49 +00:00
|
|
|
implementation 'com.facebook.stetho:stetho:1.5.0'
|
|
|
|
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.0'
|
2017-10-10 21:26:41 +00:00
|
|
|
}
|