Commit 5221f7d
committed
Android: keep the platform minor revision for the compile SDK
Google ships no plain android-37 platform, only android-37.0
and later. Gradle resolves a bare API level to the base
revision only, so dropping the minor picks the wrong platform,
or none at all when just android-37.1 is installed.
Write the selected platform verbatim, detect the latest one by
its real directory name, and reduce it to the API level only
for build.gradle files that convert it to an integer.
Pick-to: 6.12 6.11 6.8
Fixes: QTBUG-149770
Change-Id: Idf487ba2522928dd200ccb9c43b082d17abdb56f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>1 parent 3d40e7f commit 5221f7d
1 file changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
710 | 711 | | |
711 | 712 | | |
712 | 713 | | |
713 | | - | |
714 | | - | |
715 | | - | |
| 714 | + | |
716 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
717 | 719 | | |
718 | 720 | | |
719 | 721 | | |
| |||
913 | 915 | | |
914 | 916 | | |
915 | 917 | | |
| 918 | + | |
916 | 919 | | |
917 | | - | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
918 | 923 | | |
919 | 924 | | |
920 | 925 | | |
| |||
3116 | 3121 | | |
3117 | 3122 | | |
3118 | 3123 | | |
3119 | | - | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
| 3133 | + | |
3120 | 3134 | | |
3121 | 3135 | | |
3122 | 3136 | | |
| |||
0 commit comments