Skip to content

Commit

Permalink
Upgrade android build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
goober committed Mar 2, 2017
1 parent 0303e7d commit e6e1e4f
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ ext {
}

android {
compileSdkVersion 24
buildToolsVersion "24.0.3"
compileSdkVersion 25
buildToolsVersion "25.0.1"

useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.liato.bankdroid"
minSdkVersion 9
targetSdkVersion 24
targetSdkVersion 25
versionCode 224 + gitVersionCode
versionName gitVersionName
}
Expand Down Expand Up @@ -87,7 +87,7 @@ dependencies {
compile project(':bankdroid-core')
compile 'com.jakewharton:butterknife:6.1.0'
compile 'com.jakewharton.timber:timber:4.3.1'
compile "com.android.support:appcompat-v7:24.2.1"
compile "com.android.support:appcompat-v7:25.2.0"
compile 'com.google.collections:google-collections:1.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
transitive = true;
Expand Down
20 changes: 10 additions & 10 deletions app/src/main/java/com/liato/bankdroid/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class MainActivity extends LockableActivity {

protected static boolean showHidden = false;

private static Bank selectedBank = null;
private Bank selectedBank = null;

private static Account selectedAccount = null;

Expand Down Expand Up @@ -241,7 +241,7 @@ protected void onCreate() {
final Button btnHide = (Button) root.findViewById(R.id.btnHide);
final Button btnUnhide = (Button) root.findViewById(R.id.btnUnhide);
final Button btnWWW = (Button) root.findViewById(R.id.btnWWW);
if (selectedBank.getHideAccounts()) {
if (parent.selectedBank.getHideAccounts()) {
btnHide.setVisibility(View.GONE);
btnUnhide.setVisibility(View.VISIBLE);
btnUnhide.setOnClickListener(this);
Expand All @@ -250,7 +250,7 @@ protected void onCreate() {
btnUnhide.setVisibility(View.GONE);
btnHide.setOnClickListener(this);
}
if (selectedBank.isWebViewEnabled()) {
if (parent.selectedBank.isWebViewEnabled()) {
btnWWW.setOnClickListener(this);
} else {
btnWWW.setVisibility(View.GONE);
Expand All @@ -270,29 +270,29 @@ public void onClick(final View v) {
case R.id.btnHide:
case R.id.btnUnhide:
this.dismiss();
selectedBank.toggleHideAccounts();
DBAdapter.save(selectedBank, context);
parent.selectedBank.toggleHideAccounts();
DBAdapter.save(parent.selectedBank, context);
parent.refreshView();
return;
case R.id.btnWWW:
if (selectedBank != null && selectedBank.isWebViewEnabled()) {
if (parent.selectedBank != null && parent.selectedBank.isWebViewEnabled()) {
//Uri uri = Uri.parse(selectedBank.getURL());
//Intent intent = new Intent(Intent.ACTION_VIEW, uri);
final Intent intent = new Intent(context, WebViewActivity.class);
intent.putExtra("bankid", selectedBank.getDbId());
intent.putExtra("bankid", parent.selectedBank.getDbId());
context.startActivity(intent);
}
this.dismiss();
return;
case R.id.btnEdit:
final Intent intent = new Intent(context, BankEditActivity.class);
intent.putExtra("id", selectedBank.getDbId());
intent.putExtra("id", parent.selectedBank.getDbId());
context.startActivity(intent);
this.dismiss();
return;
case R.id.btnRefresh:
this.dismiss();
new DataRetrieverTask(parent, selectedBank.getDbId()).execute();
new DataRetrieverTask(parent, parent.selectedBank.getDbId()).execute();
return;
case R.id.btnRemove:
this.dismiss();
Expand All @@ -307,7 +307,7 @@ public void onClick(final View v) {
public void onClick(final DialogInterface dialog,
final int id) {
final DBAdapter db = new DBAdapter(context);
db.deleteBank(selectedBank.getDbId());
db.deleteBank(parent.selectedBank.getDbId());
dialog.cancel();
parent.refreshView();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public List<Entry> getValues() {

@Override
public void validate(String value) throws IllegalArgumentException {
if (isRequired()) {
if (required) {
if (value == null || value.trim().isEmpty()) {
throw new IllegalArgumentException(String.format("%s is required", getLabel()));
}
Expand All @@ -168,7 +168,7 @@ private String getLocaleString(String key) {
if (!isLocale()) {
return null;
}
String propertyKey = String.format("field.%s.%s", getReference(), key);
String propertyKey = String.format("field.%s.%s", reference, key);
return resourceBundle.containsKey(propertyKey) ? resourceBundle.getString(propertyKey)
: propertyKey;
}
Expand Down
8 changes: 4 additions & 4 deletions bankdroid-legacy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apply plugin: 'com.android.library'
apply from: '../config/quality/quality.gradle'

android {
compileSdkVersion 24
buildToolsVersion "24.0.3"
compileSdkVersion 25
buildToolsVersion "25.0.1"

useLibrary 'org.apache.http.legacy'
defaultConfig {
minSdkVersion 9
targetSdkVersion 24
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
Expand All @@ -27,7 +27,7 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':bankdroid-interface')
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.jakewharton.timber:timber:4.3.1'
compile ('org.apache.commons:commons-io:1.3.2') {exclude module: 'commons-io'}
compile 'org.jsoup:jsoup:1.7.3'
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:2.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -30,5 +30,5 @@ subprojects {
}

task wrapper(type: Wrapper) {
gradleVersion = '3.1'
gradleVersion = '3.3'
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Sep 29 21:09:55 CEST 2016
#Thu Mar 02 21:11:13 CET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip

1 comment on commit e6e1e4f

@robho
Copy link
Contributor

@robho robho commented on e6e1e4f May 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI..

I found that after this change bankdroid will crash if you tap an account in the main view (to bring up the account menu).

I haven't debugged this, just backtracked the problem to this commit.

Please sign in to comment.