Kaljurand / K6nele

An Android app that offers speech-to-text user interfaces to other apps
http://kaljurand.github.io/K6nele/
Apache License 2.0
267 stars 83 forks source link

F-Droid can't build #116

Closed licaon-kter closed 3 months ago

licaon-kter commented 3 months ago

I've updated to Java17 but: https://gitlab.com/fdroid/fdroiddata/-/jobs/6342586293#L391

/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/5909cb0bdb3a5211f4f31d16e3e0a7385d1116df

Kaljurand commented 3 months ago

Hopefully fixed by just removing the dependency on BuildConfig.

licaon-kter commented 3 months ago

Now it's a different error: ee.ioc.phon.android.speak_1916.log.gz

/LE: see below

Kaljurand commented 3 months ago

The ee.ioc.phon.android.speak_1916.log.gz URL does not resolve for me.

licaon-kter commented 3 months ago

Odd, will reattach asap

licaon-kter commented 3 months ago

ee.ioc.phon.android.speak_1916.log.gz

this works now, does for you too?

Kaljurand commented 3 months ago

Thanks! I could download the error log now. Some of these errors seem familiar to me as lint warnings. It would take a while to work-around all of them, though...

One thing to try in the F-Droid build is to use my exact gradle.properties (https://github.com/Kaljurand/K6nele/blob/v1.9.16/gradle.properties):

android.defaults.buildfeatures.buildconfig=true
android.enableJetifier=false
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
org.gradle.jvmargs=-Xmx2560m
org.gradle.unsafe.configuration-cache=true

or some subset of it, e.g.

android.nonFinalResIds=false
android.nonTransitiveRClass=false

seem related (https://stackoverflow.com/questions/76334499/error-constant-expression-required-android-studio).

licaon-kter commented 3 months ago

One thing to try in the F-Droid build is to use my exact gradle.properties

if they are in the tagged tree, they'll be used as expected

Kaljurand commented 3 months ago

Maybe I'm misunderstanding how the F-Droid build works, but this line there:

prebuild: echo "android.useAndroidX=true" > ../gradle.properties

seems to overwrite the existing gradle.properties with a single property assignment.

licaon-kter commented 3 months ago

Indeed, that was used in past recipes, but now it was at fault

thanks https://gitlab.com/fdroid/fdroiddata/-/commit/02ea288aae152ec78e1e341b3c5993a761f435c4