Skip to content

Commit ddf661c

Browse files
committed
update dependencies and cut to Android X
1 parent b40329a commit ddf661c

17 files changed

+48
-43
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
### v0.25.0
4+
- Update dependencies and Jetify
5+
36
### v0.24.9
47
- Smooth out drag-dismiss functionality: https://github.com/klinker24/Android-DragDismissActivity/releases/tag/v1.5.1
58

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To include it in your project, add this to your module's `build.gradle` file:
2525
```groovy
2626
dependencies {
2727
...
28-
compile 'com.klinkerapps:article_viewer:0.24.9'
28+
compile 'com.klinkerapps:article_viewer:0.25.0'
2929
}
3030
```
3131

gradle.properties

+8-6
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
GRADLE_PLUGIN_VERSION=3.1.2
16+
android.useAndroidX=true
17+
android.enableJetifier=true
1718

18-
ANDROID_SUPPORT_VERSION=27.1.1
19+
GRADLE_PLUGIN_VERSION=3.2.0-beta04
20+
ANDROID_X_VERSION=1.0.0-rc01
1921

2022
MIN_SDK=15
21-
TARGET_SDK=27
22-
COMPILE_SDK=27
23+
TARGET_SDK=28
24+
COMPILE_SDK=28
2325

24-
VERSION_NAME=0.24.10
26+
VERSION_NAME=0.25.0
2527
VERSION_CODE=1
2628
GROUP=com.klinkerapps
2729

@@ -38,4 +40,4 @@ POM_DEVELOPER_NAME=Jake Klinker
3840

3941
POM_NAME=Android Article Viewer
4042
POM_ARTIFACT_ID=article_viewer
41-
POM_PACKAGING=aar
43+
POM_PACKAGING=aar

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ distributionBase=GRADLE_USER_HOME
1919
distributionPath=wrapper/dists
2020
zipStoreBase=GRADLE_USER_HOME
2121
zipStorePath=wrapper/dists
22-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
22+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

library/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,21 @@ dependencies {
5252
annotationProcessor "com.github.bumptech.glide:compiler:4.7.1"
5353
implementation "com.github.bumptech.glide:glide:4.7.1"
5454

55-
implementation "com.android.support:appcompat-v7:${ANDROID_SUPPORT_VERSION}"
56-
implementation "com.android.support:design:${ANDROID_SUPPORT_VERSION}"
57-
implementation "com.android.support:recyclerview-v7:${ANDROID_SUPPORT_VERSION}"
58-
implementation "com.android.support:customtabs:${ANDROID_SUPPORT_VERSION}"
55+
implementation "androidx.appcompat:appcompat:$ANDROID_X_VERSION"
56+
implementation "com.google.android.material:material:$ANDROID_X_VERSION"
57+
implementation "androidx.recyclerview:recyclerview:$ANDROID_X_VERSION"
58+
implementation "androidx.browser:browser:$ANDROID_X_VERSION"
5959
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
6060
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
6161
implementation 'org.jsoup:jsoup:1.10.2'
6262
implementation 'com.fmsirvent:parallaxeverywhere:1.0.4'
63-
implementation 'com.klinkerapps:drag-dismiss-activity:1.5.1'
63+
implementation 'com.klinkerapps:drag-dismiss-activity:1.6.0'
6464
implementation 'com.klinkerapps:photo_view:1.3.1'
6565

6666
//noinspection GradleDependency
6767
testImplementation 'org.mockito:mockito-all:1.10.8'
6868
testImplementation 'junit:junit:4.12'
69-
testImplementation "org.robolectric:robolectric:3.6.1"
69+
testImplementation "org.robolectric:robolectric:3.8"
7070
testImplementation 'org.powermock:powermock-mockito-release-full:1.6.1'
7171
testImplementation 'org.powermock:powermock-module-junit4-rule:1.6.0'
7272
testImplementation 'org.powermock:powermock-api-mockito:1.6.1'

library/src/main/java/xyz/klinker/android/article/ArticleActivity.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
import android.net.Uri;
2323
import android.os.Build;
2424
import android.os.Handler;
25-
import android.support.customtabs.CustomTabsIntent;
26-
import android.support.v7.widget.LinearLayoutManager;
27-
import android.support.v7.widget.RecyclerView;
25+
import androidx.browser.customtabs.CustomTabsIntent;
26+
import androidx.recyclerview.widget.LinearLayoutManager;
27+
import androidx.recyclerview.widget.RecyclerView;
2828
import android.util.Log;
2929
import android.view.Menu;
3030
import android.view.MenuItem;

library/src/main/java/xyz/klinker/android/article/ArticleAdapter.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
import android.graphics.Color;
2626
import android.graphics.Point;
2727
import android.net.Uri;
28-
import android.support.annotation.Nullable;
29-
import android.support.annotation.VisibleForTesting;
30-
import android.support.v7.widget.RecyclerView;
28+
import androidx.annotation.Nullable;
29+
import androidx.annotation.VisibleForTesting;
30+
import androidx.recyclerview.widget.RecyclerView;
3131
import android.util.Log;
3232
import android.view.Display;
3333
import android.view.LayoutInflater;

library/src/main/java/xyz/klinker/android/article/ArticleIntent.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
import android.graphics.Color;
2626
import android.net.Uri;
2727
import android.os.Bundle;
28-
import android.support.annotation.AnimRes;
29-
import android.support.annotation.ColorInt;
30-
import android.support.annotation.NonNull;
31-
import android.support.annotation.Nullable;
32-
import android.support.customtabs.CustomTabsIntent;
33-
import android.support.v4.app.ActivityOptionsCompat;
34-
import android.support.v4.content.ContextCompat;
28+
import androidx.annotation.AnimRes;
29+
import androidx.annotation.ColorInt;
30+
import androidx.annotation.NonNull;
31+
import androidx.annotation.Nullable;
32+
import androidx.browser.customtabs.CustomTabsIntent;
33+
import androidx.core.app.ActivityOptionsCompat;
34+
import androidx.core.content.ContextCompat;
3535
import android.view.View;
3636
import android.widget.RemoteViews;
3737

library/src/main/java/xyz/klinker/android/article/ArticleScrollListener.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
import android.animation.AnimatorListenerAdapter;
2121
import android.animation.ArgbEvaluator;
2222
import android.animation.ValueAnimator;
23-
import android.support.v7.widget.LinearLayoutManager;
24-
import android.support.v7.widget.RecyclerView;
25-
import android.support.v7.widget.Toolbar;
23+
import androidx.recyclerview.widget.LinearLayoutManager;
24+
import androidx.recyclerview.widget.RecyclerView;
25+
import androidx.appcompat.widget.Toolbar;
2626
import android.view.View;
2727
import android.view.animation.AccelerateInterpolator;
2828
import android.view.animation.DecelerateInterpolator;

library/src/main/java/xyz/klinker/android/article/ArticleUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
import android.graphics.Point;
2222
import android.net.Uri;
2323
import android.os.Handler;
24-
import android.support.annotation.Nullable;
25-
import android.support.annotation.VisibleForTesting;
24+
import androidx.annotation.Nullable;
25+
import androidx.annotation.VisibleForTesting;
2626
import android.util.Log;
2727
import android.view.Display;
2828
import android.view.WindowManager;

library/src/main/java/xyz/klinker/android/article/ImageViewActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import android.graphics.Color;
2121
import android.os.Build;
2222
import android.os.Bundle;
23-
import android.support.v7.app.AppCompatActivity;
23+
import androidx.appcompat.app.AppCompatActivity;
2424
import android.view.LayoutInflater;
2525
import android.view.View;
2626
import android.view.ViewGroup;

library/src/main/java/xyz/klinker/android/article/Utils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
import android.graphics.PorterDuff;
2626
import android.graphics.drawable.Drawable;
2727
import android.os.Build;
28-
import android.support.v4.graphics.drawable.DrawableCompat;
29-
import android.support.v7.widget.RecyclerView;
28+
import androidx.core.graphics.drawable.DrawableCompat;
29+
import androidx.recyclerview.widget.RecyclerView;
3030
import android.widget.EdgeEffect;
3131
import android.widget.ProgressBar;
3232
import android.widget.TextView;

library/src/main/java/xyz/klinker/android/article/data/DataSource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import android.content.Context;
2121
import android.database.Cursor;
2222
import android.database.sqlite.SQLiteDatabase;
23-
import android.support.annotation.VisibleForTesting;
23+
import androidx.annotation.VisibleForTesting;
2424

2525
import java.util.ArrayList;
2626
import java.util.List;

library/src/test/java/xyz/klinker/android/article/ArticleRobolectricSuite.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
package xyz.klinker.android.article;
1818

1919
import android.app.Activity;
20-
import android.support.v4.app.Fragment;
21-
import android.support.v4.app.FragmentActivity;
22-
import android.support.v4.app.FragmentManager;
23-
import android.support.v4.app.FragmentTransaction;
20+
import androidx.fragment.app.Fragment;
21+
import androidx.fragment.app.FragmentActivity;
22+
import androidx.fragment.app.FragmentManager;
23+
import androidx.fragment.app.FragmentTransaction;
2424

2525
import org.junit.Before;
2626
import org.junit.runner.RunWith;

sample/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ android {
6161
}
6262

6363
dependencies {
64-
implementation "com.android.support:appcompat-v7:${ANDROID_SUPPORT_VERSION}"
64+
implementation "androidx.appcompat:appcompat:$ANDROID_X_VERSION"
6565
implementation project(":library")
6666
}

sample/src/main/java/xyz/klinker/article/FavoriteService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import android.app.Service;
2020
import android.content.Intent;
2121
import android.os.IBinder;
22-
import android.support.annotation.Nullable;
22+
import androidx.annotation.Nullable;
2323
import android.util.Log;
2424

2525
import xyz.klinker.android.article.data.Article;

sample/src/main/java/xyz/klinker/article/SampleActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import android.content.Intent;
2020
import android.net.Uri;
2121
import android.os.Bundle;
22-
import android.support.v7.app.AppCompatActivity;
22+
import androidx.appcompat.app.AppCompatActivity;
2323
import android.util.Patterns;
2424
import android.view.View;
2525
import android.widget.Button;

0 commit comments

Comments
 (0)