Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
486a578a
Commit
486a578a
authored
Nov 30, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introduce Instabug
parent
35c077c9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
8 deletions
+33
-8
build.gradle
app/build.gradle
+7
-1
RocketChatApplication.java
.../main/java/chat/rocket/android/RocketChatApplication.java
+8
-2
AbstractFragmentActivity.java
...hat/rocket/android/activity/AbstractFragmentActivity.java
+7
-0
api_key_strings.xml
app/src/main/res/values/api_key_strings.xml
+4
-0
dependencies.gradle
dependencies.gradle
+5
-3
build.gradle
realm-helpers/build.gradle
+1
-1
build.gradle
rocket-chat-android-widgets/build.gradle
+1
-1
No files found.
app/build.gradle
View file @
486a578a
...
@@ -32,13 +32,14 @@ android {
...
@@ -32,13 +32,14 @@ android {
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
defaultConfig
{
defaultConfig
{
applicationId
"chat.rocket.android"
applicationId
"chat.rocket.android"
minSdkVersion
17
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
compileSdkVersion
targetSdkVersion
rootProject
.
ext
.
compileSdkVersion
versionCode
1
versionCode
1
versionName
"1.0"
versionName
"1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
vectorDrawables
.
useSupportLibrary
=
true
vectorDrawables
.
useSupportLibrary
=
true
multiDexEnabled
true
}
}
signingConfigs
{
signingConfigs
{
release
{
release
{
...
@@ -84,6 +85,11 @@ dependencies {
...
@@ -84,6 +85,11 @@ dependencies {
compile
rootProject
.
ext
.
supportAppCompat
compile
rootProject
.
ext
.
supportAppCompat
compile
rootProject
.
ext
.
supportDesign
compile
rootProject
.
ext
.
supportDesign
compile
(
'com.instabug.library:instabug:3.1.0'
)
{
exclude
group:
'io.reactivex'
}
compile
'com.android.support:multidex:1.0.1'
compile
'com.google.firebase:firebase-core:10.0.0'
compile
'com.google.firebase:firebase-core:10.0.0'
compile
'com.google.firebase:firebase-crash:10.0.0'
compile
'com.google.firebase:firebase-crash:10.0.0'
...
...
app/src/main/java/chat/rocket/android/RocketChatApplication.java
View file @
486a578a
package
chat
.
rocket
.
android
;
package
chat
.
rocket
.
android
;
import
android.
app.
Application
;
import
android.
support.multidex.MultiDex
Application
;
import
chat.rocket.android.model.ServerConfig
;
import
chat.rocket.android.model.ServerConfig
;
import
chat.rocket.android.realm_helper.RealmStore
;
import
chat.rocket.android.realm_helper.RealmStore
;
import
com.facebook.stetho.Stetho
;
import
com.facebook.stetho.Stetho
;
import
com.instabug.library.Instabug
;
import
com.instabug.library.invocation.InstabugInvocationEvent
;
import
com.uphyca.stetho_realm.RealmInspectorModulesProvider
;
import
com.uphyca.stetho_realm.RealmInspectorModulesProvider
;
import
io.realm.Realm
;
import
io.realm.Realm
;
import
io.realm.RealmConfiguration
;
import
io.realm.RealmConfiguration
;
...
@@ -13,7 +15,7 @@ import timber.log.Timber;
...
@@ -13,7 +15,7 @@ import timber.log.Timber;
/**
/**
* Customized Application-class for Rocket.Chat
* Customized Application-class for Rocket.Chat
*/
*/
public
class
RocketChatApplication
extends
Application
{
public
class
RocketChatApplication
extends
MultiDex
Application
{
@Override
public
void
onCreate
()
{
@Override
public
void
onCreate
()
{
super
.
onCreate
();
super
.
onCreate
();
...
@@ -34,6 +36,10 @@ public class RocketChatApplication extends Application {
...
@@ -34,6 +36,10 @@ public class RocketChatApplication extends Application {
.
enableWebKitInspector
(
RealmInspectorModulesProvider
.
builder
(
this
).
build
())
.
enableWebKitInspector
(
RealmInspectorModulesProvider
.
builder
(
this
).
build
())
.
build
());
.
build
());
new
Instabug
.
Builder
(
this
,
getString
(
R
.
string
.
instabug_api_key
))
.
setInvocationEvent
(
InstabugInvocationEvent
.
FLOATING_BUTTON
)
.
build
();
//TODO: add periodic trigger for RocketChatService.keepalive(this) here!
//TODO: add periodic trigger for RocketChatService.keepalive(this) here!
}
}
}
}
app/src/main/java/chat/rocket/android/activity/AbstractFragmentActivity.java
View file @
486a578a
...
@@ -5,7 +5,9 @@ import android.support.annotation.IdRes;
...
@@ -5,7 +5,9 @@ import android.support.annotation.IdRes;
import
android.support.annotation.Nullable
;
import
android.support.annotation.Nullable
;
import
android.support.v4.app.Fragment
;
import
android.support.v4.app.Fragment
;
import
android.support.v4.app.FragmentManager
;
import
android.support.v4.app.FragmentManager
;
import
android.view.MotionEvent
;
import
chat.rocket.android.helper.OnBackPressListener
;
import
chat.rocket.android.helper.OnBackPressListener
;
import
com.instabug.library.InstabugTrackingDelegate
;
import
com.trello.rxlifecycle.components.support.RxAppCompatActivity
;
import
com.trello.rxlifecycle.components.support.RxAppCompatActivity
;
import
icepick.Icepick
;
import
icepick.Icepick
;
...
@@ -62,4 +64,9 @@ abstract class AbstractFragmentActivity extends RxAppCompatActivity {
...
@@ -62,4 +64,9 @@ abstract class AbstractFragmentActivity extends RxAppCompatActivity {
.
addToBackStack
(
null
)
.
addToBackStack
(
null
)
.
commit
();
.
commit
();
}
}
@Override
public
boolean
dispatchTouchEvent
(
MotionEvent
ev
)
{
InstabugTrackingDelegate
.
notifyActivityGotTouchEvent
(
ev
,
this
);
return
super
.
dispatchTouchEvent
(
ev
);
}
}
}
app/src/main/res/values/api_key_strings.xml
0 → 100644
View file @
486a578a
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string
name=
"instabug_api_key"
>
e111b2f9ac16d4eed4a3568cf6270835
</string>
</resources>
\ No newline at end of file
dependencies.gradle
View file @
486a578a
...
@@ -2,9 +2,10 @@ ext {
...
@@ -2,9 +2,10 @@ ext {
androidPlugin
=
'com.android.tools.build:gradle:2.2.2'
androidPlugin
=
'com.android.tools.build:gradle:2.2.2'
realmPlugin
=
'io.realm:realm-gradle-plugin:2.2.1'
realmPlugin
=
'io.realm:realm-gradle-plugin:2.2.1'
compileSdkVersion
=
25
compileSdkVersion
=
25
buildToolsVersion
=
'25.0.0'
buildToolsVersion
=
'25.0.1'
minSdkVersion
=
21
//for accelerating multi-dex build. OVERRIDEN BY Circle CI to 17
supportVersion
=
'25.0.
0
'
supportVersion
=
'25.0.
1
'
supportAnnotations
=
"com.android.support:support-annotations:$supportVersion"
supportAnnotations
=
"com.android.support:support-annotations:$supportVersion"
supportRecyclerView
=
"com.android.support:recyclerview-v7:$supportVersion"
supportRecyclerView
=
"com.android.support:recyclerview-v7:$supportVersion"
supportAppCompat
=
"com.android.support:appcompat-v7:$supportVersion"
supportAppCompat
=
"com.android.support:appcompat-v7:$supportVersion"
...
@@ -19,7 +20,8 @@ subprojects { project ->
...
@@ -19,7 +20,8 @@ subprojects { project ->
project
.
configurations
.
all
{
project
.
configurations
.
all
{
resolutionStrategy
{
resolutionStrategy
{
eachDependency
{
details
->
eachDependency
{
details
->
if
(
details
.
requested
.
group
==
'com.android.support'
)
{
if
(
details
.
requested
.
group
==
'com.android.support'
&&
details
.
requested
.
name
!=
"multidex"
)
{
details
.
useVersion
(
rootProject
.
ext
.
supportVersion
)
details
.
useVersion
(
rootProject
.
ext
.
supportVersion
)
}
}
}
}
...
...
realm-helpers/build.gradle
View file @
486a578a
...
@@ -16,7 +16,7 @@ android {
...
@@ -16,7 +16,7 @@ android {
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
compileSdkVersion
targetSdkVersion
rootProject
.
ext
.
compileSdkVersion
versionCode
1
versionCode
1
versionName
"1"
versionName
"1"
...
...
rocket-chat-android-widgets/build.gradle
View file @
486a578a
...
@@ -14,7 +14,7 @@ android {
...
@@ -14,7 +14,7 @@ android {
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
defaultConfig
{
defaultConfig
{
minSdkVersion
17
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
compileSdkVersion
targetSdkVersion
rootProject
.
ext
.
compileSdkVersion
versionCode
1
versionCode
1
versionName
"1"
versionName
"1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment