-
Notifications
You must be signed in to change notification settings - Fork 377
Fix permissions activity #2388
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
Fix permissions activity #2388
Changes from all commits
2a1d17c
88e62e5
1d5c248
cae6843
88ca626
3bec9b3
432ef4a
9481a12
386a159
d77c64f
f740987
78262bd
6257985
d9b1a64
a47fa8a
921a4f7
5e579a8
2f88198
ccddde3
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 |
|---|---|---|
|
|
@@ -23,7 +23,13 @@ | |
| # Remove when creating an .aar build. | ||
| #android.enableAapt2=false | ||
|
|
||
| org.gradle.jvmargs=-Xmx1536m | ||
| org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError | ||
|
Contributor
Author
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. had to increase the memory for running tests |
||
|
|
||
| # Gradle daemon optimization | ||
| org.gradle.daemon=true | ||
| org.gradle.parallel=true | ||
| org.gradle.caching=true | ||
| org.gradle.configureondemand=true | ||
|
|
||
| # Enables D8 for all modules. | ||
| android.enableD8 = true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,8 @@ android { | |
| testOptions { | ||
| unitTests.all { | ||
| maxParallelForks 1 | ||
| maxHeapSize '2048m' | ||
| maxHeapSize '3072m' | ||
| jvmArgs '-XX:MaxMetaspaceSize=256m', '-XX:+UseG1GC', '-XX:+UseStringDeduplication' | ||
| } | ||
| unitTests { | ||
| includeAndroidResources = true | ||
|
|
@@ -68,9 +69,14 @@ ext { | |
| } | ||
|
|
||
| dependencies { | ||
| implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion" | ||
|
Contributor
Author
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. changed context: I had to add these libraries to get the standard setup going to use Android View Models and lifescope methods. And now to test this code, I had to upgrade Roboelectric test library which then began complaining about duplicate class.
So I moved from But if you folks know something where we have to be dependent for jdk 7 explicitly, please call it out
Member
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. We still want to support Android 5 (API level 21). This seems to still work correctly from what I have read and also tested to confirm. |
||
| implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4" | ||
| implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4" | ||
| implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion" | ||
| implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion" | ||
| implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion" | ||
|
|
||
| // AndroidX Lifecycle and Activity | ||
| implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion" | ||
| implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion" | ||
| implementation "androidx.activity:activity-ktx:$activityVersion" | ||
|
|
||
| compileOnly('com.amazon.device:amazon-appstore-sdk:[3.0.1, 3.0.99]') | ||
|
|
||
|
|
@@ -87,13 +93,14 @@ dependencies { | |
| testImplementation("io.kotest:kotest-runner-junit5-jvm:$kotestVersion") | ||
| testImplementation("io.kotest:kotest-assertions-core:$kotestVersion") | ||
| testImplementation("io.kotest:kotest-property:$kotestVersion") | ||
| testImplementation("org.robolectric:robolectric:4.8.1") | ||
| testImplementation("org.robolectric:robolectric:4.10.3") | ||
| // kotest-extensions-android allows Robolectric to work with Kotest via @RobolectricTest | ||
| testImplementation("br.com.colman:kotest-extensions-android:0.1.1") | ||
| testImplementation("androidx.test:core-ktx:1.4.0") | ||
| testImplementation("androidx.test:core:1.4.0") | ||
| testImplementation("io.mockk:mockk:1.13.2") | ||
| testImplementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion") | ||
| testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion") | ||
|
|
||
| // com.tdunning:json is needed for non-Robolectric tests. | ||
| testImplementation("com.tdunning:json:$tdunningJsonForTest") | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Recommend we make sure this substitution works before publishing the 5.4.0 release. I have concerns if this really works correctly when it comes to the dependencies in the .aar files.