@@ -16,12 +16,6 @@ repositories {
1616 includeGroupByRegex " com\\ .github\\ .chrisbanes.*"
1717 }
1818 }
19- maven {
20- url " https://raw.github.com/signalapp/maven/master/shortcutbadger/releases/"
21- content {
22- includeGroupByRegex " me\\ .leolin.*"
23- }
24- }
2519 maven {
2620 url " https://raw.github.com/signalapp/maven/master/circular-progress-button/releases/"
2721 content {
@@ -61,8 +55,8 @@ protobuf {
6155 }
6256}
6357
64- def canonicalVersionCode = 798
65- def canonicalVersionName = " 5.4.12 "
58+ def canonicalVersionCode = 799
59+ def canonicalVersionName = " 5.5.0 "
6660
6761def postFixSize = 100
6862def abiPostFix = [' universal' : 0 ,
@@ -161,6 +155,8 @@ android {
161155 exclude ' META-INF/LICENSE'
162156 exclude ' META-INF/NOTICE'
163157 exclude ' META-INF/proguard/androidx-annotations.pro'
158+ exclude ' /org/spongycastle/x509/CertPathReviewerMessages.properties'
159+ exclude ' /org/spongycastle/x509/CertPathReviewerMessages_de.properties'
164160 }
165161
166162 buildTypes {
@@ -208,6 +204,12 @@ android {
208204 debuggable false
209205 matchingFallbacks = [' debug' ]
210206 }
207+ mock {
208+ initWith debug
209+ isDefault false
210+ minifyEnabled false
211+ matchingFallbacks = [' debug' ]
212+ }
211213 }
212214
213215 productFlavors {
@@ -233,6 +235,15 @@ android {
233235 buildConfigField " String" , " NOPLAY_UPDATE_URL" , " $ext . websiteUpdateUrl "
234236 }
235237
238+ study {
239+ dimension ' distribution'
240+
241+ applicationIdSuffix " .study"
242+ ext. websiteUpdateUrl = " null"
243+ buildConfigField " boolean" , " PLAY_STORE_DISABLED" , " false"
244+ buildConfigField " String" , " NOPLAY_UPDATE_URL" , " $ext . websiteUpdateUrl "
245+ }
246+
236247 prod {
237248 dimension ' environment'
238249
@@ -252,7 +263,7 @@ android {
252263 buildConfigField " String" , " SIGNAL_KEY_BACKUP_URL" , " \" https://api-staging.backup.signal.org\" "
253264 buildConfigField " String" , " CDS_MRENCLAVE" , " \" c98e00a4e3ff977a56afefe7362a27e4961e4f19e211febfbb19b897e6b80b15\" "
254265 buildConfigField " KbsEnclave" , " KBS_ENCLAVE" , " new KbsEnclave(\" 823a3b2c037ff0cbe305cc48928cfcc97c9ed4a8ca6d49af6f7d6981fb60a4e9\" , " +
255- " \" 038c40bbbacdc873caa81ac793bb75afde6dfe436a99ab1f15e3f0cbb7434ced \" , " +
266+ " \" 51a56084c0b21c6b8f62b1bc792ec9bedac4c7c3964bb08ddcab868158c09982 \" , " +
256267 " \" a3baab19ef6ce6f34ab9ebb25ba722725ae44a8872dc0ff08ad6d83a9489de87\" )"
257268 buildConfigField " KbsEnclave[]" , " KBS_FALLBACKS" , " new KbsEnclave[0]"
258269 buildConfigField " String" , " UNIDENTIFIED_SENDER_TRUST_ROOT" , " \" BbqY1DzohE4NUZoVF+L18oUPrK3kILllLEJh2UnPSsEx\" "
@@ -272,6 +283,18 @@ android {
272283 }
273284 }
274285
286+ android. variantFilter { variant ->
287+ def distribution = variant. getFlavors(). get(0 ). name
288+ def environment = variant. getFlavors(). get(1 ). name
289+ def buildType = variant. buildType. name
290+
291+ if (distribution == ' study' && buildType != ' perf' && buildType != ' mock' ) {
292+ variant. setIgnore(true )
293+ } else if (distribution != ' study' && buildType == ' mock' ) {
294+ variant. setIgnore(true )
295+ }
296+ }
297+
275298 lintOptions {
276299 abortOnError true
277300 baseline file(" lint-baseline.xml" )
@@ -334,15 +357,16 @@ dependencies {
334357 implementation project(' :paging' )
335358 implementation project(' :core-util' )
336359 implementation project(' :video' )
360+ implementation project(' :device-transfer' )
337361
338362 implementation ' org.signal:zkgroup-android:0.7.0'
339363 implementation ' org.whispersystems:signal-client-android:0.1.7'
340364 implementation ' com.google.protobuf:protobuf-javalite:3.10.0'
341365 implementation ' org.signal:argon2:13.1@aar'
342366
343- implementation ' org.signal:ringrtc-android:2.9.2 '
367+ implementation ' org.signal:ringrtc-android:2.9.4 '
344368
345- implementation " me.leolin:ShortcutBadger:1.1.16 "
369+ implementation " me.leolin:ShortcutBadger:1.1.22 "
346370 implementation ' se.emilsjolander:stickylistheaders:2.7.0'
347371 implementation ' com.jpardogo.materialtabstrip:library:1.0.9'
348372 implementation ' org.apache.httpcomponents:httpclient-android:4.3.5'
0 commit comments