1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-11-08 12:02:33 +01:00

test crashlytics

This commit is contained in:
Allan Wang 2017-06-03 21:34:17 -07:00
parent 8ec65f55f8
commit 610df8c6d7
9 changed files with 36 additions and 8 deletions

4
.gitignore vendored
View File

@ -9,4 +9,6 @@
.externalNativeBuild
/app/src/main/res/values/strings_facebook.xml
/app/src/main/kotlin/com/pitchedapps/frost/facebook/Private.kt
*.min.css
*.min.css
/app/src/main/res/values/fabric.xml
fabric.properties

View File

@ -2,7 +2,6 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Frost-for-Facebook.iml" filepath="$PROJECT_DIR$/Frost-for-Facebook.iml" />
<module fileurl="file://$PROJECT_DIR$/Frost-for-Facebook.iml" filepath="$PROJECT_DIR$/Frost-for-Facebook.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
</modules>

View File

@ -30,4 +30,5 @@ cache:
- "$HOME/.m2"
env:
global:
secure: Sob0b0PXhJ5uq+quf74Vl/jWaJ0RVGqTcn83p45iQI/OCEvCLyLk4FojDrtEuu1wUrWNYnv4EpX2WcAUO8+93e93Y3XIfSltXOWnXtM6usSMm7/2iiT1nR0Q6L1mC0rFLvkkhnm1mlq1DGOZKB3eI6WJKx0+/oX3gWUWgmeTsTln7YjQl/QHIk4tJFt3K+DE0fDJfo561OawC2UUPESULv5O/fd4fbnVIcJYJDBciPqT/PNJ+Rx3DqKO3BKam6+ulv5fByCcPaDXiJ7NfWw+ggpgEBZaIoGy/UL6/it1LiDXRE2yHE1kRTjMOmiCd71pL26J0n4c+o2ldTSMz0dScmbA4c+elQDwCjtnXw21B/pNavRvhGX6iqRl2A3z5/ivVf6foSpCSzLm6FZSizAnMBAa0TxmPiM4F3QWvwtF6Rgo7hD/iuTVUW4i6mOIDfTWRPD4Ha6zdkj6OCRZ1OsIuw3OiYZNtlytX7aTyHIC2aoZw0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VjhgMRV4IFLp+j7Rt/PTMgrockckwKfog6zLKPCXAco3hZQeou4BglqXByiL/NllFqzk7dAP9kOGtp4kLXphi+qhKZTx3OPAvW3N/rAuN2YMkHd0Lkl77zXm6zem6wEsZYvVqTNhJrvjL6RRdVsUPfbz8uSuAWw2FCjnxn4iUwye5inh1aUsaXoYFwZRT0S+lUEGeBB3PUEgPUboUcXKHhjBnmTSuZeePwgvN242jvVoFV+0BD6DJw3hCzKeS3xkTEr2VVeYQwJ7KrNSUAIod0Fb7uBcm1WDUuCb54uTTgyPnKEBpc3mdP06KFVgQduNSgqmq1Si180y2+ogMHYhjf8iH+pN6urwFYQD16l7NQvaMVqQSp9VkLiYyPGjdWslwS6UN0p4kEbwbc8pqE7USVWyGaqy6WUe/2VEXUdVIhz+cPBrwa4qOaRi4ERsVh1BIfUY9vQEUQvvpT7N0LL8TkrQ/8ISCdlSeDhDyplLJISdonIWQJA=

View File

@ -1,6 +1,13 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'io.fabric'
def fabricProps = new Properties()
file("../fabric.properties").withInputStream {
stream -> fabricProps.load(stream)
}
def FABRIC_API_KEY = System.env.FABRIC_API_KEY ?: fabricProps.getProperty('FABRIC_API_KEY', 'empty')
println 'Fabric ' + FABRIC_API_KEY
android {
compileSdkVersion Integer.parseInt(project.TARGET_SDK)
buildToolsVersion project.BUILD_TOOLS
@ -13,6 +20,7 @@ android {
versionName project.VERSION_NAME
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [fabricApiKey: FABRIC_API_KEY]
}
applicationVariants.all { variant ->
@ -142,6 +150,10 @@ dependencies {
kapt "nz.bradcampbell:paperparcel-compiler:${PAPER_PARCEL}"
compile "com.jude:swipebackhelper:${SWIPE_BACK}"
compile("com.crashlytics.sdk.android:crashlytics:${CRASHLYTICS}@aar") {
transitive = true;
}
}
kapt {

View File

@ -5,4 +5,10 @@
-keepclassmembers class ** {
@org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
-keepclassmembers class * extends java.lang.Enum {
public *;
public static **[] values();
public static ** valueOf(java.lang.String);
}

View File

@ -93,6 +93,7 @@
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NoActionBar" />
<receiver
android:name=".services.NotificationReceiver"
android:enabled="true"
@ -103,6 +104,9 @@
<action android:name="com.pitchedapps.frost.NOTIFICATIONS" />
</intent-filter>
</receiver>
<meta-data
android:name="io.fabric.ApiKey"
android:value="${fabricApiKey}" />
</application>
</manifest>

View File

@ -2,9 +2,11 @@ package com.pitchedapps.frost
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.crashlytics.android.Crashlytics
import com.pitchedapps.frost.dbflow.loadFbCookiesAsync
import com.pitchedapps.frost.utils.L
import com.pitchedapps.frost.utils.launchNewTask
import io.fabric.sdk.android.Fabric
/**
* Created by Allan Wang on 2017-05-28.
@ -13,7 +15,7 @@ class StartActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Fabric.with(this, Crashlytics())
L.d("Load cookies ${System.currentTimeMillis()}")
loadFbCookiesAsync {
cookies ->

View File

@ -4,12 +4,12 @@ buildscript {
ext.kotlin_version = '1.1.2-4'
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'io.fabric.tools:gradle:1.+'
}
}
@ -18,6 +18,7 @@ allprojects {
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url 'https://maven.fabric.io/public' }
}
}

View File

@ -47,4 +47,5 @@ AUTO_VALUE_PARCEL=0.2.5
RX_PREFS=2.0.0-RC2
EVENT_BUS=3.0.0
PAPER_PARCEL=2.0.1
SWIPE_BACK=3.1.2
SWIPE_BACK=3.1.2
CRASHLYTICS=2.6.8