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

Use android version from root project. Update kotlin to 1.4.0 #216

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

TikiTDO
Copy link
Contributor

@TikiTDO TikiTDO commented Sep 5, 2020

Summary

This PR addresses 2 issues:

  1. Android build was not respecting the SDK config of the root project, causing really weird build errors if the version I had configured was not 29. This PR adds code to use the target/compile version from the project using the lib.

  2. The version of Kotlin that was configured did not work with my environment. This PR bumps the version to 1.4.0, and fixes a compile time error in android.

Test Plan

Majority of changes are to the build environment. Only code change is to fix a build-time "smart cast is impossible" error.

To test build an app that uses this library. Perform an upload.

Compatibility

OS Implemented
iOS Not Affected
Android

Checklist

  • I have tested this on a device and a simulator

@TikiTDO TikiTDO changed the title Use root project SDK. Update kotlin to 1.4.0 Use android version from root project. Update kotlin to 1.4.0 Sep 6, 2020
@reime005
Copy link
Collaborator

reime005 commented Sep 8, 2020

@TikiTDO very cool! we missed that before, thanks

@reime005 reime005 merged commit b8eaa84 into Vydia:master Sep 8, 2020
github-actions bot pushed a commit that referenced this pull request Sep 8, 2020
# [6.2.0](v6.1.0...v6.2.0) (2020-09-08)

### Features

* [Android] Use root project SDK. Update kotlin to 1.4.0 ([#216](#216)) ([b8eaa84](b8eaa84))
@github-actions
Copy link

github-actions bot commented Sep 8, 2020

🎉 This PR is included in version 6.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

benjamin777dev added a commit to benjamin777dev/react-native-upload that referenced this pull request Jun 10, 2024
# [6.2.0](Vydia/react-native-background-upload@v6.1.0...v6.2.0) (2020-09-08)

### Features

* [Android] Use root project SDK. Update kotlin to 1.4.0 ([#216](Vydia/react-native-background-upload#216)) ([b8eaa84](Vydia/react-native-background-upload@b8eaa84))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants