Closed licaon-kter closed 3 months ago
Please reopen, now there's gms classes :( ref: https://gitlab.com/fdroid/fdroiddata/-/jobs/5392493797#L583
I tried cleaning some more
- sed -i -e '/com.google.gms/d' -e '/com.google.firebase/d' -e '/libs.google/d'
-e '/libs.firebase/d' build.gradle.kts
- sed -i -e '/libs.google.services/d' -e '/libs.firebase/d' ../build.gradle.kts
- sed -i -e '/firebase/d' -e '/google-services/d' ../gradle/libs.versions.toml
but still
...
2023-10-27 15:39:52,542 DEBUG: Problem: found class 'com/google/android/gms/common/GooglePlayServicesIncorrectManifestValueException'
2023-10-27 15:39:52,544 DEBUG: Problem: found class 'com/google/android/gms/common/GooglePlayServicesMissingManifestValueException'
2023-10-27 15:39:52,545 DEBUG: Problem: found class 'com/google/android/gms/common/api/Status'
2023-10-27 15:39:52,545 DEBUG: Problem: found class 'com/google/android/gms/common/util/DynamiteApi'
2023-10-27 15:39:52,545 DEBUG: Problem: found class 'com/google/android/gms/common/GooglePlayServicesManifestException'
2023-10-27 15:39:52,546 DEBUG: Problem: found class 'com/google/android/gms/common/api/internal/LifecycleCallback'
2023-10-27 15:39:52,546 DEBUG: Problem: found class 'com/google/android/gms/common/api/Scope'
2023-10-27 15:39:52,547 DEBUG: Problem: found class 'com/google/android/gms/common/annotation/KeepName'
2023-10-27 15:39:52,548 DEBUG: Problem: found class 'com/google/android/gms/common/api/GoogleApiActivity'
2023-10-27 15:39:52,549 DEBUG: Problem: found class 'com/google/android/gms/dynamite/DynamiteModule'
2023-10-27 15:39:52,549 DEBUG: Problem: found class 'com/google/android/gms/common/internal/ReflectedParcelable'
2023-10-27 15:39:52,554 DEBUG: Problem: found class 'com/google/android/gms/auth/api/signin/GoogleSignInAccount'
2023-10-27 15:39:52,557 CRITICAL: Found 12 problems in build/com.zaneschepke.wireguardautotunnel/app/build/outputs/apk/fdroid/release/app-fdroid-release-unsigned.apk
/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/6a1495f8c8100e641a82366bc0256dad1bcad216
Thank you. I will look into this
Which lib are you rebuilding exactly ? https://github.com/zaneschepke/wgtunnel/commit/2690ce29e12ae50ece65aef32d43bb869c5872a2 how?
We need to rebuild the same for F-Droid: https://gitlab.com/fdroid/fdroiddata/-/jobs/6202532336#L1008
/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/a9fd00deb938436063bb9eaf1e317a2cc439c87a
Which lib are you rebuilding exactly ? 2690ce2 how?
We need to rebuild the same for F-Droid: https://gitlab.com/fdroid/fdroiddata/-/jobs/6202532336#L1008
/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/a9fd00deb938436063bb9eaf1e317a2cc439c87a
I'm still in the process of getting the lib into Maven Central. The lib was failing to publish to jitpack because they do not support recursive cloning. This lib is currently being pulled into the app from here using GitHub Packages, but GitHub Packages ridiculously requires auth to get packages. Anyone can use the package, it just requires they create a readpackages role personal access token to read the package.
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/zaneschepke/wireguard-android")
credentials {
username = getLocalProperty(GITHUB_USER_VAR) ?: System.getenv(GITHUB_USER_VAR)
password = getLocalProperty(GITHUB_TOKEN_VAR) ?: System.getenv(GITHUB_TOKEN_VAR)
}
}
ping us when it's live in Maven
ok, so looking at https://github.com/zaneschepke/wgtunnel/blob/3.3.8/gradle/libs.versions.toml#L85 I should find a tag 1.1.0 at https://github.com/zaneschepke/wireguard-android/tags ?
I'd like to build your fork https://github.com/zaneschepke/wgtunnel/blob/3.3.8/README.md#building but I need a point of reference
how do we skip all the publishing part of your fork?
- versionName: 3.3.8
versionCode: 33800
commit: ee8db0a859778308ca584486a6d551a341b5b365
subdir: app
sudo:
- apt-get update
- apt-get install -y gcc g++ maven
- apt-get install -y openjdk-17-jdk-headless
- update-alternatives --auto java
gradle:
- fdroid
srclibs:
- wireguard-android-zaneschepke@161b73a35e3a92d9e58eb807b4e633d5c43f0825
prebuild:
- sed -i -e '/com.google.gms/d' -e '/com.google.firebase/d' -e '/libs.androidx.core.google.shortcuts/d'
build.gradle.kts
- sed -i -e '/libs.google.services/d' -e '/libs.firebase/d' ../build.gradle.kts
- sed -i -e '/maven {/,/^ }/d' ../settings.gradle.kts $$wireguard-android-zaneschepke$$/tunnel/build.gradle.kts
build:
- cd $$wireguard-android-zaneschepke$$
- gradle publishToMavenLocal
fails with
...
> Task :tunnel:javaDocReleaseJar
> Task :tunnel:generateMetadataFileForReleasePublication
Could not write standard input to command 'gpg'.
java.io.IOException: Broken pipe
at java.base/java.io.FileOutputStream.writeBytes(Native Method)
at java.base/java.io.FileOutputStream.write(FileOutputStream.java:349)
at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:142)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.writeBuffer(ExecOutputHandleRunner.java:98)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:85)
at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:64)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
> Task :tunnel:signReleasePublication FAILED
gpg: directory '/home/vagrant/.gnupg' created
gpg: keybox '/home/vagrant/.gnupg/pubring.kbx' created
gpg: no default secret key: No secret key
gpg: signing failed: No secret key
FAILURE: Build failed with an exception.
I think instead of building the forked lib it would be easier to just add these env vars to the pipeline
GH_USER: ${{ secrets.GH_USER }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
The lib is already built and published to github packages, it is just stupid github requires read packages personal access token to get the package. Any valid github user can get the package with a valid read packages personal access token.
I should have the lib on maven central soon which will solve this issue.
F-Droid needs to build, since it's not (yet) in one on the trusted repos: https://gitlab.com/fdroid/fdroidserver/-/blob/master/fdroidserver/scanner.py#L457-L475
anyway, I'll stop trying and wait for your maven publish then, sorry for the noise
Package is available on Maven Central now. This should fix the build issue. Thank you for reaching out!
Can we reopen?
...
> Task :app:checkFdroidReleaseAarMetadata FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkFdroidReleaseAarMetadata'.
> Could not resolve all files for configuration ':app:fdroidReleaseRuntimeClasspath'.
> Could not find com.zaneschepke:pin_lock_compose:1.0.3.
Searched in the following locations:
- file:/home/vagrant/.m2/repository/com/zaneschepke/pin_lock_compose/1.0.3/pin_lock_compose-1.0.3.pom
- https://dl.google.com/dl/android/maven2/com/zaneschepke/pin_lock_compose/1.0.3/pin_lock_compose-1.0.3.pom
- https://repo.maven.apache.org/maven2/com/zaneschepke/pin_lock_compose/1.0.3/pin_lock_compose-1.0.3.pom
Required by:
project :app
ref: https://mvnrepository.com/artifact/com.zaneschepke does not have it
/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/419b5cb18abaf7cdba9c05260f401cb0e1004552
The lib has been added to maven central. The app should be able to build now.
ref: https://gitlab.com/fdroid/fdroiddata/-/jobs/5362089442#L1173
/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/8bc2d4275aedf2e613f4faafab182d3f0a3dea94