Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
Signed-off-by: androidacy-user <[email protected]>
  • Loading branch information
androidacy-user committed Sep 11, 2023
1 parent 90d6821 commit b5d2d96
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 25 deletions.
3 changes: 2 additions & 1 deletion app/src/main/kotlin/com/fox2code/mmm/XHooks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ import com.fox2code.mmm.repo.RepoManager
/**
* Class made to expose some manager functions to xposed modules.
* It will not be obfuscated on release builds
*
* TODO: Evaluate usage and deprecate if not needed
*/
@Suppress("UNUSED_PARAMETER")
@Deprecated("This class is deprecated and will be removed in the future")
@Keep
enum class XHooks {
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ enum class ActionButtonType {
var markwon: Markwon? = null
val localModuleInfo = moduleHolder.moduleInfo
if (localModuleInfo != null && localModuleInfo.updateChangeLog.isNotEmpty()) {
markwon = INSTANCE!!.reallyGetMarkwon()
markwon = INSTANCE!!.markwon
// Re-render each time in cse of config changes
desc = markwon!!.toMarkdown(localModuleInfo.updateChangeLog)
}
Expand Down Expand Up @@ -484,7 +484,7 @@ enum class ActionButtonType {
var markwon: Markwon? = null
val localModuleInfo = moduleHolder.moduleInfo
if (localModuleInfo != null && localModuleInfo.updateChangeLog.isNotEmpty()) {
markwon = INSTANCE!!.reallyGetMarkwon()
markwon = INSTANCE!!.markwon
// Re-render each time in cse of config changes
desc = markwon!!.toMarkdown(localModuleInfo.updateChangeLog)
}
Expand Down
11 changes: 0 additions & 11 deletions app/src/main/kotlin/com/fox2code/mmm/utils/io/net/Http.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ import okhttp3.Response
import okhttp3.Response.*
import okhttp3.dnsoverhttps.DnsOverHttps
import okhttp3.dnsoverhttps.DnsOverHttps.Builder.*
import okhttp3.logging.HttpLoggingInterceptor
import okhttp3.logging.HttpLoggingInterceptor.*
import okio.BufferedSink
import org.chromium.net.CronetEngine
import timber.log.Timber
Expand Down Expand Up @@ -342,15 +340,6 @@ enum class Http {;
chain.proceed(request.build())
})

// for debug builds, add a logging interceptor
// this spams the logcat, so it's disabled by default and hidden behind a build config flag
if (BuildConfig.DEBUG && BuildConfig.DEBUG_HTTP) {
Timber.w("HTTP logging is enabled. Performance may be impacted.")
val loggingInterceptor = HttpLoggingInterceptor()
loggingInterceptor.setLevel(Level.BODY)
httpclientBuilder.addInterceptor(loggingInterceptor)
}

// add sentry interceptor
httpclientBuilder.addInterceptor(SentryOkHttpInterceptor())

Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/xml/app_info_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@

<PreferenceCategory app:title="@string/pref_category_info">
<!-- donate buttons for fox2code and androidacy -->
<com.fox2code.mmm.settings.LongClickablePreference
app:icon="@drawable/ic_baseline_monetization_on_24"
app:key="pref_donate_fox"
app:singleLineTitle="false"
app:title="@string/donate_fox" />
<com.fox2code.mmm.settings.LongClickablePreference
app:icon="@drawable/ic_baseline_monetization_on_24"
app:key="pref_donate_androidacy"
app:singleLineTitle="false"
app:summary="@string/donate_androidacy_sum"
app:title="@string/donate_androidacy" />
<com.fox2code.mmm.settings.LongClickablePreference
app:icon="@drawable/ic_baseline_monetization_on_24"
app:key="pref_donate_fox"
app:singleLineTitle="false"
app:title="@string/donate_fox" />
<com.fox2code.mmm.settings.LongClickablePreference
app:icon="@drawable/ic_baseline_bug_report_24"
app:key="pref_report_bug"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
gradlePluginPortal()
}
dependencies {
classpath("com.android.tools.build:gradle:8.3.0-alpha03")
classpath("com.android.tools.build:gradle:8.1.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22")
classpath("com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:10.8.3")

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android.enableJetifier=false
android.enableR8.fullMode=true
android.useAndroidX=true
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.configuration-cache=false # temporarily disabled due to https://github.com/getsentry/sentry-android-gradle-plugin/issues/554
org.gradle.configuration-cache.problems=warn
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
org.gradle.parallel=true
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Mon Jul 03 11:59:05 EDT 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-rc-2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
8 changes: 5 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ gradleEnterprise {
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
google()
// enable jitpack
maven { setUrl("https://jitpack.io") }
mavenCentral()
maven {
setUrl("https://jitpack.io")
}
gradlePluginPortal()
}
}

Expand Down

0 comments on commit b5d2d96

Please sign in to comment.