-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:vector-app
level variants
#6788
Changes from all commits
b72a174
a947a53
5d533d4
373a0ca
3a38898
0691046
32a15be
0c469ae
1d50bbd
9e5f07a
e9e2960
68da403
619ea81
e9d15b4
60b164a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[Modules] Lifts the application variants to the app module |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -291,6 +291,12 @@ android { | |
} | ||
} | ||
|
||
sourceSets { | ||
nightly { | ||
java.srcDirs += "src/release/java" | ||
} | ||
} | ||
|
||
flavorDimensions "store" | ||
|
||
productFlavors { | ||
|
@@ -340,16 +346,48 @@ android { | |
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi", | ||
] | ||
} | ||
|
||
buildFeatures { | ||
viewBinding true | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I had removed this in #7014 because it was not used. There are maybe other changes to revert on my PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll smoke test the different builds 🤞 this was added as it's now used by the debug fragments There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can confirm fdroid, nightly, debug and release builds can log in and send a message |
||
} | ||
|
||
dependencies { | ||
implementation project(':vector') | ||
implementation project(':vector-config') | ||
debugImplementation project(':library:ui-styles') | ||
implementation libs.dagger.hilt | ||
implementation 'androidx.multidex:multidex:2.0.1' | ||
implementation "androidx.sharetarget:sharetarget:1.1.0" | ||
|
||
// Flipper, debug builds only | ||
debugImplementation(libs.flipper.flipper) { | ||
exclude group: 'com.facebook.fbjni', module: 'fbjni' | ||
} | ||
debugImplementation(libs.flipper.flipperNetworkPlugin) { | ||
exclude group: 'com.facebook.fbjni', module: 'fbjni' | ||
} | ||
debugImplementation 'com.facebook.soloader:soloader:0.10.4' | ||
debugImplementation "com.kgurgul.flipper:flipper-realm-android:2.2.0" | ||
|
||
gplayImplementation "com.google.android.gms:play-services-location:16.0.0" | ||
// UnifiedPush gplay flavor only | ||
gplayImplementation('com.github.UnifiedPush:android-embedded_fcm_distributor:2.1.2') { | ||
exclude group: 'com.google.firebase', module: 'firebase-core' | ||
exclude group: 'com.google.firebase', module: 'firebase-analytics' | ||
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector' | ||
} | ||
|
||
// Nightly | ||
// API-only library | ||
gplayImplementation libs.google.appdistributionApi | ||
// Full SDK implementation | ||
gplayImplementation libs.google.appdistribution | ||
|
||
// OSS License, gplay flavor only | ||
gplayImplementation 'com.google.android.gms:play-services-oss-licenses:17.0.0' | ||
kapt libs.dagger.hiltCompiler | ||
kapt libs.airbnb.epoxyProcessor | ||
|
||
androidTestImplementation libs.androidx.testCore | ||
androidTestImplementation libs.androidx.testRunner | ||
|
@@ -374,5 +412,6 @@ dependencies { | |
androidTestImplementation libs.androidx.fragmentTesting | ||
androidTestImplementation "org.jetbrains.kotlin:kotlin-reflect:1.7.10" | ||
debugImplementation libs.androidx.fragmentTesting | ||
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.9.1' | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<application> | ||
<activity android:name="im.vector.app.features.debug.TestLinkifyActivity" /> | ||
<activity android:name="im.vector.app.features.debug.DebugPermissionActivity" /> | ||
<activity android:name="im.vector.app.features.debug.analytics.DebugAnalyticsActivity" /> | ||
<activity android:name="im.vector.app.features.debug.settings.DebugPrivateSettingsActivity" /> | ||
<activity android:name="im.vector.app.features.debug.sas.DebugSasEmojiActivity" /> | ||
<activity android:name="im.vector.app.features.debug.features.DebugFeaturesSettingsActivity" /> | ||
<activity android:name="im.vector.app.features.debug.DebugMenuActivity" /> | ||
<activity android:name="im.vector.app.features.debug.leak.DebugMemoryLeaksActivity" /> | ||
|
||
<activity | ||
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Show resolved
Hide resolved
Check warning Code scanning / SonarCloud Restrict access to exported components with appropriate permissions
<!--SONAR_ISSUE_KEY:AYM9EUYpiMTZgb4KhW9W-->Implement permissions on this exported component. <p>See more on <a href="https://sonarcloud.io/project/issues?id=vector-im_element-android&issues=AYM9EUYpiMTZgb4KhW9W&open=AYM9EUYpiMTZgb4KhW9W&pullRequest=6788">SonarCloud</a></p>
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. re-adding comment - this is a debug only manifest ^^^ |
||
android:name="com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity" | ||
android:exported="true" /> | ||
|
||
</application> | ||
|
||
</manifest> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have heard that enabling cache can be slower on the CI because it can take more time to retrieve and unzip the cache than download everything again. Do you have any thoughts on it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this gradle flag enables the build cache, which relative to the existing gradle cache we're already saving on the CI is only about 300MB~ more
Current CI
~1925 MB
https://github.com/vector-im/element-android/runs/8282616819?check_suite_focus=trueWith build caching
~2197 MB
https://github.com/vector-im/element-android/runs/8309095369?check_suite_focus=trueis about 15 seconds slower~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks for checking the duration!