Skip to content

fix(android): Integer conversion of compileSdk/minSdk/targetSdk#5195

Closed
saschpe wants to merge 1 commit intoionic-team:mainfrom
saschpe:android-version-custom
Closed

fix(android): Integer conversion of compileSdk/minSdk/targetSdk#5195
saschpe wants to merge 1 commit intoionic-team:mainfrom
saschpe:android-version-custom

Conversation

@saschpe
Copy link
Copy Markdown
Contributor

@saschpe saschpe commented Nov 2, 2021

Gradle properties are always parsed as strings from gradle.properties. While Gradle Groovy can utilize the ext Gradle plugin directly, Gradle Kotlin DSL projects have to specify properties in gradle.properties. Convert those to integers as required by Android Gradle Plugin (AGP). This won't affect projects that still use Gradle Groovy.

Resolves #5194

@saschpe saschpe force-pushed the android-version-custom branch 4 times, most recently from a2a4995 to c64101e Compare November 9, 2021 09:16
@saschpe saschpe force-pushed the android-version-custom branch 2 times, most recently from 6f65770 to 59c629c Compare November 19, 2021 09:47
@saschpe saschpe force-pushed the android-version-custom branch from 59c629c to 7eaf0f6 Compare December 7, 2021 08:08
@saschpe saschpe force-pushed the android-version-custom branch from 7eaf0f6 to 529761c Compare December 14, 2021 11:22
@saschpe saschpe force-pushed the android-version-custom branch from 529761c to 01611b8 Compare January 6, 2022 13:02
@saschpe saschpe force-pushed the android-version-custom branch from 01611b8 to 4d4b478 Compare June 20, 2022 07:56
@saschpe
Copy link
Copy Markdown
Contributor Author

saschpe commented Jun 20, 2022

I would be nice if someone could provide some feedback for this fix. Thanks.

@saschpe saschpe force-pushed the android-version-custom branch from 4d4b478 to 4dcf3b6 Compare March 13, 2023 12:57
@saschpe saschpe force-pushed the android-version-custom branch from 4dcf3b6 to 2ad7dac Compare March 24, 2023 08:28
@saschpe
Copy link
Copy Markdown
Contributor Author

saschpe commented Mar 24, 2023

I would appreciate if this could be looked at. At the moment it is not possible to put this into one's gradle.properties, simply because those are interpreted as strings:

compileSdkVersion=33
minSdkVersion=23
targetSdkVersion=33

The same change for capacitor-plugins

@saschpe saschpe force-pushed the android-version-custom branch from 2ad7dac to f55c93e Compare March 28, 2023 07:05
@saschpe saschpe force-pushed the android-version-custom branch from f55c93e to 35a1b96 Compare April 5, 2023 10:48
Gradle properties are always parsed as strings from `gradle.properties`.
While Gradle Groovy can utilize the `ext` Gradle plugin directly, Gradle
Kotlin DSL projects have to specify properties in `gradle.properties`.
Convert those to integers as required by Android Gradle Plugin (AGP).
This won't affect projects that still use Gradle Groovy.

Resolves ionic-team#5194
@saschpe saschpe force-pushed the android-version-custom branch from 35a1b96 to 6e2dec2 Compare June 2, 2023 11:38
@saschpe
Copy link
Copy Markdown
Contributor Author

saschpe commented Sep 12, 2024

Final ping, I think this is still relevant. Worth rebasing once more?

@saschpe saschpe closed this Sep 12, 2024
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.

bug: Unable to customize compileSdkVersion with Gradle Kotlin DSL

1 participant