Skip to content

Commit

Permalink
Update to latest Android and Gradle versions
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniolg committed Jul 4, 2018
1 parent ab19986 commit 7351c4c
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 19 deletions.
17 changes: 8 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion '24.0.3'

compileSdkVersion 27
defaultConfig {
applicationId 'com.antonioleiva.androidmvp'
minSdkVersion 16
targetSdkVersion 24
applicationId "antonioleiva.com.test"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName '1.0'
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
Expand All @@ -20,6 +19,6 @@ android {
}

dependencies {
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.0.90-beta'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.15.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public class LoginActivity extends Activity implements LoginView, View.OnClickLi
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);

progressBar = (ProgressBar) findViewById(R.id.progress);
username = (EditText) findViewById(R.id.username);
password = (EditText) findViewById(R.id.password);
progressBar = findViewById(R.id.progress);
username = findViewById(R.id.username);
password = findViewById(R.id.password);
findViewById(R.id.button).setOnClickListener(this);

presenter = new LoginPresenterImpl(this,new LoginInteractorImpl());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public class MainActivity extends Activity implements MainView, AdapterView.OnIt
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
listView = (ListView) findViewById(R.id.list);
listView = findViewById(R.id.list);
listView.setOnItemClickListener(this);
progressBar = (ProgressBar) findViewById(R.id.progress);
progressBar = findViewById(R.id.progress);
presenter = new MainPresenterImpl(this, new FindItemsInteractorImpl());
}

Expand Down
15 changes: 12 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.android.tools.build:gradle:3.1.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

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

task clean(type: Delete) {
delete rootProject.buildDir
}
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 @@
#Sat Jun 28 10:58:27 CEST 2014
#Sat Jan 13 09:12:34 PST 2018
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.4.1-all.zip

0 comments on commit 7351c4c

Please sign in to comment.