mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
android: fix weird acra build error
This commit is contained in:
committed by
a1batross
parent
cd881c079b
commit
bb811310d2
5
android/app/proguard-rules.pro
vendored
5
android/app/proguard-rules.pro
vendored
@@ -109,3 +109,8 @@
|
||||
void hapticRun(int, float, int);
|
||||
void hapticStop(int);
|
||||
}
|
||||
|
||||
# Unexpected reference to missing service class: META-INF/services/javax.annotation.processing.Processor.
|
||||
-dontwarn javax.annotation.processing.Processor
|
||||
-dontwarn javax.annotation.processing.AbstractProcessor
|
||||
-dontwarn javax.annotation.processing.SupportedOptions
|
||||
|
||||
@@ -3,20 +3,22 @@ package su.xash.engine
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import android.os.StrictMode
|
||||
import org.acra.data.StringFormat
|
||||
import org.acra.ktx.initAcra
|
||||
|
||||
class MainApplication : Application() {
|
||||
override fun attachBaseContext(base: Context?) {
|
||||
super.attachBaseContext(base)
|
||||
|
||||
if (!BuildConfig.DEBUG) {
|
||||
// initAcra {
|
||||
// buildConfigClass = BuildConfig::class.java
|
||||
// reportFormat = StringFormat.JSON
|
||||
//
|
||||
initAcra {
|
||||
buildConfigClass = BuildConfig::class.java
|
||||
reportFormat = StringFormat.JSON
|
||||
|
||||
// httpSender {
|
||||
// uri = "http://bodis.pp.ua:5000/report"
|
||||
// }
|
||||
// }
|
||||
}
|
||||
} else {
|
||||
// enable strict mode to detect memory leaks etc.
|
||||
StrictMode.enableDefaults();
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package su.xash.engine;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.content.res.AssetManager;
|
||||
import android.os.Build;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[versions]
|
||||
acraHttp = "5.12.0"
|
||||
agp = "8.9.0"
|
||||
agp = "8.9.1"
|
||||
appcompat = "1.7.0"
|
||||
kotlin = "2.0.0"
|
||||
material = "1.12.0"
|
||||
navigationRuntimeKtx = "2.8.5"
|
||||
navigationRuntimeKtx = "2.8.9"
|
||||
preferenceKtx = "1.2.1"
|
||||
swiperefreshlayout = "1.1.0"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user