@@ -114,25 +114,29 @@ allprojects {
114
114
}
115
115
}
116
116
117
- final def buildTime = new Date (). format(" yyyyMMddHHmm" )
118
-
119
117
final def buildCommit = providers. exec {
120
118
commandLine(' git' , ' rev-parse' , ' --short=7' , ' HEAD' )
121
119
}. standardOutput. asText. get(). trim()
122
120
123
- final def versionString = " 14.0.0"
124
- final def versionDisplayName = " ${ versionString} (${ buildCommit} )"
125
- final def parts = versionString. split(" \\ ." )
126
- final def majorVersion = parts[0 ]
127
- final def versionInt = parts[0 ]. toInteger() * 1000000 + parts[1 ]. toInteger() * 10000 + parts[2 ]. toInteger() * 100
121
+ final def ciBuild = System . getenv(" CI" ) == " true"
122
+ final def ciRef = System . getenv(" GITHUB_REF" ) ?: " "
123
+ final def ciRunNumber = System . getenv(" GITHUB_RUN_NUMBER" ) ?: " "
124
+ final def isReleaseBuild = ciBuild && ciRef. contains(" beta" )
125
+ final def devReleaseName = ciBuild ? " Dev.(#${ ciRunNumber} )" : " Dev.(${ buildCommit} )"
126
+ final def version = " 14"
127
+ final def releaseName = " Beta 3"
128
+ final def versionDisplayName = " ${ version} .${ isReleaseBuild ? releaseName : devReleaseName} "
129
+ final def majorVersion = versionDisplayName. split(" \\ ." )[0 ]
128
130
129
131
final def quickstepMinSdk = " 29"
130
132
final def quickstepMaxSdk = " 34"
131
133
132
134
android {
133
135
namespace " com.android.launcher3"
134
136
defaultConfig {
135
- versionCode versionInt
137
+ // Lawnchair Launcher 14.0 Beta 3
138
+ // See CONTRIBUTING.md#versioning-scheme
139
+ versionCode 14_00_02_03
136
140
versionName " ${ versionDisplayName} "
137
141
buildConfigField " String" , " VERSION_DISPLAY_NAME" , " \" ${ versionDisplayName} \" "
138
142
buildConfigField " String" , " MAJOR_VERSION" , " \" ${ majorVersion} \" "
@@ -147,7 +151,8 @@ android {
147
151
148
152
applicationVariants. configureEach { variant ->
149
153
variant. outputs. configureEach {
150
- outputFileName = " Lawnchair-${ versionString} -${ buildTime} -${ buildCommit} .apk"
154
+ def channel = variant. productFlavors. last(). name
155
+ outputFileName = " Lawnchair.${ variant.versionName} .$channel . ${ variant.buildType.name} .apk"
151
156
}
152
157
}
153
158
@@ -201,12 +206,17 @@ android {
201
206
202
207
buildTypes {
203
208
all {
204
- pseudoLocalesEnabled true
205
- resValue(" string" , " derived_app_name" , " Lawnchair" )
206
209
signingConfig releaseSigning
210
+ pseudoLocalesEnabled true
211
+ }
212
+
213
+ debug {
214
+ applicationIdSuffix " .debug"
215
+ resValue(" string" , " derived_app_name" , " Lawnchair (Debug)" )
207
216
}
208
217
209
218
release {
219
+ resValue(" string" , " derived_app_name" , " Lawnchair" )
210
220
minifyEnabled true
211
221
shrinkResources true
212
222
proguardFiles proguardFilesFromAosp + " proguard.pro"
@@ -223,19 +233,29 @@ android {
223
233
}
224
234
225
235
// See: https://developer.android.com/studio/build/build-variants#flavor-dimensions
226
- flavorDimensions + = [" app" , " recents" ]
236
+ flavorDimensions + = [" app" , " recents" , " channel " ]
227
237
228
238
productFlavors {
229
239
lawn {
230
240
dimension " app"
231
- applicationId ' app.lawnchair'
232
241
}
233
242
234
243
withQuickstep {
235
244
dimension " recents"
236
245
minSdk 26
237
246
}
238
247
248
+ github {
249
+ applicationId ' app.lawnchair'
250
+ dimension " channel"
251
+ }
252
+
253
+ play {
254
+ applicationId " app.lawnchair.play"
255
+ dimension " channel"
256
+ isDefault true
257
+ }
258
+
239
259
configureEach {
240
260
resValue(" string" , " launcher_component" , " ${ applicationId} /app.lawnchair.LawnchairLauncher" )
241
261
}
@@ -264,7 +284,11 @@ android {
264
284
}
265
285
}
266
286
267
- lawnWithQuickstep {
287
+ lawnWithQuickstepGithub {
288
+ manifest. srcFile " quickstep/AndroidManifest-launcher.xml"
289
+ }
290
+
291
+ lawnWithQuickstepPlay {
268
292
manifest. srcFile " quickstep/AndroidManifest-launcher.xml"
269
293
}
270
294
@@ -338,7 +362,7 @@ dependencies {
338
362
implementation " androidx.recyclerview:recyclerview:1.3.2"
339
363
implementation " androidx.preference:preference-ktx:1.2.1"
340
364
341
- implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1 '
365
+ implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0 '
342
366
implementation ' org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.2'
343
367
implementation ' com.github.ChickenHook:RestrictionBypass:2.2'
344
368
implementation ' dev.rikka.tools.refine:runtime:4.4.0'
0 commit comments