Skip to content

Commit

Permalink
Convert project to use AndroidX (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jawnnypoo authored Feb 14, 2019
1 parent f2e6475 commit 29c45f4
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 33 deletions.
10 changes: 4 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
buildscript {
ext.kotlin_version = '1.2.71'
ext.kotlin_version = '1.3.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
Expand All @@ -28,12 +28,10 @@ task clean(type: Delete) {
}

ext {
compileSdkVersion = 27

supportLibVersion = '27.1.1'
compileSdkVersion = 28

firebaseJobdispatcherVersion = '0.8.5'

minSdkVersion = 14
targetSdkVersion = 27
targetSdkVersion = 28
}
2 changes: 1 addition & 1 deletion fcm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
package com.parse.fcm;

import android.support.annotation.CallSuper;
import androidx.annotation.CallSuper;

import com.google.firebase.iid.FirebaseInstanceIdService;
import com.parse.ParseInstallation;
Expand Down
2 changes: 1 addition & 1 deletion gcm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

}

Expand Down
4 changes: 2 additions & 2 deletions gcm/src/main/java/com/parse/gcm/ParseGCM.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.firebase.jobdispatcher.FirebaseJobDispatcher;
import com.firebase.jobdispatcher.GooglePlayDriver;
Expand Down
6 changes: 2 additions & 4 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#Tue Aug 22 15:11:42 CDT 2017
#Thu Feb 14 09:49:29 CST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
# Make sure to update the version of android-maven-publish if you bump the Gradle version
# See: https://github.com/wupdigital/android-maven-publish
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
2 changes: 1 addition & 1 deletion ktx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

}

Expand Down
6 changes: 3 additions & 3 deletions parse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ android {
}

ext {
okhttpVersion = '3.11.0'
okhttpVersion = '3.12.1'
}

dependencies {
api "com.android.support:support-annotations:$supportLibVersion"
api "com.android.support:support-compat:$supportLibVersion"
api "androidx.annotation:annotation:1.0.1"
api "androidx.core:core:1.0.1"
api 'com.parse.bolts:bolts-tasks:1.4.0'
api "com.squareup.okhttp3:okhttp:$okhttpVersion"

Expand Down
2 changes: 1 addition & 1 deletion parse/src/main/java/com/parse/Parse.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import android.content.Context;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import android.util.Log;

import java.io.File;
Expand Down
2 changes: 1 addition & 1 deletion parse/src/main/java/com/parse/ParseHttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
package com.parse;

import android.support.annotation.Nullable;
import androidx.annotation.Nullable;

import com.parse.http.ParseHttpBody;
import com.parse.http.ParseHttpRequest;
Expand Down
2 changes: 1 addition & 1 deletion parse/src/main/java/com/parse/ParseJSONUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
package com.parse;

import android.support.annotation.NonNull;
import androidx.annotation.NonNull;

import org.json.JSONException;
import org.json.JSONObject;
Expand Down
4 changes: 2 additions & 2 deletions parse/src/main/java/com/parse/ParseObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import org.json.JSONArray;
import org.json.JSONException;
Expand Down
4 changes: 2 additions & 2 deletions parse/src/main/java/com/parse/ParsePushBroadcastReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.NotificationCompat;
import androidx.annotation.Nullable;
import androidx.core.app.NotificationCompat;

import org.json.JSONException;
import org.json.JSONObject;
Expand Down
2 changes: 1 addition & 1 deletion parse/src/main/java/com/parse/ParseQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
package com.parse;

import android.support.annotation.NonNull;
import androidx.annotation.NonNull;

import org.json.JSONException;
import org.json.JSONObject;
Expand Down
2 changes: 1 addition & 1 deletion parse/src/main/java/com/parse/ParseRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
package com.parse;

import android.support.annotation.NonNull;
import androidx.annotation.NonNull;

import com.parse.http.ParseHttpBody;
import com.parse.http.ParseHttpRequest;
Expand Down
2 changes: 1 addition & 1 deletion parse/src/main/java/com/parse/ParseRole.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
package com.parse;

import android.support.annotation.NonNull;
import androidx.annotation.NonNull;

import java.util.regex.Pattern;

Expand Down
2 changes: 1 addition & 1 deletion parse/src/main/java/com/parse/ParseUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import android.os.Bundle;
import android.os.Parcel;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;

import org.json.JSONObject;

Expand Down
2 changes: 1 addition & 1 deletion parse/src/main/java/com/parse/PushHistory.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
package com.parse;

import android.support.annotation.NonNull;
import androidx.annotation.NonNull;

import org.json.JSONException;
import org.json.JSONObject;
Expand Down
2 changes: 1 addition & 1 deletion parse/src/test/java/com/parse/OfflineQueryLogicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
package com.parse;

import android.support.annotation.NonNull;
import androidx.annotation.NonNull;

import org.json.JSONArray;
import org.json.JSONObject;
Expand Down
2 changes: 1 addition & 1 deletion parse/src/test/java/com/parse/ParseQueryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
package com.parse;

import android.support.annotation.NonNull;
import androidx.annotation.NonNull;

import org.junit.After;
import org.junit.Before;
Expand Down

0 comments on commit 29c45f4

Please sign in to comment.