File tree Expand file tree Collapse file tree 8 files changed +5
-39
lines changed
app-nia-catalog/dependencies
src/main/kotlin/com/google/samples/apps/nowinandroid
build-logic/convention/src/main/kotlin/com/google/samples/apps/nowinandroid
feature/foryou/src/main/kotlin/com/google/samples/apps/nowinandroid/feature/foryou Expand file tree Collapse file tree 8 files changed +5
-39
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,9 @@ jobs:
109109 - name : Build all build type and flavor permutations
110110 run : ./gradlew :app:assemble :benchmarks:assemble
111111 -x pixel6Api33ProdNonMinifiedReleaseAndroidTest
112- -x pixel6Api33ProdNonMinifiedBenchmarkAndroidTest
113112 -x pixel6Api33DemoNonMinifiedReleaseAndroidTest
114- -x pixel6Api33DemoNonMinifiedBenchmarkAndroidTest
115113 -x collectDemoNonMinifiedReleaseBaselineProfile
116- -x collectDemoNonMinifiedBenchmarkBaselineProfile
117114 -x collectProdNonMinifiedReleaseBaselineProfile
118- -x collectProdNonMinifiedBenchmarkBaselineProfile
119115
120116 - name : Upload build outputs (APKs)
121117 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ androidx.profileinstaller:profileinstaller:1.3.1
7070androidx.savedstate:savedstate-ktx:1.2.1
7171androidx.savedstate:savedstate:1.2.1
7272androidx.startup:startup-runtime:1.1.1
73- androidx.tracing:tracing:1.0.0
73+ androidx.tracing:tracing-ktx:1.3.0-alpha02
74+ androidx.tracing:tracing:1.3.0-alpha02
7475androidx.vectordrawable:vectordrawable-animated:1.1.0
7576androidx.vectordrawable:vectordrawable:1.1.0
7677androidx.versionedparcelable:versionedparcelable:1.1.1
Original file line number Diff line number Diff line change @@ -57,17 +57,6 @@ android {
5757 // Ensure Baseline Profile is fresh for release builds.
5858 baselineProfile.automaticGenerationDuringBuild = true
5959 }
60- create(" benchmark" ) {
61- // Enable all the optimizations from release build through initWith(release).
62- initWith(release)
63- matchingFallbacks.add(" release" )
64- // Debug key signing is available to everyone.
65- signingConfig = signingConfigs.getByName(" debug" )
66- // Only use benchmark proguard rules
67- proguardFiles(" benchmark-rules.pro" )
68- isMinifyEnabled = true
69- applicationIdSuffix = NiaBuildType .BENCHMARK .applicationIdSuffix
70- }
7160 }
7261
7362 packaging {
Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ androidx.savedstate:savedstate:1.2.1
105105androidx.sqlite:sqlite-framework:2.4.0
106106androidx.sqlite:sqlite:2.4.0
107107androidx.startup:startup-runtime:1.1.1
108- androidx.tracing:tracing-ktx:1.1.0
109- androidx.tracing:tracing:1.1.0
108+ androidx.tracing:tracing-ktx:1.3.0-alpha02
109+ androidx.tracing:tracing:1.3.0-alpha02
110110androidx.vectordrawable:vectordrawable-animated:1.1.0
111111androidx.vectordrawable:vectordrawable:1.1.0
112112androidx.versionedparcelable:versionedparcelable:1.1.1
Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- import com.google.samples.apps.nowinandroid.NiaBuildType
1716import com.google.samples.apps.nowinandroid.configureFlavors
1817
1918plugins {
@@ -35,23 +34,6 @@ android {
3534 buildConfig = true
3635 }
3736
38- buildTypes {
39- // This benchmark buildType is used for benchmarking, and should function like your
40- // release build (for example, with minification on). It's signed with a debug key
41- // for easy local/CI testing.
42- create(" benchmark" ) {
43- // Keep the build type debuggable so we can attach a debugger if needed.
44- isDebuggable = true
45- signingConfig = signingConfigs.getByName(" debug" )
46- matchingFallbacks.add(" release" )
47- buildConfigField(
48- " String" ,
49- " APP_BUILD_TYPE_SUFFIX" ,
50- " \" ${NiaBuildType .BENCHMARK .applicationIdSuffix ? : " " } \" "
51- )
52- }
53- }
54-
5537 // Use the same flavor dimensions as the application to allow generating Baseline Profiles on prod,
5638 // which is more close to what will be shipped to users (no fake data), but has ability to run the
5739 // benchmarks on demo, so we benchmark on stable data.
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ import java.io.ByteArrayOutputStream
3030val PACKAGE_NAME = buildString {
3131 append(" com.google.samples.apps.nowinandroid" )
3232 append(BuildConfig .APP_FLAVOR_SUFFIX )
33- append(BuildConfig .APP_BUILD_TYPE_SUFFIX )
3433}
3534
3635fun UiDevice.flingElementDownUp (element : UiObject2 ) {
Original file line number Diff line number Diff line change @@ -22,5 +22,4 @@ package com.google.samples.apps.nowinandroid
2222enum class NiaBuildType (val applicationIdSuffix : String? = null ) {
2323 DEBUG (" .debug" ),
2424 RELEASE ,
25- BENCHMARK (" .benchmark" )
2625}
Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ import androidx.compose.ui.tooling.preview.PreviewParameter
8181import androidx.compose.ui.unit.dp
8282import androidx.compose.ui.unit.max
8383import androidx.compose.ui.unit.sp
84- import androidx.tracing.trace
8584import androidx.hilt.navigation.compose.hiltViewModel
8685import androidx.lifecycle.compose.collectAsStateWithLifecycle
86+ import androidx.tracing.trace
8787import com.google.accompanist.permissions.ExperimentalPermissionsApi
8888import com.google.accompanist.permissions.PermissionStatus.Denied
8989import com.google.accompanist.permissions.rememberPermissionState
You can’t perform that action at this time.
0 commit comments