Skip to content

Commit f78a581

Browse files
committed
Upgrade library to androidX
1 parent b9890b7 commit f78a581

15 files changed

Lines changed: 42 additions & 45 deletions

File tree

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/sonarlint/issuestore/index.pb

Whitespace-only changes.

.idea/sonarlint/securityhotspotstore/index.pb

Whitespace-only changes.

app/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 26
4+
compileSdk 33
55
defaultConfig {
66
applicationId "com.devs.vectorchildfinderdemo"
77
minSdkVersion 16
8-
targetSdkVersion 26
8+
targetSdkVersion 33
99
versionCode 1
1010
versionName "1.0"
11-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
11+
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1212
vectorDrawables.useSupportLibrary = true
1313
}
1414
buildTypes {
@@ -21,13 +21,13 @@ android {
2121

2222
dependencies {
2323
implementation fileTree(dir: 'libs', include: ['*.jar'])
24-
implementation 'com.android.support:appcompat-v7:26.1.0'
25-
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
24+
implementation 'androidx.appcompat:appcompat:1.0.0'
25+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
2626
testImplementation 'junit:junit:4.12'
27-
androidTestImplementation 'com.android.support.test:runner:1.0.1'
28-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
27+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
28+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
2929

30-
compile project(':vectorchildfinder')
30+
implementation project(':vectorchildfinder')
3131
//compile 'com.github.devsideal:VectorChildFinder:1.0.0'
3232

3333
}

app/src/androidTest/java/com/devs/vectorchildfinderdemo/ExampleInstrumentedTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.devs.vectorchildfinderdemo;
22

33
import android.content.Context;
4-
import android.support.test.InstrumentationRegistry;
5-
import android.support.test.runner.AndroidJUnit4;
4+
import androidx.test.platform.app.InstrumentationRegistry;
5+
import androidx.test.ext.junit.runners.AndroidJUnit4;
66

77
import org.junit.Test;
88
import org.junit.runner.RunWith;

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
android:roundIcon="@mipmap/ic_launcher_round"
1010
android:supportsRtl="true"
1111
android:theme="@style/AppTheme">
12-
<activity android:name=".MainActivity">
12+
<activity
13+
android:exported="true"
14+
android:name=".MainActivity">
1315
<intent-filter>
1416
<action android:name="android.intent.action.MAIN" />
1517

app/src/main/java/com/devs/vectorchildfinderdemo/MainActivity.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
package com.devs.vectorchildfinderdemo;
22

3-
import android.graphics.Color;
4-
import android.support.v7.app.AppCompatActivity;
3+
import androidx.appcompat.app.AppCompatActivity;
54
import android.os.Bundle;
65
import android.view.View;
76
import android.widget.ImageView;
8-
import android.widget.Toast;
97

108
import com.devs.vectorchildfinder.VectorChildFinder;
119
import com.devs.vectorchildfinder.VectorDrawableCompat;
1210
//import android.support.graphics.drawable.VectorDrawableCompat;
1311

14-
import java.util.ArrayList;
15-
import java.util.Arrays;
16-
import java.util.Collections;
17-
import java.util.Comparator;
18-
import java.util.List;
1912

2013
public class MainActivity extends AppCompatActivity {
2114

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
xmlns:tools="http://schemas.android.com/tools"
55
android:id="@+id/relativeLayout"
@@ -125,4 +125,4 @@
125125
app:layout_constraintStart_toStartOf="parent" />
126126

127127

128-
</android.support.constraint.ConstraintLayout>
128+
</androidx.constraintlayout.widget.ConstraintLayout>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.0.0'
10+
classpath 'com.android.tools.build:gradle:7.4.2'
1111
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
1212

1313
// NOTE: Do not place your application dependencies here; they belong

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
12+
android.enableJetifier=true
13+
android.useAndroidX=true
1214
org.gradle.jvmargs=-Xmx1536m
15+
android.disableAutomaticComponentCreation=true
1316

1417
# When configured, Gradle will run in incubating parallel mode.
1518
# This option should only be used with decoupled projects. More details, visit

0 commit comments

Comments
 (0)