File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ android {
5555 namespace = " com.google.samples.apps.niacatalog"
5656
5757 buildTypes {
58- val release by getting {
58+ release {
5959 // To publish on the Play store a private signing key is required, but to allow anyone
6060 // who clones the code to sign and run the release variant, use the debug signing key.
6161 // TODO: Abstract the signing configuration to a separate file to avoid hardcoding this.
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ android {
3939 }
4040
4141 buildTypes {
42- val debug by getting {
42+ debug {
4343 applicationIdSuffix = NiaBuildType .DEBUG .applicationIdSuffix
4444 }
4545 val release by getting {
@@ -52,7 +52,7 @@ android {
5252 // TODO: Abstract the signing configuration to a separate file to avoid hardcoding this.
5353 signingConfig = signingConfigs.getByName(" debug" )
5454 }
55- val benchmark by creating {
55+ create( " benchmark" ) {
5656 // Enable all the optimizations from release build through initWith(release).
5757 initWith(release)
5858 matchingFallbacks.add(" release" )
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ android {
3939 // This benchmark buildType is used for benchmarking, and should function like your
4040 // release build (for example, with minification on). It's signed with a debug key
4141 // for easy local/CI testing.
42- val benchmark by creating {
42+ create( " benchmark" ) {
4343 // Keep the build type debuggable so we can attach a debugger if needed.
4444 isDebuggable = true
4545 signingConfig = signingConfigs.getByName(" debug" )
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ protobuf {
4141 generateProtoTasks {
4242 all().forEach { task ->
4343 task.builtins {
44- val java by registering {
44+ register( " java" ) {
4545 option(" lite" )
4646 }
47- val kotlin by registering {
47+ register( " kotlin" ) {
4848 option(" lite" )
4949 }
5050 }
You can’t perform that action at this time.
0 commit comments