Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to AndroidX. #54

Merged
merged 5 commits into from
Jan 9, 2019
Merged

Upgrade to AndroidX. #54

merged 5 commits into from
Jan 9, 2019

Conversation

vanniktech
Copy link
Contributor

No description provided.

@@ -2,7 +2,6 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion COMPILE_SDK_VERSION
buildToolsVersion BUILD_TOOLS_VERSION
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Android Gradle Plugin handles this by default now

@@ -24,6 +23,5 @@ android {

dependencies {
implementation project(':rxbluetooth')
implementation "com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION"
implementation "com.android.support:design:$SUPPORT_LIBRARY_VERSION"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need


# Minimum SDK version (lowest SDK platform to target)
MIN_SDK_VERSION=11
MIN_SDK_VERSION=14
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required by AndroidX

Copy link
Owner

@IvBaranov IvBaranov Jan 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think min SDK version 11 deserves its own branch or it will be ok to leave it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah. AndroidX requires 14. And everyone else does too.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still feel bad about moving up min SDK version of library. If that should be a major version change so 2.x.x branch to be left for 11+ and 3.x.x for 14+ and androidx?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No one is using minSdk < 14 and if so they can use the old version since they won't be using AndroidX anyways.

BINTRAY_RELEASE=0.8.1

# Maven
USER_ORG=ivbaranov
GROUP=com.github.ivbaranov
ARTIFACT_ID=rxbluetooth2

android.useAndroidX=true
android.enableJetifier=false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're AndroidX only. ❤️

@vanniktech
Copy link
Contributor Author

A new version. Probably 2.1.0 would be highly appreciated. Thanks!

@@ -17,7 +16,7 @@ android {
}

dependencies {
implementation "com.android.support:support-annotations:$SUPPORT_LIBRARY_VERSION"
implementation 'androidx.annotation:annotation:1.0.1'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I would love androidx version to be in gradle.properties like the rest verisions to be consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With AndroidX each of those will have different versions. They are no longer pushed with the same version at the same time.

If you still want me to move them, let me know and I'll!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I mean all version names and numbers are in gradle.properties. Let it be ANDROIDX_ANNOTATION for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did that @IvBaranov

@IvBaranov IvBaranov merged commit d04ae0f into IvBaranov:rxjava-2.x Jan 9, 2019
@vanniktech vanniktech deleted the androidx branch January 9, 2019 16:36
@IvBaranov
Copy link
Owner

2.1.0 version is up. Thanks for patience.

@vanniktech
Copy link
Contributor Author

I've seen the release tag. Thanks for pushing it out! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants