Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 92eb755

Browse files
committed
v1.7
1 parent 0b69130 commit 92eb755

File tree

7 files changed

+12
-21
lines changed

7 files changed

+12
-21
lines changed

app/build.gradle.kts

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ android {
2222

2323
buildTypes {
2424
release {
25-
isMinifyEnabled = true
26-
isShrinkResources = true
25+
isMinifyEnabled = false
26+
isShrinkResources = false
2727
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
2828
// testCoverage {
2929
// enableUnitTestCoverage = false
3030
// enableAndroidTestCoverage = false
3131
// }
3232
}
3333
debug {
34-
isMinifyEnabled = true
35-
isShrinkResources = true
34+
isMinifyEnabled = false
35+
isShrinkResources = false
3636
// testCoverage {
3737
// enableUnitTestCoverage = true
3838
// enableAndroidTestCoverage = true

jitpack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ before_install:
44
- ./scripts/prepareJitpackEnvironment.sh
55
install:
66
- FILE="-Dfile=theme-release.aar"
7-
- mvn install:install-file $FILE -DgroupId=com.github.Dinesh2811 -DartifactId=theme-release -Dversion=1.6 -Dpackaging=aar -DgeneratePom=true
7+
- mvn install:install-file $FILE -DgroupId=com.github.Dinesh2811 -DartifactId=theme-release -Dversion=1.7 -Dpackaging=aar -DgeneratePom=true

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.github.Dinesh2811</groupId>
66
<artifactId>ThemeManager</artifactId>
7-
<version>1.6</version>
7+
<version>1.7</version>
88
<packaging>pom</packaging>
99
</project>

theme-release.aar

11.8 KB
Binary file not shown.

theme/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ android {
1616

1717
buildTypes {
1818
release {
19-
isMinifyEnabled = true
19+
isMinifyEnabled = false
2020
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
2121
}
2222
debug {
23-
isMinifyEnabled = true
23+
isMinifyEnabled = false
2424
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
2525
}
2626
}
@@ -42,7 +42,7 @@ publishing {
4242
register<MavenPublication>("release") {
4343
groupId = "com.github.Dinesh2811"
4444
artifactId = "ThemeManager"
45-
version = "1.6"
45+
version = "1.7"
4646
}
4747
}
4848
repositories {

theme/proguard-rules.pro

+3-7
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
2222

23-
-keep class * implements com.dinesh.*
24-
-keep class * implements com.dinesh.theme.*
25-
-keep class * implements com.dinesh.theme.app.*
26-
-keep class * implements com.dinesh.theme.util.*
27-
-dontwarn java.lang.invoke.*
28-
-dontwarn java.lang.String.*
29-
-dontwarn java.lang.*
23+
#-dontwarn java.lang.invoke.*
24+
#-dontwarn java.lang.String.*
25+
#-dontwarn java.lang.*
3026
-dontwarn java.lang.invoke.StringConcatFactory

theme/src/main/java/com/dinesh/theme/app/ThemePreference.kt

-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import com.dinesh.theme.util.sharedPreferences
1616
import com.google.android.material.appbar.MaterialToolbar
1717
import com.google.android.material.switchmaterial.SwitchMaterial
1818

19-
private val TAG = "log_" + ThemePreference::class.java.name.split(ThemePreference::class.java.name.split(".").toTypedArray()[2] + ".").toTypedArray()[1]
20-
2119
open class ThemePreference : AppCompatActivity() {
2220
open lateinit var parentLayout: FrameLayout
2321
lateinit var v: View
@@ -63,13 +61,11 @@ open class ThemePreference : AppCompatActivity() {
6361
if (saveLastClassNameList.size > 0) {
6462
// if (this::class.java == saveLastClassNameList.first || LAUNCHER_ACTIVITY == saveLastClassNameList.first) {
6563
if (this::class.java == saveLastClassNameList.first) {
66-
Log.e(TAG, "setContentViewLayout: if")
6764
toolbar.navigationIcon = null
6865
if (classNameAsString != LAUNCHER_ACTIVITY?.name && this::class.java.name != LAUNCHER_ACTIVITY?.name){
6966
toolbar.setNavigationIcon(R.drawable.baseline_home_24)
7067
}
7168
} else{
72-
Log.e(TAG, "setContentViewLayout: else")
7369
toolbar.setNavigationIcon(R.drawable.baseline_arrow_back_24)
7470
}
7571
}
@@ -118,7 +114,6 @@ open class ThemePreference : AppCompatActivity() {
118114
private val onBackPressedCallback = object : OnBackPressedCallback(true) {
119115
override fun handleOnBackPressed() {
120116
LAUNCHER_ACTIVITY?.let { onBackNavigationAction(it) }
121-
Log.e(TAG, "onBackPressedCallback: ")
122117
}
123118
}
124119

0 commit comments

Comments
 (0)