ssttkkl / mahjong-utils-app

Riichi Mahjong Calculator App (for Android, iOS, Desktop, Web, based on Compose Multiplatform)
https://mahjong-utils-app.vercel.app
MIT License
82 stars 7 forks source link

F-Droid build failed #40

Closed linsui closed 1 month ago

linsui commented 1 month ago

https://gitlab.com/linsui/fdroiddata/-/jobs/7827563491

Capturable uses some maven repo not allowed in F-Droid build. I removed them and the build failed. It seems those repos are only used for the wasm target. Is that used for Android?

ssttkkl commented 1 month ago

Just let me check. Thanks for notifying me.

linsui commented 1 month ago
* What went wrong:
Could not determine the dependencies of task ':mahjong-utils-lib:mahjong-utils:compileKotlinJvm'.
> Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=11, vendor=any, implementation=vendor-specific} for LINUX on x86_64.
   > No locally installed toolchains match and toolchain download repositories have not been configured.

Is jdk 11 required?

Download https://download.jetbrains.com/kotlin/native/builds/releases/1.9.22/linux-x86_64/kotlin-native-prebuilt-linux-x86_64-1.9.22.tar.gz (198.18 MB)

Is this used for Android or wasm only?

ssttkkl commented 1 month ago

Is jdk 11 required?

Seems that it use jdk11 but it's not necessary, I'll try to remove this constraint.

Is this used for Android or wasm only?

It's used for wasm only. I think it can be disabled by enviroments, it is possible to set enviroment in F-Droid build?

linsui commented 1 month ago

it is possible to set enviroment in F-Droid build?

Yes, but it would be easier to set the prop. :)

ssttkkl commented 1 month ago

Yes, but it would be easier to set the prop. :)

Setting the prop maybe hard to approach because there's actually three gradle projects in their own repos, the prop will not be shared.

Anyway let me try to use environmnents and fix the build in fdroiddata

linsui commented 1 month ago

Which environment should I set?

ssttkkl commented 1 month ago

It seems that if I disable the wasm build, apk signature will also be effected:

I didn't see this download message again since I upgrade Kotlin 2.0.20, I think we don't need to set the environments or props.

linsui commented 1 month ago

The kotlin-tooling-metadata.json file is affected by the wasm. You also need to disable it when you build your android apk so we can get the same apk. :)

ssttkkl commented 1 month ago

solved, check this MR please https://gitlab.com/fdroid/fdroiddata/-/merge_requests/15798

linsui commented 1 month ago

Thanks!