Archived
Added ProGuard rules for properly deobfuscating crash logs
This commit is contained in:
Vendored
+5
@@ -19,3 +19,8 @@
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
-keepattributes *Annotation*
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
-keep class com.crashlytics.** { *; }
|
||||
-dontwarn com.crashlytics.**
|
||||
@@ -31,7 +31,7 @@ class CardAdapter(private var mSubst: List<Subst>) : RecyclerView.Adapter<CardAd
|
||||
var mCourse: TextView = itemView.findViewById(R.id.course)
|
||||
var mRoom: TextView = itemView.findViewById(R.id.room)
|
||||
var mAdditional: TextView = itemView.findViewById(R.id.additional)
|
||||
var mCard = itemView.findViewById<MaterialCardView>(R.id.planCard)
|
||||
var mCard: MaterialCardView = itemView.findViewById(R.id.planCard)
|
||||
init { view.setOnClickListener(this) }
|
||||
override fun onClick(v: View?) {
|
||||
if (mDate.text.toString().length > 7 && mDate.text.toString().substring(3, 7) == "http") {
|
||||
|
||||
@@ -6,7 +6,6 @@ import android.content.SharedPreferences
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.preference.PreferenceManager
|
||||
import android.util.Log
|
||||
import android.view.*
|
||||
import android.widget.TextView
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
@@ -38,11 +37,7 @@ class Main : AppCompatActivity(R.layout.app_bar_main) {
|
||||
prefs = PreferenceManager.getDefaultSharedPreferences(context) as SharedPreferences
|
||||
val edit = prefs.edit()
|
||||
val firstTime = Intent(context, FirstTime::class.java)
|
||||
|
||||
val deviceName = DeviceName.with(context).request { deviceInfo, _ ->
|
||||
deviceInfo.marketName
|
||||
}
|
||||
Crashlytics.setUserIdentifier("$deviceName, ${prefs.getString("username", "") ?: ""}")
|
||||
Crashlytics.setUserIdentifier(prefs.getString("username", "") ?: "")
|
||||
|
||||
if (prefs.getBoolean("firstTime", true)) {
|
||||
// if (true) {
|
||||
|
||||
@@ -30,8 +30,8 @@ import kotlin.collections.ArrayList
|
||||
|
||||
class SettingsFragment : Fragment(R.layout.content_settings), View.OnClickListener, CompoundButton.OnCheckedChangeListener, ColourAdapter.OnClickListener {
|
||||
|
||||
private lateinit var name: String
|
||||
private lateinit var model: String
|
||||
private var name = ""
|
||||
private var model = ""
|
||||
|
||||
private lateinit var mContext: Context
|
||||
private lateinit var prefs: SharedPreferences
|
||||
|
||||
Reference in New Issue
Block a user