Skip to content

Commit 7db2ed7

Browse files
authored
Merge pull request #865 from redsolution/develop
Update to 568
2 parents 2369702 + e6ead86 commit 7db2ed7

File tree

430 files changed

+7123
-3196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

430 files changed

+7123
-3196
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ install:
3030

3131
script:
3232
# By default Travis-ci executes './gradlew build connectedCheck' if no 'script:' section found.
33-
- ./gradlew clean build -Pbuild=dev
33+
- ./gradlew clean build -Pbuild=open
3434

3535

3636
env:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Xabber uses Gradle build system. The only specific thing is git submodule for ge
1818

1919
**2. Build**
2020

21-
To build Xabber use **"dev"** productFlavour. Other flavours like "beta", "prod", "ru" and "vip" requare api keys that not represent in this repository.
21+
To build Xabber use **"open"** productFlavour. Other flavours like "beta", "prod", "dev" and "vip" requare api keys that not represent in this repository.
2222

2323
## Translations [![Crowdin](https://d322cqt584bo4o.cloudfront.net/xabber/localized.svg)](https://crowdin.com/project/xabber)
2424

xabber/build.gradle

Lines changed: 14 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
defaultConfig {
1111
minSdkVersion 15
1212
targetSdkVersion 28
13-
versionCode 533
14-
versionName '2.5(533)'
13+
versionCode 568
14+
versionName '2.6(568)'
1515
}
1616

1717
lintOptions {
@@ -38,6 +38,13 @@ android {
3838
flavorDimensions "build"
3939
productFlavors {
4040

41+
open {
42+
dimension "build"
43+
applicationId "com.xabber.android.open"
44+
resValue 'string', 'application_package', applicationId
45+
multiDexEnabled true
46+
}
47+
4148
dev {
4249
dimension "build"
4350
applicationId "com.xabber.androiddev"
@@ -65,28 +72,13 @@ android {
6572
resValue 'string', 'application_package', applicationId
6673
multiDexEnabled true
6774
}
68-
69-
ru {
70-
dimension "build"
71-
applicationId "com.xabber.android.ru"
72-
resValue 'string', 'application_package', applicationId
73-
multiDexEnabled true
74-
}
75-
7675
}
7776

7877
buildTypes {
7978
release {
8079
minifyEnabled true
8180
shrinkResources true
82-
proguardFiles getDefaultProguardFile('proguard-android.txt'),
83-
'proguard-rules.pro'
84-
// enable crashlytics
85-
buildConfigField "boolean", "USE_CRASHLYTICS", "true"
86-
}
87-
debug {
88-
// disable crashlytics
89-
buildConfigField "boolean", "USE_CRASHLYTICS", "false"
81+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
9082
}
9183
}
9284

@@ -103,33 +95,14 @@ android {
10395
universalApk true
10496
}
10597
}
106-
107-
afterEvaluate {
108-
initFabricPropertiesIfNeeded()
109-
}
110-
}
111-
112-
def initFabricPropertiesIfNeeded() {
113-
def propertiesFile = file('fabric.properties')
114-
115-
def apiSecret = hasProperty('crashlyticsApisecret') ? crashlyticsApisecret : System.getenv('crashlyticsApisecret')
116-
def apiKey = hasProperty('crashlyticsApikey') ? crashlyticsApikey : System.getenv('crashlyticsApikey')
117-
118-
if (!propertiesFile.exists()) {
119-
def commentMessage = "This is autogenerated fabric property from system environment to prevent key to be committed to source control."
120-
ant.propertyfile(file: "fabric.properties", comment: commentMessage) {
121-
entry(key: "apiSecret", value: apiSecret)
122-
entry(key: "apiKey", value: apiKey)
123-
}
124-
}
12598
}
12699

127100
def build_param = "${build}";
128101

129-
if (build_param == "dev") {
130-
//exclude all but dev
102+
if (build_param == "open") {
103+
// exclude all flavours except open
131104
android.variantFilter { variant ->
132-
if (!variant.getFlavors().get(0).name.equals('dev')) {
105+
if (!variant.getFlavors().get(0).name.equals('open')) {
133106
variant.setIgnore(true);
134107
}
135108
}
@@ -172,7 +145,7 @@ dependencies {
172145

173146
// social
174147
implementation 'com.google.android.gms:play-services-safetynet:11.4.0'
175-
implementation 'com.facebook.android:facebook-android-sdk:4.31.0'
148+
implementation 'com.facebook.android:facebook-login:4.36.1'
176149
implementation 'com.twitter.sdk.android:twitter:3.0.0'
177150
implementation 'com.google.android.gms:play-services-auth:11.4.0'
178151
implementation ('com.google.api-client:google-api-client-android:1.22.0') {

xabber/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
-keep @io.realm.internal.Keep class * { *; }
3636
-dontwarn javax.**
3737
-dontwarn io.realm.**
38+
-keepnames public class * extends io.realm.RealmObject
39+
-keep public class * extends io.realm.RealmObject { *; }
40+
-keep class io.realm.** { *; }
3841

3942
# EbentBus
4043
-keepattributes *Annotation*
1004 Bytes
Loading
-11.5 KB
Binary file not shown.
217 Bytes
Loading
-6.4 KB
Binary file not shown.
1.53 KB
Loading
-17.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)