Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

compatibility with Gradle 4.10 and Gradle Plugin 3.3.0 #200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 13 additions & 38 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,29 @@

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:3.3.0-alpha11'
}
}
apply plugin: 'com.android.application'

repositories {
mavenCentral()
google()
jcenter()
}

dependencies {
compile project(":libraries:Jumble")
compile 'com.android.support:support-v4:21.+'
compile 'com.android.support:appcompat-v7:21.+'
compile 'com.android.support:cardview-v7:21.+'
compile 'com.android.support:palette-v7:21.+'
compile 'com.android.support:recyclerview-v7:21.+'
compile 'org.jsoup:jsoup:1.7.2'
compile 'info.guardianproject.netcipher:netcipher:1.2'
implementation project(":libraries:Jumble")
implementation 'com.android.support:support-v4:21.+'
implementation 'com.android.support:appcompat-v7:21.+'
implementation 'com.android.support:cardview-v7:21.+'
implementation 'com.android.support:palette-v7:21.+'
implementation 'com.android.support:recyclerview-v7:21.+'
implementation 'org.jsoup:jsoup:1.7.2'
implementation 'info.guardianproject.netcipher:netcipher:1.2'
}


Expand All @@ -47,44 +48,18 @@ def signingFile = file 'signing.gradle';
if (signingFile.exists()) apply from: 'signing.gradle'

android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
compileSdkVersion 28

defaultConfig {
minSdkVersion 12
targetSdkVersion 21
targetSdkVersion 28
applicationId "com.morlunk.mumbleclient"
versionCode 73
versionName "3.3.0-rc1"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
buildConfigField "boolean", "DONATE_NAG", "false"
}

productFlavors {

official {
applicationId "com.morlunk.mumbleclient"
}

free {
applicationId "com.morlunk.mumbleclient.free"
buildConfigField "boolean", "DONATE_NAG", "true"
}

jenkins {
// Abuse Jenkins environment variables. Neat.
def env = System.getenv()
if (env.containsKey("BUILD_NUMBER") && env.containsKey("BUILD_DISPLAY_NAME")) {
versionCode Integer.parseInt(env.get("BUILD_NUMBER"))
versionName env.get("BUILD_DISPLAY_NAME")
} else {
versionCode 0
versionName "Unknown Nightly"
}
applicationId "com.morlunk.mumbleclient.jenkins"
}
}

lintOptions {
abortOnError false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ public void onCancel(DialogInterface dialog) {
}
});
mConnectingDialog.setMessage(getString(R.string.connecting_to_server, server.getHost(),
server.getPort()));
String.valueOf(server.getPort())));
mConnectingDialog.show();
break;
case CONNECTION_LOST:
Expand All @@ -647,8 +647,7 @@ public void onClick(DialogInterface dialog, int which) {
}
});
} else if (error.getReason() == JumbleException.JumbleDisconnectReason.REJECT &&
(error.getReject().getType() == Mumble.Reject.RejectType.WrongUserPW ||
error.getReject().getType() == Mumble.Reject.RejectType.WrongServerPW)) {
error.isAuthenticationFailure()) {
// FIXME(acomminos): Long conditional.
final EditText passwordField = new EditText(this);
passwordField.setInputType(InputType.TYPE_CLASS_TEXT |
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip
2 changes: 1 addition & 1 deletion libraries/Jumble