Skip to content

Commit

Permalink
Merge pull request #38 from kike-canaries/av/crashlytics
Browse files Browse the repository at this point in the history
Av/crashlytics
  • Loading branch information
hpsaturn authored Dec 27, 2019
2 parents ee4e6b4 + ead2a80 commit b99a9db
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
apply plugin: 'com.android.application'
apply plugin: 'com.livinglifetechway.quickpermissions_plugin'
apply plugin: 'io.fabric'


android {
compileSdkVersion project.mCompileSdkVersion.toInteger()
Expand Down Expand Up @@ -75,6 +77,8 @@ dependencies {
implementation 'com.google.firebase:firebase-core:17.2.1'
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation 'com.firebaseui:firebase-ui-database:4.2.0'
implementation 'com.google.firebase:firebase-analytics:17.2.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'

implementation 'com.github.vic797:prowebview:2.2.1'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import androidx.preference.Preference;
import androidx.preference.PreferenceManager;
import androidx.preference.SwitchPreference;

import com.crashlytics.android.Crashlytics;
import com.google.android.material.snackbar.Snackbar;
import com.takisoft.preferencex.PreferenceFragmentCompat;
import android.os.Handler;
Expand Down Expand Up @@ -441,6 +443,9 @@ public void configCallBack(SensorConfig config) {
Logger.i(TAG, "apisrv:" + config.apisrv);
Logger.i(TAG, "apiuri:" + config.apiuri);
Logger.i(TAG, "apiprt:" + config.apiprt);
Crashlytics.setString(getString(R.string.crashkey_device_name),""+config.dname);
Crashlytics.setString(getString(R.string.crashkey_device_wmac),""+config.wmac);
Crashlytics.setString(getString(R.string.crashkey_api_usr),""+config.apiusr);
updatePreferencesSummmary(config);
updateSwitches(config);
saveAllPreferences(config);
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@
<string name="msg_device_reboot">CanAirio device rebooting…</string>
<string name="msg_set_current_location">Set current location into the device?</string>
<string name="bt_location_save_action">set</string>
<string name="crashkey_device_wmac">crashkey_device_wmac</string>
<string name="crashkey_device_name">crashkey_device_name</string>
<string name="crashkey_api_usr">crashkey_api_usr</string>
</resources>
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ buildscript {
google()
jcenter()
maven { url "https://jitpack.io" }
maven { url 'https://maven.fabric.io/public' }

}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.github.QuickPermissions:QuickPermissions:0.3.2'
classpath 'io.fabric.tools:gradle:1.31.2'

}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ org.gradle.jvmargs=-Xmx1536m
mCompileSdkVersion=28
mMinSdkVersion=19
mTargetSdkVersion=28
mVersionCode=319
mVersionCode=357
mVersionName=0.2.2
android.useAndroidX=true
android.enableJetifier=true

0 comments on commit b99a9db

Please sign in to comment.