Skip to content

Commit 3bfae33

Browse files
committed
update to Launcher3-android14-s2-release
1 parent 1ad1c8c commit 3bfae33

File tree

832 files changed

+25217
-11442
lines changed

Some content is hidden

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

832 files changed

+25217
-11442
lines changed

Android.bp

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ android_library {
7979
"androidx.test.uiautomator_uiautomator",
8080
"androidx.preference_preference",
8181
"SystemUISharedLib",
82-
"SystemUIAnimationLib",
82+
"animationlib",
8383
"launcher-testing-shared",
8484
],
8585
srcs: [
@@ -243,7 +243,7 @@ android_library {
243243
"lottie",
244244
"SystemUISharedLib",
245245
"SystemUI-statsd",
246-
"SystemUIAnimationLib",
246+
"animationlib",
247247
],
248248
manifest: "quickstep/AndroidManifest.xml",
249249
min_sdk_version: "current",
@@ -305,7 +305,7 @@ android_library {
305305
"SystemUISharedLib",
306306
"Launcher3CommonDepsLib",
307307
"QuickstepResLib",
308-
"SystemUIAnimationLib",
308+
"animationlib",
309309
],
310310
manifest: "quickstep/AndroidManifest.xml",
311311
platform_apis: true,

Android.mk

-147
This file was deleted.

AndroidManifest-common.xml

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<uses-permission android:name="android.permission.VIBRATE"/>
4444
<!-- for rotating surface by arbitrary degree -->
4545
<uses-permission android:name="android.permission.ROTATE_SURFACE_FLINGER" />
46+
<uses-permission android:name="android.permission.WAKEUP_SURFACE_FLINGER" />
4647
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
4748

4849
<!--

OWNERS

+2-24
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,14 @@
55
#
66

77
adamcohen@google.com
8-
alexchau@google.com
9-
andonian@google.com
10-
awickham@google.com
11-
brdayauon@google.com
12-
brianji@google.com
138
captaincole@google.com
14-
charlander@google.com
15-
fbaron@google.com
16-
ganjam@google.com
17-
hwwang@google.com
189
hyunyoungs@google.com
19-
jagrutdesai@google.com
20-
jeremysim@google.com
21-
jiuyu@google.com
22-
jonmiranda@google.com
23-
kylim@google.com
24-
patmanning@google.com
25-
peanutbutter@google.com
26-
pinyaoting@google.com
27-
randypfohl@google.com
28-
saumyaprakash@google.com
29-
sihua@google.com
3010
sunnygoyal@google.com
31-
tracyzhou@google.com
32-
tsuharesu@google.com
3311
twickham@google.com
3412
vadimt@google.com
35-
victortulias@google.com
3613
winsonc@google.com
37-
xuqiu@google.com
14+
jonmiranda@google.com
15+
alexchau@google.com
3816

3917
per-file FeatureFlags.java, globs = set noparent
4018
per-file FeatureFlags.java = sunnygoyal@google.com, winsonc@google.com, adamcohen@google.com, hyunyoungs@google.com, captaincole@google.com

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
* Launcher3-11
1818
* Launcher3-12(可以编译Quickstep版本)
1919
* Launcher3-13-Qc(高通版本,可以编译Quickstep版本)
20-
* master (Launcher3-13.0.0_r83(7e9e70085176ea46bf773019a5054942d2fc3811))--Android-13
20+
* Launcher3-13 (Launcher3-13.0.0_r83(7e9e70085176ea46bf773019a5054942d2fc3811))--Android-13
21+
* master (Launcher3-android14-s2-release)--Android-14
2122

2223
## 源码参考
2324
https://cs.android.com/android/platform/superproject/+/master:packages/apps/Launcher3/

build.gradle

+46-49
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,28 @@ buildscript {
1414
}
1515
}
1616

17-
final String ANDROID_TOP = "${rootDir}/"
18-
final String FRAMEWORK_PREBUILTS_DIR = "${ANDROID_TOP}/prebuilts/framework_intermediates/"
17+
final String ANDROID_TOP = "${rootDir}/../../.."
18+
final String FRAMEWORK_PREBUILTS_DIR = "${ANDROID_TOP}/prebuilts/libs/"
1919

2020
apply plugin: 'com.android.application'
2121
apply plugin: 'com.google.protobuf'
22-
apply plugin: 'kotlin-android'
23-
24-
def protocVersion = '3.8.0'
22+
apply plugin: 'org.jetbrains.kotlin.android'
2523

2624
android {
2725
compileSdkVersion COMPILE_SDK
2826

27+
namespace = 'com.android.launcher3'
28+
2929
defaultConfig {
3030
minSdkVersion 26
31-
targetSdkVersion 33
31+
targetSdkVersion 34
3232
versionCode 1
3333
versionName "1.0"
3434

35+
buildConfigField "boolean", "IS_STUDIO_BUILD", "false"
36+
buildConfigField "boolean", "QSB_ON_FIRST_SCREEN", "true"
37+
buildConfigField "boolean", "IS_DEBUG_DEVICE", "false"
38+
3539
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3640
vectorDrawables.useSupportLibrary = true
3741
}
@@ -40,13 +44,10 @@ android {
4044
minifyEnabled false
4145
}
4246
}
43-
lintOptions {
44-
checkReleaseBuilds false
45-
abortOnError false
46-
}
47+
4748
compileOptions {
48-
sourceCompatibility JavaVersion.VERSION_1_8
49-
targetCompatibility JavaVersion.VERSION_1_8
49+
sourceCompatibility JavaVersion.VERSION_17
50+
targetCompatibility JavaVersion.VERSION_17
5051
}
5152

5253
// The flavor dimensions for build variants (e.g. aospWithQuickstep, aospWithoutQuickstep)
@@ -56,7 +57,7 @@ android {
5657
productFlavors {
5758
aosp {
5859
dimension "app"
59-
applicationId 'com.android.ttlauncher3'
60+
applicationId 'com.android.launcher3'
6061
testApplicationId 'com.android.launcher3.tests'
6162
}
6263

@@ -140,63 +141,59 @@ android {
140141
manifest.srcFile "quickstep/AndroidManifest.xml"
141142
}
142143
}
144+
kotlinOptions {
145+
jvmTarget = '17'
146+
}
143147
}
144148

145149
allprojects {
146150
repositories {
147-
//maven { url "../../../prebuilts/sdk/current/androidx/m2repository" }
148-
//maven { url "../../../prebuilts/fullsdk-darwin/extras/android/m2repository" }
149-
//maven { url "../../../prebuilts/fullsdk-linux/extras/android/m2repository" }
151+
// maven { url "../../../prebuilts/sdk/current/androidx/m2repository" }
152+
// maven { url "../../../prebuilts/fullsdk-darwin/extras/android/m2repository" }
153+
// maven { url "../../../prebuilts/fullsdk-linux/extras/android/m2repository" }
150154
mavenCentral()
151155
google()
152-
mavenLocal()
153-
gradlePluginPortal()
154156
maven { url 'https://maven.aliyun.com/repository/jcenter' }
155157
maven { url 'https://maven.aliyun.com/repository/google' }
156158
maven { url 'https://maven.aliyun.com/repository/central' }
157159
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
158160
}
159-
// gradle.projectsEvaluated {
160-
// tasks.withType(JavaCompile) {
161-
// options.compilerArgs.add("-Xbootclasspath/p:${FRAMEWORK_PREBUILTS_DIR}/libs/framework.jar")
162-
// }
163-
// }
164161
}
165162

166163
dependencies {
167-
implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"
168-
implementation "androidx.recyclerview:recyclerview:1.3.1"
169-
implementation "androidx.preference:preference:1.2.1"
164+
implementation "androidx.dynamicanimation:dynamicanimation:${ANDROID_X_VERSION}"
165+
implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}"
166+
implementation "androidx.preference:preference:${ANDROID_X_VERSION}"
170167
implementation project(':IconLoader')
168+
implementation project(':systemUIPluginCore')
171169
// implementation project(':UiTestsLibLauncher')
172-
//withQuickstepImplementation project(':SharedLibWrapper')
173-
implementation "androidx.slice:slice-builders:1.0.0"
174-
implementation "com.google.protobuf:protobuf-javalite:3.8.0"
170+
// withQuickstepImplementation project(':SharedLibWrapper')
171+
implementation 'com.google.protobuf:protobuf-javalite:3.8.0'
172+
implementation 'androidx.core:core-ktx:1.10.1'
173+
175174
// Recents lib dependency
176-
withQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'sysui_shared.jar')
175+
withQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}", include: 'sysui_shared.jar')
177176

178177
// Required for AOSP to compile. This is already included in the sysui_shared.jar
179-
withoutQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'plugin_core.jar')
180-
// compileOnly files("${FRAMEWORK_PREBUILTS_DIR}/libs/framework.jar")
181-
182-
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
183-
implementation 'androidx.cardview:cardview:1.0.0'
184-
implementation "com.google.android.material:material:1.5.0"
185-
186-
//testImplementation 'junit:junit:4.12'
187-
//androidTestImplementation "org.mockito:mockito-core:1.9.5"
188-
//androidTestImplementation 'com.google.dexmaker:dexmaker:1.2'
189-
//androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.2'
190-
//androidTestImplementation 'com.android.support.test:runner:1.0.0'
191-
//androidTestImplementation 'com.android.support.test:rules:1.0.0'
192-
//androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
193-
//androidTestImplementation "androidx.annotation:annotation:${ANDROID_X_VERSION}"
194-
//implementation 'com.google.dagger:dagger:2.11-rc2'
195-
//annotationProcessor 'com.google.dagger:dagger-compiler:2.11-rc2'
196-
//implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
197-
api 'com.airbnb.android:lottie:5.2.0'
178+
withoutQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}", include: 'plugin_core.jar')
179+
180+
testImplementation 'junit:junit:4.12'
181+
androidTestImplementation "org.mockito:mockito-core:1.9.5"
182+
androidTestImplementation 'com.google.dexmaker:dexmaker:1.2'
183+
androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.2'
184+
androidTestImplementation 'com.android.support.test:runner:1.0.0'
185+
androidTestImplementation 'com.android.support.test:rules:1.0.0'
186+
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
187+
androidTestImplementation "androidx.annotation:annotation:${ANDROID_X_VERSION}"
188+
189+
api 'com.airbnb.android:lottie:3.3.0'
190+
191+
implementation 'com.google.android.material:material:1.4.0'
192+
implementation 'androidx.slice:slice-builders:1.0.0'
198193
}
199194

195+
def protocVersion = '3.8.0'
196+
200197
protobuf {
201198
// Configure the protoc executable
202199
protoc {

0 commit comments

Comments
 (0)