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
4a475b9c
Commit
4a475b9c
authored
Dec 09, 2016
by
Tiago Cunha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preparing new build
parent
58177d52
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
87 additions
and
12 deletions
+87
-12
.gitignore
.gitignore
+6
-0
build.gradle
android-ddp/build.gradle
+5
-0
build.gradle
app/build.gradle
+20
-1
RocketChatApplication.java
.../main/java/chat/rocket/android/RocketChatApplication.java
+2
-7
AbstractFragmentActivity.java
...hat/rocket/android/activity/AbstractFragmentActivity.java
+3
-2
InstabugWrapper.java
...od/java/chat/rocket/android/wrappers/InstabugWrapper.java
+16
-0
InstabugWrapper.java
...qa/java/chat/rocket/android/wrappers/InstabugWrapper.java
+23
-0
quality.gradle
config/quality/quality.gradle
+1
-1
dependencies.gradle
dependencies.gradle
+1
-1
build.gradle
realm-helpers/build.gradle
+5
-0
build.gradle
rocket-chat-android-widgets/build.gradle
+5
-0
No files found.
.gitignore
View file @
4a475b9c
...
...
@@ -33,3 +33,9 @@ proguard/
# MacOS
.DS_Store
# Auth files
*.jks
app/rocket-chat.json
app/src/release/google-services.json
app/src/release/res/values/api_key_strings.xml
android-ddp/build.gradle
View file @
4a475b9c
...
...
@@ -31,6 +31,11 @@ android {
minifyEnabled
false
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
}
debug
{
defaultConfig
{
minSdkVersion
21
}
}
}
}
...
...
app/build.gradle
View file @
4a475b9c
...
...
@@ -2,6 +2,7 @@ apply plugin: 'com.android.application'
apply
plugin:
'me.tatarka.retrolambda'
apply
plugin:
'realm-android'
apply
plugin:
'com.jakewharton.hugo'
apply
plugin:
'com.github.triplet.play'
apply
from:
'../config/quality/quality.gradle'
buildscript
{
...
...
@@ -19,6 +20,7 @@ buildscript {
classpath
rootProject
.
ext
.
realmPlugin
classpath
'com.jakewharton.hugo:hugo-plugin:1.2.1'
classpath
'com.google.gms:google-services:3.0.0'
classpath
'com.github.triplet.gradle:play-publisher:1.1.5'
}
// Exclude the version that the android plugin depends on.
...
...
@@ -53,6 +55,19 @@ android {
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
signingConfig
signingConfigs
.
release
}
debug
{
defaultConfig
{
minSdkVersion
21
}
}
}
productFlavors
{
qa
{
// something - qa builds will have some extra stuff for alpha testers
}
prod
{
// another
}
}
packagingOptions
{
exclude
'META-INF/LICENSE.txt'
...
...
@@ -67,6 +82,10 @@ android {
lintConfig
file
(
"lint.xml"
)
}
}
play
{
jsonFile
=
file
(
'rocket-chat.json'
)
track
=
"${track}"
}
repositories
{
mavenCentral
()
...
...
@@ -84,7 +103,7 @@ dependencies {
compile
rootProject
.
ext
.
supportAppCompat
compile
rootProject
.
ext
.
supportDesign
c
ompile
(
'com.instabug.library:instabug:3.1.0'
)
{
qaC
ompile
(
'com.instabug.library:instabug:3.1.0'
)
{
exclude
group:
'io.reactivex'
}
compile
'com.android.support:multidex:1.0.1'
...
...
app/src/main/java/chat/rocket/android/RocketChatApplication.java
View file @
4a475b9c
...
...
@@ -4,13 +4,11 @@ import android.support.multidex.MultiDexApplication;
import
chat.rocket.android.model.ServerConfig
;
import
chat.rocket.android.realm_helper.RealmStore
;
import
com.facebook.stetho.Stetho
;
import
com.instabug.library.Feature
;
import
com.instabug.library.Instabug
;
import
com.instabug.library.invocation.InstabugInvocationEvent
;
import
com.uphyca.stetho_realm.RealmInspectorModulesProvider
;
import
io.realm.Realm
;
import
io.realm.RealmConfiguration
;
import
java.util.List
;
import
chat.rocket.android.wrappers.InstabugWrapper
;
import
timber.log.Timber
;
/**
...
...
@@ -37,10 +35,7 @@ public class RocketChatApplication extends MultiDexApplication {
.
enableWebKitInspector
(
RealmInspectorModulesProvider
.
builder
(
this
).
build
())
.
build
());
new
Instabug
.
Builder
(
this
,
getString
(
R
.
string
.
instabug_api_key
))
.
setInvocationEvent
(
InstabugInvocationEvent
.
FLOATING_BUTTON
)
.
setInAppMessagingState
(
Feature
.
State
.
DISABLED
)
//not available in Free plan...
.
build
();
InstabugWrapper
.
build
(
this
,
getString
(
R
.
string
.
instabug_api_key
));
//TODO: add periodic trigger for RocketChatService.keepalive(this) here!
}
...
...
app/src/main/java/chat/rocket/android/activity/AbstractFragmentActivity.java
View file @
4a475b9c
...
...
@@ -7,8 +7,9 @@ import android.support.v4.app.Fragment;
import
android.support.v4.app.FragmentManager
;
import
android.view.MotionEvent
;
import
chat.rocket.android.helper.OnBackPressListener
;
import
com.instabug.library.InstabugTrackingDelegate
;
import
com.trello.rxlifecycle.components.support.RxAppCompatActivity
;
import
chat.rocket.android.wrappers.InstabugWrapper
;
import
icepick.Icepick
;
import
timber.log.Timber
;
...
...
@@ -68,7 +69,7 @@ abstract class AbstractFragmentActivity extends RxAppCompatActivity {
@Override
public
boolean
dispatchTouchEvent
(
MotionEvent
event
)
{
try
{
Instabug
TrackingDelegate
.
notifyActivityGotTouchEvent
(
event
,
this
);
Instabug
Wrapper
.
wrap
(
event
,
this
);
}
catch
(
IllegalStateException
exception
)
{
Timber
.
w
(
exception
,
"Instabug error (ignored)"
);
}
...
...
app/src/prod/java/chat/rocket/android/wrappers/InstabugWrapper.java
0 → 100644
View file @
4a475b9c
package
chat
.
rocket
.
android
.
wrappers
;
import
android.app.Activity
;
import
android.app.Application
;
import
android.view.MotionEvent
;
public
class
InstabugWrapper
{
public
static
void
build
(
Application
application
,
String
apiKey
)
{
// stub
}
public
static
void
wrap
(
MotionEvent
event
,
Activity
activity
)
{
// stub
}
}
app/src/qa/java/chat/rocket/android/wrappers/InstabugWrapper.java
0 → 100644
View file @
4a475b9c
package
chat
.
rocket
.
android
.
wrappers
;
import
android.app.Activity
;
import
android.app.Application
;
import
android.view.MotionEvent
;
import
com.instabug.library.Feature
;
import
com.instabug.library.Instabug
;
import
com.instabug.library.InstabugTrackingDelegate
;
import
com.instabug.library.invocation.InstabugInvocationEvent
;
public
class
InstabugWrapper
{
public
static
void
build
(
Application
application
,
String
apiKey
)
{
new
Instabug
.
Builder
(
application
,
apiKey
)
.
setInvocationEvent
(
InstabugInvocationEvent
.
FLOATING_BUTTON
)
.
setInAppMessagingState
(
Feature
.
State
.
DISABLED
)
//not available in Free plan...
.
build
();
}
public
static
void
wrap
(
MotionEvent
event
,
Activity
activity
)
{
InstabugTrackingDelegate
.
notifyActivityGotTouchEvent
(
event
,
activity
);
}
}
config/quality/quality.gradle
View file @
4a475b9c
...
...
@@ -40,7 +40,7 @@ task checkstyle(type: Checkstyle, group: 'Verification', description: 'Runs code
task
findbugs
(
type:
FindBugs
,
group:
'Verification'
,
description:
'Inspect java bytecode for bugs'
,
dependsOn:
[
'compile
DebugSources'
,
'compileRelease
Sources'
])
{
dependsOn:
[
'compile
QaDebug
Sources'
])
{
ignoreFailures
=
false
effort
=
"max"
...
...
dependencies.gradle
View file @
4a475b9c
...
...
@@ -5,7 +5,7 @@ ext {
retroLambdaPatch
=
'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
compileSdkVersion
=
25
buildToolsVersion
=
'25.0.1'
minSdkVersion
=
21
//for accelerating multi-dex build. OVERRIDEN BY Circle CI to
17
minSdkVersion
=
17
supportVersion
=
'25.0.1'
supportAnnotations
=
"com.android.support:support-annotations:$supportVersion"
...
...
realm-helpers/build.gradle
View file @
4a475b9c
...
...
@@ -33,6 +33,11 @@ android {
minifyEnabled
false
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
}
debug
{
defaultConfig
{
minSdkVersion
21
}
}
}
}
...
...
rocket-chat-android-widgets/build.gradle
View file @
4a475b9c
...
...
@@ -26,6 +26,11 @@ android {
minifyEnabled
false
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
}
debug
{
defaultConfig
{
minSdkVersion
21
}
}
}
}
...
...
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