-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mikhail Barashkov
committed
Jul 27, 2021
1 parent
5e73db3
commit c61c907
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
app/src/main/java/com/handydev/financier/FinancierApplication.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.handydev.financier | ||
|
||
import android.content.Context | ||
import androidx.multidex.MultiDexApplication | ||
import org.acra.ACRA | ||
import org.acra.config.httpSender | ||
import org.acra.data.StringFormat | ||
import org.acra.ktx.initAcra | ||
import org.acra.sender.HttpSender | ||
import java.lang.RuntimeException | ||
|
||
open class FinancierApplication : MultiDexApplication() { | ||
override fun attachBaseContext(base: Context) { | ||
super.attachBaseContext(base) | ||
|
||
initAcra { | ||
//core configuration: | ||
buildConfigClass = BuildConfig::class.java | ||
reportFormat = StringFormat.JSON | ||
httpSender { | ||
uri = BuildConfig.ACRA_URI | ||
basicAuthLogin = BuildConfig.ACRA_LOGIN | ||
basicAuthPassword = BuildConfig.ACRA_PASSWORD | ||
httpMethod = HttpSender.Method.POST | ||
} | ||
} | ||
ACRA.DEV_LOGGING = true | ||
} | ||
} |