Attempt to fix log crash
This commit is contained in:
parent
bd06baff50
commit
4658ceeaa8
4 changed files with 17 additions and 4 deletions
|
|
@ -65,6 +65,11 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation("org.slf4j:slf4j-api:2.0.7")
|
||||||
|
implementation("com.github.tony19:logback-android:3.0.0")
|
||||||
|
}
|
||||||
|
|
||||||
flutter {
|
flutter {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<application
|
<application
|
||||||
tools:replace="android:label"
|
tools:replace="android:label"
|
||||||
android:label="Traccar Client"
|
android:label="Traccar Client"
|
||||||
android:name="${applicationName}"
|
android:name=".MainApplication"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:networkSecurityConfig="@xml/network_security_config">
|
android:networkSecurityConfig="@xml/network_security_config">
|
||||||
<activity
|
<activity
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
package org.traccar.client
|
||||||
|
|
||||||
|
import android.app.Application
|
||||||
|
import org.slf4j.LoggerFactory
|
||||||
|
|
||||||
|
class MainApplication : Application() {
|
||||||
|
override fun onCreate() {
|
||||||
|
LoggerFactory.getILoggerFactory()
|
||||||
|
super.onCreate()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2,9 +2,6 @@ allprojects {
|
||||||
ext {
|
ext {
|
||||||
set("appCompatVersion", "1.7.0")
|
set("appCompatVersion", "1.7.0")
|
||||||
set("playServicesLocationVersion", "21.3.0")
|
set("playServicesLocationVersion", "21.3.0")
|
||||||
// Test logging crash
|
|
||||||
set("logbackVersion", "1.3.0-3")
|
|
||||||
set("slf4jVersion", "1.7.25")
|
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue