Skip to content

Commit 0f935ce

Browse files
authored
Merge pull request #31 from deadman96385/master
Upgrade to AndroidX
2 parents 01fe1d4 + 5f55f78 commit 0f935ce

File tree

13 files changed

+26
-25
lines changed

13 files changed

+26
-25
lines changed

build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ buildscript {
88
]
99

1010
ext.deps = [
11-
appCompat : "com.android.support:appcompat-v7:25.0.0",
12-
recyclerView : "com.android.support:recyclerview-v7:25.0.0",
13-
expandablerecyclerview: "com.github.thoughtbot.expandable-recycler-view:expandablerecyclerview:v1.3",
11+
appCompat : 'androidx.appcompat:appcompat:1.0.0',
12+
recyclerView : 'androidx.recyclerview:recyclerview:1.0.0',
13+
expandablerecyclerview: 'com.github.AliAsadi.expandable-recycler-view:expandablerecyclerview:1.8',
1414
gson : "com.google.code.gson:gson:2.8.5",
1515
junit : 'androidx.test.ext:junit:1.1.1',
1616
mockito : 'org.mockito:mockito-core:2.23.0',
@@ -20,10 +20,11 @@ buildscript {
2020
repositories {
2121
google()
2222
mavenCentral()
23+
maven { url 'https://jitpack.io' }
2324
}
2425

2526
dependencies {
26-
classpath 'com.android.tools.build:gradle:3.4.2'
27+
classpath 'com.android.tools.build:gradle:7.3.1'
2728
}
2829
}
2930

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# http://www.gradle.org/docs/current/userguide/build_environment.html
77
# Specifies the JVM arguments used for the daemon process.
88
# The setting is particularly useful for tweaking memory settings.
9+
android.useAndroidX=true
910
org.gradle.jvmargs=-Xmx1536m
1011
# When configured, Gradle will run in incubating parallel mode.
1112
# This option should only be used with decoupled projects. More details, visit
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Aug 23 16:50:55 IDT 2019
1+
#Tue Jan 03 22:01:23 CST 2023
22
distributionBase=GRADLE_USER_HOME
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
34
distributionPath=wrapper/dists
4-
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
6+
zipStoreBase=GRADLE_USER_HOME

power-preference/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ android {
1414
minifyEnabled false
1515
}
1616
}
17+
namespace 'com.preference'
1718

1819
}
1920

power-preference/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.preference" >
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<application>
43
<provider
54
android:authorities="${applicationId}.content.provider"

power-preference/src/main/java/com/preference/Preference.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.preference;
22

3-
import android.support.annotation.XmlRes;
3+
import androidx.annotation.XmlRes;
44

55
import java.util.AbstractMap;
66
import java.util.Map;

power-preference/src/main/java/com/preference/PreferenceCreator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import android.content.SharedPreferences;
55
import android.content.res.XmlResourceParser;
66
import android.preference.PreferenceManager;
7-
import android.support.annotation.NonNull;
8-
import android.support.annotation.Nullable;
9-
import android.support.annotation.XmlRes;
7+
import androidx.annotation.NonNull;
8+
import androidx.annotation.Nullable;
9+
import androidx.annotation.XmlRes;
1010
import android.util.Log;
1111

1212
import com.google.gson.Gson;

power-preference/src/main/java/com/preference/provider/PreferenceProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import android.content.pm.ProviderInfo;
88
import android.database.Cursor;
99
import android.net.Uri;
10-
import android.support.annotation.NonNull;
11-
import android.support.annotation.Nullable;
10+
import androidx.annotation.NonNull;
11+
import androidx.annotation.Nullable;
1212

1313
/**
1414
* Created by Ali Asadi on 20/11/2018.

power-preference/src/main/java/com/preference/ui/debug/DebugActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import android.content.Context;
44
import android.content.Intent;
55
import android.os.Bundle;
6-
import android.support.v7.app.AppCompatActivity;
7-
import android.support.v7.widget.DividerItemDecoration;
8-
import android.support.v7.widget.RecyclerView;
6+
import androidx.appcompat.app.AppCompatActivity;
7+
import androidx.recyclerview.widget.DividerItemDecoration;
8+
import androidx.recyclerview.widget.RecyclerView;
99
import android.view.Menu;
1010
import android.view.MenuItem;
1111
import android.widget.Toast;

power-preference/src/main/java/com/preference/ui/util/DialogUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import android.content.Context;
44
import android.content.DialogInterface;
5-
import android.support.v7.app.AlertDialog;
5+
import androidx.appcompat.app.AlertDialog;
66
import android.view.LayoutInflater;
77
import android.view.View;
88
import android.widget.EditText;

0 commit comments

Comments
 (0)