cianru / huawei-appgallery-publish-gradle-plugin

Huawei AppGallery Publish Gradle Plugin allows you to publish the android release build file (*.apk or *.aab) to the Huawei AppGallery store
Apache License 2.0
111 stars 20 forks source link

Java 8 incompatibility #39

Closed SherzodAgzamov closed 2 years ago

SherzodAgzamov commented 2 years ago

is there any way to downgrade the java version or solve the compatibility problem? My project uses java 8 and there is no way to increase the version

Gradle version: 7.4.2 AGP version: 7.0.4 Kotlin version: 1.5.20

cosic commented 2 years ago

@SherzodAgzamov Hi! Unfortunately since v7.0+ of AGP is required to use JAVA11 https://developer.android.com/studio/releases/gradle-plugin#jdk-11

SherzodAgzamov commented 2 years ago

@cosic In version 1.2.5, the application is uploaded to the app gallery but not submitted, and this fix is in version 1.3.3. I thought to upgrade version, but no luck. By the way, thanks for the reply

cosic commented 2 years ago

@SherzodAgzamov Yes v1.2.5 is last version that support AGP4.* and less, hence JAVA8 too. I saved snapshot-1.2.5 branch to fix bugs if they appears. Unforcutately there isn't way to support APG4 and AGP7 dependencies and restriction at the same time.

SherzodAgzamov commented 2 years ago

@cosic Is it possible to merge the fix #38 from v1.3.3 to snapshot-1.2.5?

cosic commented 2 years ago

@SherzodAgzamov Yeap. Guess I can cherry-pick and release v1.2.6

SherzodAgzamov commented 2 years ago

oh, that would be great!

cosic commented 2 years ago

@SherzodAgzamov Please check fix of #38 on 1.2.6-SNAPSHOT version.

SherzodAgzamov commented 2 years ago

@cosic oh well, snapshot works great! thanks a lot!

cosic commented 2 years ago

Released at v1.2.6