From 7de6de18166b984531fa18743c94709c96c022e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aldo=20Borrero=20Gonza=CC=81lez?= Date: Tue, 22 May 2018 16:13:35 +0200 Subject: [PATCH] Closes #8 --- app/build.gradle | 33 +++++++++---------- .../com/bugfender/sample/ApplicationTest.java | 14 -------- .../com/bugfender/sample/ExampleUnitTest.java | 15 --------- build.gradle | 28 ++++++++-------- gradle/wrapper/gradle-wrapper.properties | 4 +-- 5 files changed, 30 insertions(+), 64 deletions(-) delete mode 100644 app/src/androidTest/java/com/bugfender/sample/ApplicationTest.java delete mode 100644 app/src/test/java/com/bugfender/sample/ExampleUnitTest.java diff --git a/app/build.gradle b/app/build.gradle index c75a570..f5aead4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,27 +1,24 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 23 - buildToolsVersion '25' + compileSdkVersion 27 + buildToolsVersion '27.0.3' - defaultConfig { - applicationId "com.bugfender.sample" - minSdkVersion 14 - targetSdkVersion 23 - versionCode 1 - versionName "1.0" - } - buildTypes { - release { - minifyEnabled true - } + defaultConfig { + applicationId "com.bugfender.sample" + minSdkVersion 14 + targetSdkVersion 27 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled true } + } } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) - testCompile 'junit:junit:4.12' - compile 'com.android.support:appcompat-v7:23.1.1' - - compile 'com.bugfender.sdk:android:1.+' + implementation 'com.android.support:appcompat-v7:27.1.1' + implementation 'com.bugfender.sdk:android:1.0.7' } diff --git a/app/src/androidTest/java/com/bugfender/sample/ApplicationTest.java b/app/src/androidTest/java/com/bugfender/sample/ApplicationTest.java deleted file mode 100644 index 9bab2e2..0000000 --- a/app/src/androidTest/java/com/bugfender/sample/ApplicationTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.bugfender.sample; - -import android.app.Application; -import android.test.ApplicationTestCase; - -/** - * Testing Fundamentals - */ -public class ApplicationTest extends ApplicationTestCase { - - public ApplicationTest() { - super(Application.class); - } -} \ No newline at end of file diff --git a/app/src/test/java/com/bugfender/sample/ExampleUnitTest.java b/app/src/test/java/com/bugfender/sample/ExampleUnitTest.java deleted file mode 100644 index db657b6..0000000 --- a/app/src/test/java/com/bugfender/sample/ExampleUnitTest.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.bugfender.sample; - -import org.junit.Test; - -import static org.junit.Assert.*; - -/** - * To work on unit tests, switch the Test Artifact in the Build Variants view. - */ -public class ExampleUnitTest { - - @Test public void addition_isCorrect() throws Exception { - assertEquals(4, 2 + 2); - } -} \ No newline at end of file diff --git a/build.gradle b/build.gradle index 74b2ab0..ff471a2 100644 --- a/build.gradle +++ b/build.gradle @@ -1,23 +1,21 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. - buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.android.tools.build:gradle:2.2.3' - - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - } + repositories { + jcenter() + google() + } + dependencies { + classpath 'com.android.tools.build:gradle:3.1.2' + } } allprojects { - repositories { - jcenter() - } + repositories { + jcenter() + google() + mavenCentral() + } } task clean(type: Delete) { - delete rootProject.buildDir + delete rootProject.buildDir } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 32b9b88..feecfa8 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Dec 21 12:42:16 CET 2016 +#Tue May 22 12:51:55 CEST 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-all.zip