Skip to content

Commit

Permalink
Deps: Replace com android support with androidx annotation dependency
Browse files Browse the repository at this point in the history
This also fixes the below 'AndroidX' related warning with
'android.enableJetifier=true'. This behavior will not be allowed in
Android Gradle plugin 8.0.

------------------------------------------------------------------------

> Task :well-sample:compileDebugJavaWithJavac
...

> Configure project :wellsql
...
WARNING:Your project has set `android.useAndroidX=true`, but
configuration `:well-sample:debugRuntimeClasspath` still contains legacy
support libraries, which may cause runtime issues.
This behavior will not be allowed in Android Gradle plugin 8.0.
Please use only AndroidX dependencies or set
`android.enableJetifier=true` in the `gradle.properties` file to migrate
your project to AndroidX (see https://developer.android.com/jetpack/
androidx/migrate for more info).
The following legacy support libraries are detected:
:well-sample:debugRuntimeClasspath -> project :wellsql ->
com.android.support:support-annotations:28.0.0

> Task :wellsql:generateDebugRFile UP-TO-DATE
WARNING:Your project has set `android.useAndroidX=true`, but
configuration `:wellsql:debugRuntimeClasspath` still contains legacy
support libraries, which may cause runtime issues.
This behavior will not be allowed in Android Gradle plugin 8.0.
Please use only AndroidX dependencies or set
`android.enableJetifier=true` in the `gradle.properties` file to migrate
your project to AndroidX (see https://developer.android.com/jetpack/
androidx/migrate for more info).
The following legacy support libraries are detected:
:wellsql:debugRuntimeClasspath ->
com.android.support:support-annotations:28.0.0

> Task :well-sample-addon:generateDebugRFile UP-TO-DATE
WARNING:Your project has set `android.useAndroidX=true`, but
configuration `:well-sample-addon:debugRuntimeClasspath` still contains
legacy support libraries, which may cause runtime issues.
This behavior will not be allowed in Android Gradle plugin 8.0.
Please use only AndroidX dependencies or set
`android.enableJetifier=true` in the `gradle.properties` file to migrate
your project to AndroidX (see https://developer.android.com/jetpack/
androidx/migrate for more info).
The following legacy support libraries are detected:
:well-sample-addon:debugRuntimeClasspath -> project :wellsql ->
com.android.support:support-annotations:28.0.0

------------------------------------------------------------------------
  • Loading branch information
ParaskP7 committed Jul 4, 2023
1 parent 8171890 commit 1a58f9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wellsql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {

dependencies {
api wellSqlAnnotationsProjectDependency
implementation 'androidx.annotation:annotation:1.6.0'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:support-annotations:28.0.0'
}

project.afterEvaluate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.IntDef;
import android.text.TextUtils;

import com.yarolegovich.wellsql.core.Identifiable;
Expand All @@ -29,6 +28,8 @@
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

import androidx.annotation.IntDef;

/**
* Created by yarolegovich on 19.11.2015.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import android.database.Cursor;
import android.database.CursorWrapper;
import android.database.sqlite.SQLiteDatabase;
import android.support.annotation.Nullable;

import com.yarolegovich.wellsql.mapper.SelectMapper;

import androidx.annotation.Nullable;

/**
* Created by yarolegovich on 01.12.2015.
*/
Expand Down

0 comments on commit 1a58f9f

Please sign in to comment.