Skip to content

Commit b5d2d96

Browse files
fix bugs
Signed-off-by: androidacy-user <[email protected]>
1 parent 90d6821 commit b5d2d96

File tree

8 files changed

+17
-25
lines changed

8 files changed

+17
-25
lines changed

app/src/main/kotlin/com/fox2code/mmm/XHooks.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ import com.fox2code.mmm.repo.RepoManager
1515
/**
1616
* Class made to expose some manager functions to xposed modules.
1717
* It will not be obfuscated on release builds
18+
*
19+
* TODO: Evaluate usage and deprecate if not needed
1820
*/
1921
@Suppress("UNUSED_PARAMETER")
20-
@Deprecated("This class is deprecated and will be removed in the future")
2122
@Keep
2223
enum class XHooks {
2324
;

app/src/main/kotlin/com/fox2code/mmm/module/ActionButtonType.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ enum class ActionButtonType {
182182
var markwon: Markwon? = null
183183
val localModuleInfo = moduleHolder.moduleInfo
184184
if (localModuleInfo != null && localModuleInfo.updateChangeLog.isNotEmpty()) {
185-
markwon = INSTANCE!!.reallyGetMarkwon()
185+
markwon = INSTANCE!!.markwon
186186
// Re-render each time in cse of config changes
187187
desc = markwon!!.toMarkdown(localModuleInfo.updateChangeLog)
188188
}
@@ -484,7 +484,7 @@ enum class ActionButtonType {
484484
var markwon: Markwon? = null
485485
val localModuleInfo = moduleHolder.moduleInfo
486486
if (localModuleInfo != null && localModuleInfo.updateChangeLog.isNotEmpty()) {
487-
markwon = INSTANCE!!.reallyGetMarkwon()
487+
markwon = INSTANCE!!.markwon
488488
// Re-render each time in cse of config changes
489489
desc = markwon!!.toMarkdown(localModuleInfo.updateChangeLog)
490490
}

app/src/main/kotlin/com/fox2code/mmm/utils/io/net/Http.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ import okhttp3.Response
4848
import okhttp3.Response.*
4949
import okhttp3.dnsoverhttps.DnsOverHttps
5050
import okhttp3.dnsoverhttps.DnsOverHttps.Builder.*
51-
import okhttp3.logging.HttpLoggingInterceptor
52-
import okhttp3.logging.HttpLoggingInterceptor.*
5351
import okio.BufferedSink
5452
import org.chromium.net.CronetEngine
5553
import timber.log.Timber
@@ -342,15 +340,6 @@ enum class Http {;
342340
chain.proceed(request.build())
343341
})
344342

345-
// for debug builds, add a logging interceptor
346-
// this spams the logcat, so it's disabled by default and hidden behind a build config flag
347-
if (BuildConfig.DEBUG && BuildConfig.DEBUG_HTTP) {
348-
Timber.w("HTTP logging is enabled. Performance may be impacted.")
349-
val loggingInterceptor = HttpLoggingInterceptor()
350-
loggingInterceptor.setLevel(Level.BODY)
351-
httpclientBuilder.addInterceptor(loggingInterceptor)
352-
}
353-
354343
// add sentry interceptor
355344
httpclientBuilder.addInterceptor(SentryOkHttpInterceptor())
356345

app/src/main/res/xml/app_info_preferences.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
<PreferenceCategory app:title="@string/pref_category_info">
55
<!-- donate buttons for fox2code and androidacy -->
6-
<com.fox2code.mmm.settings.LongClickablePreference
7-
app:icon="@drawable/ic_baseline_monetization_on_24"
8-
app:key="pref_donate_fox"
9-
app:singleLineTitle="false"
10-
app:title="@string/donate_fox" />
116
<com.fox2code.mmm.settings.LongClickablePreference
127
app:icon="@drawable/ic_baseline_monetization_on_24"
138
app:key="pref_donate_androidacy"
149
app:singleLineTitle="false"
1510
app:summary="@string/donate_androidacy_sum"
1611
app:title="@string/donate_androidacy" />
12+
<com.fox2code.mmm.settings.LongClickablePreference
13+
app:icon="@drawable/ic_baseline_monetization_on_24"
14+
app:key="pref_donate_fox"
15+
app:singleLineTitle="false"
16+
app:title="@string/donate_fox" />
1717
<com.fox2code.mmm.settings.LongClickablePreference
1818
app:icon="@drawable/ic_baseline_bug_report_24"
1919
app:key="pref_report_bug"

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
gradlePluginPortal()
1414
}
1515
dependencies {
16-
classpath("com.android.tools.build:gradle:8.3.0-alpha03")
16+
classpath("com.android.tools.build:gradle:8.1.1")
1717
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22")
1818
classpath("com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:10.8.3")
1919

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ android.enableJetifier=false
1616
android.enableR8.fullMode=true
1717
android.useAndroidX=true
1818
org.gradle.caching=true
19-
org.gradle.configuration-cache=true
19+
org.gradle.configuration-cache=false # temporarily disabled due to https://github.com/getsentry/sentry-android-gradle-plugin/issues/554
2020
org.gradle.configuration-cache.problems=warn
2121
org.gradle.jvmargs=-Xmx1536M -Dorg.gradle.android.cache-fix.ignoreVersionCheck\=true -Dkotlin.daemon.jvm.options\="-Xmx1536M" -Dfile.encoding\=UTF-8 -XX\:+UseParallelGC -XX\:ReservedCodeCacheSize\=768m
2222
org.gradle.parallel=true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Mon Jul 03 11:59:05 EDT 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-rc-2-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
55
networkTimeout=10000
66
zipStoreBase=GRADLE_USER_HOME
77
zipStorePath=wrapper/dists

settings.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ gradleEnterprise {
2121
dependencyResolutionManagement {
2222
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
2323
repositories {
24-
mavenCentral()
2524
google()
26-
// enable jitpack
27-
maven { setUrl("https://jitpack.io") }
25+
mavenCentral()
26+
maven {
27+
setUrl("https://jitpack.io")
28+
}
29+
gradlePluginPortal()
2830
}
2931
}
3032

0 commit comments

Comments
 (0)