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

[#163][#191][#300] Upgrade JDK, SDK, Gradle & Kotlin for Sample #347

Merged
merged 8 commits into from
Nov 17, 2022

Conversation

doannimble
Copy link

@doannimble doannimble commented Nov 11, 2022

#163
#191
#300

What happened 👀

  • Java 1.8 is old, we should upgrade it to 11 in order to use latest Gradle or Kotlin version
  • Upgrade Compile and Target SDK version from 30 to 33
  • Update Gradle to version 7+

Insight 📝

For XML and Compose sample:

  • Upgrade JDK 11 for CI Pull Request Review and Run Detekt/Unit Test
  • Upgrade Gradle to 7.3.0
  • Upgrade min Android from 23 -> 24
  • Upgrade Java from 8 to 11

Proof Of Work 📹

N/A

@github-actions
Copy link

github-actions bot commented Nov 11, 2022

4 Warnings
⚠️ Please separate subject from body with newline.
d60d056
⚠️ Uh oh! ViewModelExt.kt is under 95% coverage!
⚠️ Uh oh! Your project is under 80% coverage!
⚠️ template/app/src/main/res/drawable-v24#L0 - This folder configuration (v24) is unnecessary; minSdkVersion is 24. Merge all the resources in this folder into drawable.

Kover report:

🧛 Template Unit Tests Code Coverage: 20.24%

Coverage of Modified Files:

File Coverage
ViewModelExt.kt 45.38%

Modified Files Not Found In Coverage Report:

AndroidManifest.xml
AndroidManifest.xml
RepositoryTest.kt
RepositoryTest.kt
ResponseMappingTest.kt
ResponseMappingTest.kt
UseCaseTest.kt
UseCaseTest.kt
Versions.kt
Versions.kt
build.gradle.kts
build.gradle.kts
build.gradle.kts
build.gradle.kts
build.gradle.kts
build.gradle.kts
build.gradle.kts
build.gradle.kts
deploy_staging_and_production_to_firebase_app_distribution.yml
gradle-wrapper.properties
gradle-wrapper.properties
gradle-wrapper.properties
gradle-wrapper.properties
review_pull_request.yml
run_detekt_and_unit_tests.yml

Codebase cunningly covered by count Shroud 🧛

Generated by 🚫 Danger

@toby-thanathip
Copy link
Contributor

@doannimble

Seems like not all the changes of #323 are in this pull request yet, shall we put this pull request as draft for now?

@toby-thanathip
Copy link
Contributor

@doannimble Conflicts, could we please rebase? 🚀

@toby-thanathip
Copy link
Contributor

@doannimble One more thing, could we please update the PR title, description & commit history according to the issues?

@doannimble doannimble changed the title [#191] Update Java version for sample package [#163][#191][#300] Upgrade JDK, SDK, Gradle & Kotlin for Sample Nov 15, 2022
@doannimble doannimble force-pushed the feature/191-upgrade-jdk-11-sample branch 2 times, most recently from 17a82d1 to 7ffbb35 Compare November 15, 2022 02:57
@doannimble doannimble force-pushed the feature/191-upgrade-jdk-11-sample branch from 7ffbb35 to d60d056 Compare November 15, 2022 02:59
@doannimble
Copy link
Author

@Tuubz I've done, please check 🙏

Copy link
Contributor

@toby-thanathip toby-thanathip left a comment

Choose a reason for hiding this comment

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

@doannimble Hmmm, I can't build the app for sample-compose & sample-xml

Could you please double-check? 🙏

Copy link
Contributor

@toby-thanathip toby-thanathip left a comment

Choose a reason for hiding this comment

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

@doannimble Could you please double-check the updates with your previous PR?

There are still some updates missing, so I still can't build the sample projects 😭

@doannimble
Copy link
Author

@Tuubz Sorry, my bad. I've add more ktx into the sample 🙏

@toby-thanathip
Copy link
Contributor

@doannimble sample-xml can be built successfully now, but sample-compose not yet 🙈

@doannimble
Copy link
Author

@Tuubz It's working now 🙏

gradle-wrapper.properties Show resolved Hide resolved
sample-xml/build.gradle.kts Show resolved Hide resolved
sample-xml/buildSrc/src/main/java/Versions.kt Outdated Show resolved Hide resolved
Copy link
Contributor

@toby-thanathip toby-thanathip left a comment

Choose a reason for hiding this comment

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

One last comment, rest LGTM 👍

@toby-thanathip toby-thanathip merged commit 37d79b4 into develop Nov 17, 2022
@toby-thanathip toby-thanathip deleted the feature/191-upgrade-jdk-11-sample branch November 17, 2022 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Compile and Target SDK version from 30 to 33 Update Kotlin Version Update Gradle to version 7+
5 participants