Skip to content

Commit

Permalink
Upgrade dependencies and convert to AndroidX
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Oct 15, 2018
1 parent 4ae3b55 commit 1cceff9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apply plugin: 'com.android.application'
def homePath = System.properties['user.home']

android {
compileSdkVersion 27
compileSdkVersion 28

defaultConfig {
applicationId "com.ichi2.apisample"
minSdkVersion 15
targetSdkVersion 27
targetSdkVersion 28
versionCode 2
versionName "1.0.1"
}
Expand All @@ -30,6 +30,6 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.ichi2.anki:api:1.1.0alpha6'
}
4 changes: 2 additions & 2 deletions app/src/main/java/com/ichi2/apisample/AnkiDroidHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.os.Build;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.util.SparseArray;

import com.ichi2.anki.api.AddContentApi;
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/com/ichi2/apisample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.ShareCompat;
import android.support.v7.app.AppCompatActivity;
import androidx.annotation.NonNull;
import androidx.core.app.ActivityCompat;
import androidx.core.app.ShareCompat;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;
import android.util.SparseBooleanArray;
import android.view.ActionProvider;
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
android.enableJetifier=true
android.useAndroidX=true
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip

0 comments on commit 1cceff9

Please sign in to comment.