-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: update SettingsLib parts from android-14.0.0_r31 * All SettingsLib's parts are now shipped using a separate namespace in order to use resource processor. * Enabled newly added 'use_resource_processor' clause in Android.bp to use Bazel's resource processor instead of aapt2 to generate R.class files. As per sources, this will be enabled by default in the future. The android.nonTransitiveRClass is the equivalent setting in AGP which is enabled by default since AGP 8, so we removed it. All in all, this speeds up compilation and reduces app size. * chore: align Gradle dependencies with android-14.0.0_r31 * feat(SubscriptionsDao): switch to `@Upsert` added in Room v2.5.0-alpha03 * Also, convert the DAO back to interface while we're at it. See https://developer.android.com/jetpack/androidx/releases/room#2.5.0-alpha03 * feat(telephony): switch to BundleCompat.getParcelable() impl * Support was added in AndroidX Core v1.10.0 * fix(QsAppLauncherTileService): startActivityAndCollapse: Starting activity from TileService using an Intent is not allowed. * --------- beginning of crash E AndroidRuntime FATAL EXCEPTION: main E AndroidRuntime Process: com.github.iusmac.sevensim, PID: 10791 E AndroidRuntime java.lang.UnsupportedOperationException: startActivityAndCollapse: Starting activity from TileService using an Intent is not allowed. E AndroidRuntime at android.service.quicksettings.TileService.startActivityAndCollapse(TileService.java:355) E AndroidRuntime at com.github.iusmac.sevensim.launcher.QsAppLauncherTileService.onClick(QsAppLauncherTileService.java:30) E AndroidRuntime at android.service.quicksettings.TileService$H.handleMessage(TileService.java:494) E AndroidRuntime at android.os.Handler.dispatchMessage(Handler.java:107) E AndroidRuntime at android.os.Looper.loopOnce(Looper.java:232) E AndroidRuntime at android.os.Looper.loop(Looper.java:317) E AndroidRuntime at android.app.ActivityThread.main(ActivityThread.java:8498) E AndroidRuntime at java.lang.reflect.Method.invoke(Native Method) E AndroidRuntime at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552) E AndroidRuntime at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878) * Also > Task :compileDebugJavaWithJavac Note: src/com/github/iusmac/sevensim/launcher/QsAppLauncherTileService.java uses or overrides a deprecated API. * fix(NotificationManager): handle a potential SecurityException /home/runner/work/7SIM/7SIM/src/com/github/iusmac/sevensim/NotificationManager.java:87: Error: Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException [MissingPermission] mNotificationManagerCompat.notify(BACKGROUND_RESTRICTED_NOTIFICATION_ID, notification); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * chore(AndroidManifest): specify foreground service type for FGS to meed the U requirement * fix(ApplicationInfo): un-deprecate PackageManager APIs that use int flags See https://android.googlesource.com/platform/frameworks/base/+/15aa824757dc80d8e10775d77dbf2535be51cad8. * chore: update README.md Signed-off-by: iusmac <[email protected]> * fix: the resource @string/not_set is marked as private in androidx.preference:preference:1.2.0-alpha01 ../../src/com/github/iusmac/sevensim/ui/components/TimePickerPreference.java:226: The resource @string/not_set is marked as private in androidx.preference:preference:1.2.0-alpha01 public @nullable CharSequence provideSummary(final @nonnull TimePickerPreference preference) { final CharSequence time = preference.getTime(); return time != null ? time : preference.getContext().getString(androidx.preference.R.string.not_set); } } } Signed-off-by: iusmac <[email protected]> --------- Signed-off-by: iusmac <[email protected]>
- Loading branch information
Showing
71 changed files
with
356 additions
and
227 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
/* | ||
/fwb | ||
!/.gitignore | ||
!/fetch.sh | ||
!/build.gradle | ||
!/BannerMessagePreference/ | ||
/BannerMessagePreference/* | ||
!/BannerMessagePreference/build.gradle | ||
!/CollapsingToolbarBaseActivity/ | ||
/CollapsingToolbarBaseActivity/* | ||
!/CollapsingToolbarBaseActivity/build.gradle | ||
!/MainSwitchPreference/ | ||
/MainSwitchPreference/* | ||
!/MainSwitchPreference/build.gradle | ||
!/SettingsTheme/ | ||
/SettingsTheme/* | ||
!/SettingsTheme/build.gradle | ||
!/TwoTargetPreference/ | ||
/TwoTargetPreference/* | ||
!/TwoTargetPreference/build.gradle | ||
!/Utils/ | ||
/Utils/* | ||
!/Utils/build.gradle |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
plugins { | ||
id 'com.android.library' | ||
} | ||
|
||
def SettingsLibBannerMessagePreference = '../fwb/packages/SettingsLib/BannerMessagePreference' | ||
|
||
android { | ||
namespace 'com.android.settingslib.widget.preference.banner' | ||
|
||
defaultConfig { | ||
minSdk 28 | ||
targetSdk 34 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
lint { | ||
checkReleaseBuilds false | ||
abortOnError false | ||
} | ||
|
||
sourceSets { | ||
main { | ||
res.srcDirs = ["${SettingsLibBannerMessagePreference}/res"] | ||
java.srcDirs = ["${SettingsLibBannerMessagePreference}/src"] | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation libs.preference | ||
implementation project(':SettingsLib:SettingsTheme') | ||
implementation project(':SettingsLib:Utils') | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
plugins { | ||
id 'com.android.library' | ||
} | ||
|
||
def SettingsLibCollapsingToolbarBaseActivity = '../fwb/packages/SettingsLib/CollapsingToolbarBaseActivity' | ||
|
||
android { | ||
namespace 'com.android.settingslib.collapsingtoolbar' | ||
|
||
defaultConfig { | ||
minSdk 29 | ||
targetSdk 34 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
lint { | ||
checkReleaseBuilds false | ||
abortOnError false | ||
} | ||
|
||
sourceSets { | ||
main { | ||
res.srcDirs = ["${SettingsLibCollapsingToolbarBaseActivity}/res"] | ||
java.srcDirs = ["${SettingsLibCollapsingToolbarBaseActivity}/src"] | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation libs.annotation | ||
implementation libs.appcompat | ||
implementation libs.coordinatorlayout | ||
implementation libs.material | ||
implementation libs.preference | ||
implementation project(':SettingsLib:SettingsTheme') | ||
implementation project(':SettingsLib:Utils') | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
plugins { | ||
id 'com.android.library' | ||
} | ||
|
||
def SettingsLibMainSwitchPreference = '../fwb/packages/SettingsLib/MainSwitchPreference' | ||
|
||
android { | ||
namespace 'com.android.settingslib.widget.mainswitch' | ||
|
||
defaultConfig { | ||
minSdk 28 | ||
targetSdk 34 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
lint { | ||
checkReleaseBuilds false | ||
abortOnError false | ||
} | ||
|
||
sourceSets { | ||
main { | ||
res.srcDirs = ["${SettingsLibMainSwitchPreference}/res"] | ||
java.srcDirs = ["${SettingsLibMainSwitchPreference}/src"] | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation libs.preference | ||
implementation project(':SettingsLib:SettingsTheme') | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
plugins { | ||
id 'com.android.library' | ||
} | ||
|
||
def SettingsLibSettingsTheme = '../fwb/packages/SettingsLib/SettingsTheme' | ||
|
||
android { | ||
namespace 'com.android.settingslib.widget.theme' | ||
|
||
defaultConfig { | ||
minSdk 21 | ||
targetSdk 34 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
lint { | ||
checkReleaseBuilds false | ||
abortOnError false | ||
} | ||
|
||
sourceSets { | ||
main { | ||
res.srcDirs = ["${SettingsLibSettingsTheme}/res"] | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation libs.preference | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
plugins { | ||
id 'com.android.library' | ||
} | ||
|
||
def SettingsLibTwoTargetPreference = '../fwb/packages/SettingsLib/TwoTargetPreference' | ||
|
||
android { | ||
namespace 'com.android.settingslib.widget.preference.twotarget' | ||
|
||
defaultConfig { | ||
minSdk 21 | ||
targetSdk 34 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
lint { | ||
checkReleaseBuilds false | ||
abortOnError false | ||
} | ||
|
||
sourceSets { | ||
main { | ||
res.srcDirs = ["${SettingsLibTwoTargetPreference}/res"] | ||
java.srcDirs = ["${SettingsLibTwoTargetPreference}/src"] | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation libs.annotation | ||
implementation libs.preference | ||
implementation project(':SettingsLib:SettingsTheme') | ||
} |
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
Oops, something went wrong.