Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
d7b51d28
Commit
d7b51d28
authored
Jan 14, 2022
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dependencies
parent
a7af8b57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
build.gradle.kts
app/build.gradle.kts
+3
-3
BaseMainActivity.kt
...c/main/java/com/topjohnwu/magisk/arch/BaseMainActivity.kt
+1
-1
themes.xml
app/src/main/res/values-v31/themes.xml
+2
-2
No files found.
app/build.gradle.kts
View file @
d7b51d28
...
@@ -105,7 +105,7 @@ dependencies {
...
@@ -105,7 +105,7 @@ dependencies {
implementation
(
"com.squareup.moshi:moshi:${vMoshi}"
)
implementation
(
"com.squareup.moshi:moshi:${vMoshi}"
)
kapt
(
"com.squareup.moshi:moshi-kotlin-codegen:${vMoshi}"
)
kapt
(
"com.squareup.moshi:moshi-kotlin-codegen:${vMoshi}"
)
val
vRoom
=
"2.4.
0
"
val
vRoom
=
"2.4.
1
"
implementation
(
"androidx.room:room-runtime:${vRoom}"
)
implementation
(
"androidx.room:room-runtime:${vRoom}"
)
implementation
(
"androidx.room:room-ktx:${vRoom}"
)
implementation
(
"androidx.room:room-ktx:${vRoom}"
)
kapt
(
"androidx.room:room-compiler:${vRoom}"
)
kapt
(
"androidx.room:room-compiler:${vRoom}"
)
...
@@ -117,12 +117,12 @@ dependencies {
...
@@ -117,12 +117,12 @@ dependencies {
implementation
(
"androidx.biometric:biometric:1.1.0"
)
implementation
(
"androidx.biometric:biometric:1.1.0"
)
implementation
(
"androidx.constraintlayout:constraintlayout:2.1.2"
)
implementation
(
"androidx.constraintlayout:constraintlayout:2.1.2"
)
implementation
(
"androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
)
implementation
(
"androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
)
implementation
(
"androidx.appcompat:appcompat:1.4.
0
"
)
implementation
(
"androidx.appcompat:appcompat:1.4.
1
"
)
implementation
(
"androidx.preference:preference:1.1.1"
)
implementation
(
"androidx.preference:preference:1.1.1"
)
implementation
(
"androidx.recyclerview:recyclerview:1.2.1"
)
implementation
(
"androidx.recyclerview:recyclerview:1.2.1"
)
implementation
(
"androidx.fragment:fragment-ktx:1.4.0"
)
implementation
(
"androidx.fragment:fragment-ktx:1.4.0"
)
implementation
(
"androidx.transition:transition:1.4.1"
)
implementation
(
"androidx.transition:transition:1.4.1"
)
implementation
(
"androidx.core:core-ktx:1.7.0"
)
implementation
(
"androidx.core:core-ktx:1.7.0"
)
implementation
(
"androidx.core:core-splashscreen:1.0.0-
alpha02
"
)
implementation
(
"androidx.core:core-splashscreen:1.0.0-
beta01
"
)
implementation
(
"com.google.android.material:material:1.4.0"
)
implementation
(
"com.google.android.material:material:1.4.0"
)
}
}
app/src/main/java/com/topjohnwu/magisk/arch/BaseMainActivity.kt
View file @
d7b51d28
...
@@ -43,7 +43,7 @@ abstract class BaseMainActivity<VM : BaseViewModel, Binding : ViewDataBinding>
...
@@ -43,7 +43,7 @@ abstract class BaseMainActivity<VM : BaseViewModel, Binding : ViewDataBinding>
if
(!
isRunningAsStub
)
{
if
(!
isRunningAsStub
)
{
val
splashScreen
=
installSplashScreen
()
val
splashScreen
=
installSplashScreen
()
splashScreen
.
setKeep
Visible
Condition
{
doPreload
}
splashScreen
.
setKeep
OnScreen
Condition
{
doPreload
}
}
}
if
(
doPreload
)
{
if
(
doPreload
)
{
...
...
app/src/main/res/values-v31/themes.xml
View file @
d7b51d28
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources>
<!-- For stub on API 31+, we cannot rely on the platform SplashScreen -->
<!-- For stub on API 31+, we cannot rely on the platform SplashScreen -->
<!-- Force using SplashScreen
Base
that was used for older APIs -->
<!-- Force using SplashScreen
.Common
that was used for older APIs -->
<style
name=
"StubSplashTheme"
parent=
"Theme.SplashScreen
Base
"
>
<style
name=
"StubSplashTheme"
parent=
"Theme.SplashScreen
.Common
"
>
<item
name=
"android:enforceStatusBarContrast"
>
false
</item>
<item
name=
"android:enforceStatusBarContrast"
>
false
</item>
<item
name=
"android:enforceNavigationBarContrast"
>
false
</item>
<item
name=
"android:enforceNavigationBarContrast"
>
false
</item>
<item
name=
"windowSplashScreenBackground"
>
@color/splash_background
</item>
<item
name=
"windowSplashScreenBackground"
>
@color/splash_background
</item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment