Skip to content

Commit 26b5436

Browse files
Merge pull request #3105 from hussainmohd-a/dev-v055y
v057
2 parents 91c3a02 + 25e62fc commit 26b5436

198 files changed

Lines changed: 9818 additions & 4047 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎app/build.gradle‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,31 @@ android {
421421
}
422422
lint {
423423
abortOnError true
424+
// Lint analyzes main, androidTest and unitTest sources of the variant by
425+
// default; the unitTest analysis (lintAnalyze<Variant>UnitTest) take more time
426+
// to complete. Restrict lint to the variant's main sources.
427+
ignoreTestSources true
428+
}
429+
430+
testOptions {
431+
unitTests {
432+
// Plain JVM unit tests load the stubbed android.jar, whose methods
433+
// throw "not mocked" by default.
434+
returnDefaultValues = true
435+
// NOTE: includeAndroidResources is intentionally left disabled.
436+
// Enabling it makes Robolectric inflate the real manifest, which
437+
// instantiates the app Application (initializes the gojni native
438+
// backend, unavailable on the JVM) and breaks Material-themed
439+
// activity tests.
440+
}
441+
}
442+
443+
// Test-task tuning is done lazily on the task container (configureEach)
444+
// instead of unitTests.all {} to avoid eager configuration.
445+
tasks.withType(Test).configureEach {
446+
// Robolectric sandboxes across ~1200 tests exceed the 512m
447+
// default, causing spurious OOMs in classes that run late.
448+
maxHeapSize = "2g"
424449
}
425450

426451
// ------------------------------------------------------------------
@@ -584,7 +609,7 @@ dependencies {
584609
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
585610
androidTestImplementation 'androidx.test.espresso:espresso-accessibility:3.7.0'
586611
androidTestImplementation 'androidx.test:rules:1.7.0'
587-
testImplementation 'org.robolectric:robolectric:4.16.1'
612+
testImplementation 'org.robolectric:robolectric:4.17'
588613
testImplementation 'androidx.test:core:1.7.0'
589614
testImplementation 'androidx.test.ext:junit:1.3.0'
590615
testImplementation 'org.mockito:mockito-core:5.23.0'

‎app/src/full/res/color/chip_toggle_text.xml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- Toggle-chip text (Allowed/Blocked on the home logs card): selection is
3-
conveyed by full-contrast text on the selected chip and a dimmed label
4-
on the unselected one; no green/red tinting. -->
52
<selector xmlns:android="http://schemas.android.com/apk/res/android">
63
<item android:state_checked="true" android:color="?attr/primaryTextColor" />
74
<item android:color="?attr/primaryLightColorText" />
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:state_checked="true" android:color="?attr/colorPrimary" />
4+
<item android:color="?attr/border" />
5+
</selector>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:state_checked="true" android:color="?attr/colorPrimary" />
4+
<item android:color="?attr/primaryLightColorText" />
5+
</selector>

‎app/src/full/res/layout-w600dp/fragment_home_screen.xml‎

Lines changed: 889 additions & 0 deletions
Large diffs are not rendered by default.

‎app/src/full/res/layout/activity_misc_settings.xml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<com.google.android.material.card.MaterialCardView
2929
android:layout_width="match_parent"
3030
android:layout_height="wrap_content"
31-
app:cardElevation="4dp"
3231
android:layout_margin="4dp"
3332
app:cardCornerRadius="8dp">
3433

@@ -368,7 +367,6 @@
368367
<com.google.android.material.card.MaterialCardView
369368
android:layout_width="match_parent"
370369
android:layout_height="wrap_content"
371-
app:cardElevation="4dp"
372370
android:layout_margin="4dp"
373371
app:cardCornerRadius="8dp">
374372

@@ -714,7 +712,6 @@
714712
<com.google.android.material.card.MaterialCardView
715713
android:layout_width="match_parent"
716714
android:layout_height="wrap_content"
717-
app:cardElevation="4dp"
718715
android:layout_margin="4dp"
719716
app:cardCornerRadius="8dp">
720717

@@ -927,7 +924,6 @@
927924
<com.google.android.material.card.MaterialCardView
928925
android:layout_width="match_parent"
929926
android:layout_height="wrap_content"
930-
app:cardElevation="4dp"
931927
android:layout_marginStart="4dp"
932928
android:layout_marginEnd="4dp"
933929
android:layout_marginTop="4dp"

‎app/src/full/res/layout/activity_tunnel_settings.xml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
<com.google.android.material.card.MaterialCardView
6363
android:layout_width="match_parent"
6464
android:layout_height="wrap_content"
65-
app:cardElevation="4dp"
6665
android:layout_margin="4dp"
6766
app:cardCornerRadius="8dp">
6867

@@ -602,7 +601,6 @@
602601
<com.google.android.material.card.MaterialCardView
603602
android:layout_width="match_parent"
604603
android:layout_height="wrap_content"
605-
app:cardElevation="4dp"
606604
android:layout_margin="4dp"
607605
app:cardCornerRadius="8dp">
608606

@@ -1011,7 +1009,6 @@
10111009
<com.google.android.material.card.MaterialCardView
10121010
android:layout_width="match_parent"
10131011
android:layout_height="wrap_content"
1014-
app:cardElevation="4dp"
10151012
android:layout_marginStart="4dp"
10161013
android:layout_marginEnd="4dp"
10171014
android:layout_marginTop="4dp"

0 commit comments

Comments
 (0)