Skip to content

Commit

Permalink
修好沉浸,更新 Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsummer233 committed Mar 31, 2024
1 parent 657461e commit 62d864e
Show file tree
Hide file tree
Showing 8 changed files with 205 additions and 172 deletions.
3 changes: 0 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,6 @@ android {
dependencies {
compileOnly(project(":hidden-api"))

// compileOnly files('libs/miui.jar')
// compileOnly files("libs/miui-framework.jar")

compileOnly libs.xposed.api

implementation libs.dexkit
Expand Down
16 changes: 3 additions & 13 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@
android:name=".ui.MainActivity"
android:exported="true"
android:screenOrientation="portrait"
tools:ignore="DiscouragedApi,LockedOrientationActivity"
android:theme="@style/Theme.HyperCeiler.SystemBarBackgrounds">
tools:ignore="DiscouragedApi,LockedOrientationActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
Expand All @@ -88,25 +87,16 @@
<category android:name="android.intent.category.CrashDailog" />
</intent-filter>
</activity>
<!--<activity
android:name=".ui.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
</intent-filter>
</activity>-->

<activity-alias
android:name=".ui.LauncherActivity"
android:exported="true"
android:label="@string/app_name"
android:targetActivity=".ui.MainActivity"
android:screenOrientation="portrait"
android:targetActivity=".ui.MainActivity"
tools:ignore="DiscouragedApi,LockedOrientationActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity-alias>
Expand All @@ -118,7 +108,6 @@
tools:ignore="DiscouragedApi,LockedOrientationActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Expand Down Expand Up @@ -167,6 +156,7 @@
<action android:name="com.sevtinge.hyperceiler.crash.Service" />
</intent-filter>
</service>

</application>

</manifest>
14 changes: 2 additions & 12 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
<resources>
<style name="Base.Theme.HyperCeiler.DayNight" parent="Theme.AppCompat.DayNight.DarkActionBar">
<item name="preferenceTheme">@style/PreferenceThemeOverlay.Dark</item>
<item name="android:forceDarkAllowed">false</item>
<item name="rebootIconColor">@color/white</item>
<item name="seekBarPreferenceExStyle">@style/Preference.SeekBarPreferenceEx</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowTranslucentStatus">true</item>
</style>

<style name="Theme.HyperCeiler.SystemBarBackgrounds">
<item name="android:forceDarkAllowed">false</item>
<style name="Base.Theme.HyperCeiler.DayNight" parent="Base.Theme.HyperCeiler">
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
</style>

<style name="Base.Theme.HyperCeiler" parent="Theme.AppCompat.DayNight.DarkActionBar">
Expand Down
22 changes: 5 additions & 17 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,19 @@
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.HyperCeiler.DayNight"/>
<resources xmlns:tools="http://schemas.android.com/tools">

<style name="Theme.HyperCeiler.SystemBarBackgrounds">
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
</style>
<style name="AppTheme" parent="Base.Theme.HyperCeiler.DayNight" />

<style name="Base.Theme.HyperCeiler.DayNight" parent="Theme.AppCompat.DayNight.DarkActionBar">
<item name="preferenceTheme">@style/PreferenceThemeOverlay.Light</item>
<item name="rebootIconColor">@color/black</item>
<item name="seekBarPreferenceExStyle">@style/Preference.SeekBarPreferenceEx</item>
<style name="Base.Theme.HyperCeiler.DayNight" parent="Base.Theme.HyperCeiler">
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>

<style name="Theme.HyperCeiler" parent="Base.Theme.HyperCeiler">
<item name="android:windowTranslucentNavigation">true</item>
</style>

<style name="Base.Theme.HyperCeiler" parent="Theme.AppCompat.DayNight.DarkActionBar">
<item name="rebootIconColor">@color/black</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay.Light</item>
<item name="seekBarPreferenceExStyle">@style/Preference.SeekBarPreferenceEx</item>
</style>

<style name="Theme.HyperCeiler.Translucent">
<style name="Theme.HyperCeiler.Translucent" parent="Base.Theme.HyperCeiler">
<item name="android:windowBackground">@color/transparent</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowTranslucentStatus">true</item>
Expand All @@ -40,7 +28,7 @@
<item name="windowActionBarOverlay">false</item>
</style>

<style name="Preference.SeekBarPreferenceEx" parent="@style/Preference">
<style name="Preference.SeekBarPreferenceEx" parent="@style/Preference" tools:ignore="PrivateResource">
<item name="android:layout">@layout/preference_widget_seekbar</item>
</style>

Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Thu Mar 21 21:46:19 CST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 62d864e

Please sign in to comment.