Glimpse: Import androidx.savedstate

Change-Id: I3618a962581b543452e39fb3b899b0e48177a84f
This commit is contained in:
Sebastiano Barezzi 2023-08-03 18:06:21 +02:00 committed by LuK1337
parent 1f0058a622
commit 0081e2d797
6 changed files with 114 additions and 3 deletions

View File

@ -132,10 +132,11 @@ tasks.register("generateBp") {
val isAvailableInAosp = { group: String, artifactId: String ->
when {
group.startsWith("androidx") -> {
// We provide our own androidx.{media3,navigation} & lifecycle-common
// We provide our own androidx.{media3,navigation,savedstate} & lifecycle-common
!group.startsWith("androidx.media3") &&
!group.startsWith("androidx.multidex") &&
!group.startsWith("androidx.navigation") &&
!group.startsWith("androidx.savedstate") &&
artifactId != "lifecycle-common"
}

View File

@ -380,7 +380,7 @@ android_library_import {
"androidx.lifecycle_lifecycle-viewmodel-ktx",
"androidx.lifecycle_lifecycle-viewmodel-savedstate",
"androidx.profileinstaller_profileinstaller",
"androidx.savedstate_savedstate-ktx",
"Glimpse_androidx.savedstate_savedstate-ktx",
"kotlin-stdlib",
],
}
@ -403,7 +403,7 @@ android_library {
"androidx.lifecycle_lifecycle-viewmodel-ktx",
"androidx.lifecycle_lifecycle-viewmodel-savedstate",
"androidx.profileinstaller_profileinstaller",
"androidx.savedstate_savedstate-ktx",
"Glimpse_androidx.savedstate_savedstate-ktx",
"kotlin-stdlib",
],
java_version: "1.7",
@ -623,6 +623,72 @@ android_library {
java_version: "1.7",
}
android_library_import {
name: "Glimpse_androidx.savedstate_savedstate-ktx-nodeps",
aars: ["androidx/savedstate/savedstate-ktx/1.2.1/savedstate-ktx-1.2.1.aar"],
sdk_version: "33",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
static_libs: [
"Glimpse_androidx.savedstate_savedstate",
"kotlin-stdlib",
],
}
android_library {
name: "Glimpse_androidx.savedstate_savedstate-ktx",
sdk_version: "33",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
manifest: "androidx/savedstate/savedstate-ktx/1.2.1/AndroidManifest.xml",
static_libs: [
"Glimpse_androidx.savedstate_savedstate-ktx-nodeps",
"Glimpse_androidx.savedstate_savedstate",
"kotlin-stdlib",
],
java_version: "1.7",
}
android_library_import {
name: "Glimpse_androidx.savedstate_savedstate-nodeps",
aars: ["androidx/savedstate/savedstate/1.2.1/savedstate-1.2.1.aar"],
sdk_version: "33",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
static_libs: [
"androidx.arch.core_core-common",
"Glimpse_androidx.lifecycle_lifecycle-common",
"kotlin-stdlib",
],
}
android_library {
name: "Glimpse_androidx.savedstate_savedstate",
sdk_version: "33",
min_sdk_version: "14",
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
manifest: "androidx/savedstate/savedstate/1.2.1/AndroidManifest.xml",
static_libs: [
"Glimpse_androidx.savedstate_savedstate-nodeps",
"androidx.arch.core_core-common",
"Glimpse_androidx.lifecycle_lifecycle-common",
"kotlin-stdlib",
],
java_version: "1.7",
}
java_import {
name: "Glimpse_com.github.bumptech.glide_annotations-nodeps",
jars: ["com/github/bumptech/glide/annotations/4.15.1/annotations-4.15.1.jar"],

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2020 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="androidx.savedstate.ktx" >
<uses-sdk android:minSdkVersion="14" />
</manifest>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="androidx.savedstate" >
<uses-sdk android:minSdkVersion="14" />
</manifest>