This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Size Metrics | |
# cancel in-progress workflow if new commits are pushed to same head branch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: [ "master", "main", "release/*", "feature/*" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
... | |
splits { | |
... | |
density { | |
val onlyInclude = fun (density: kotlin.String) { | |
// Enables building multiple APKs per ABI. | |
isEnable = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
... | |
splits { | |
abi { | |
val onlyInclude = fun(abiTag: kotlin.String) { | |
// Enables building multiple APKs per ABI. | |
isEnable = true | |
// By default all ABIs are included, so use reset() and include to specify that |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12-27 16:04:05.090 15634 15662 E GrantPermissionCallable: Permission: android.permission.READ_EXTERNAL_STORAGE cannot be granted! | |
12-27 16:04:05.091 15634 15662 E TestRunner: failed: startup(com.tatadigital.tcp.example.benchmark.ExampleStartupBenchmark) | |
12-27 16:04:05.091 15634 15662 E TestRunner: ----- begin exception ----- | |
12-27 16:04:05.092 15634 15662 E TestRunner: junit.framework.AssertionFailedError: Failed to grant permissions, see logcat for details | |
12-27 16:04:05.092 15634 15662 E TestRunner: at junit.framework.Assert.fail(Assert.java:50) | |
12-27 16:04:05.092 15634 15662 E TestRunner: at androidx.test.runner.permission.PermissionRequester.requestPermissions(PermissionRequester.java:111) | |
12-27 16:04:05.092 15634 15662 E TestRunner: at androidx.test.rule.GrantPermissionRule$RequestPermissionStatement.evaluate(GrantPermissionRule.java:133) | |
12-27 16:04:05.092 15634 15662 E TestRunner: at org.junit.rules.RunRules.evaluate(RunRules.java:20) | |
12-27 16:04:05.092 15634 15662 E TestRunner: at org.junit.runne |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun CenterAlignedText() { | |
Text( | |
text = "Center", | |
textAlign = TextAlign.Center, | |
modifier = Modifier.size(100.dp) | |
.background(Color.Cyan) | |
.wrapContentHeight(), | |
) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// plain kotlin code | |
for (observer in observers) { | |
observer.onStatusChange() | |
} | |
// decompiled bytecode of the above for loop | |
Iterator var2 = ((Scratch_2)this).observers.iterator(); | |
while(var2.hasNext()) { | |
Observer observer = (Observer)var2.next(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// plain kotlin code | |
for (i in 0 until observers.size) { | |
observers[i].onStatusChange() | |
} | |
// decompiled bytecode of the above for loop | |
int i = 0; | |
for(int var5 = ((Scratch_2)this).observers.size(); i < var5; ++i) { | |
((Observer)((Scratch_2)this).observers.get(i)).onStatusChange(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fatal Exception: java.util.ConcurrentModificationException | |
at java.util.ArrayList$Itr.next(ArrayList.java:860) | |
... | |
... | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (observer in observers) { | |
observer.onStatusChange() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (i in 0 until observers.size) { | |
observers[i].onStatusChange() | |
} |