iilab / openmentoring-mobile

GNU Lesser General Public License v3.0
5 stars 6 forks source link

Fdroid auto update fails #54

Open jmatsushita opened 8 years ago

jmatsushita commented 8 years ago
Build:0.0.4,48
    disable=maybe wrong support lib version?
    commit=0.0.4
    subdir=platforms/android
    gradle=yes

Maintainer Notes:
Cannot use UCM/AUM since versionCode is dynamic in build.gradle

https://gitlab.com/fdroid/fdroiddata/blob/master/metadata/org.iilab.openmentoring.txt#L47-55

The settings were (before they got turned off by the fdroid maintainers):

Auto Update Mode: Version
Update Check Mode: Tags

I faintly remember that gradle=yes didn't work, and I'm not sure where the build number 48 comes from.

Will workaround by manually editing for now.

jmatsushita commented 8 years ago

Building with these instructions and removing gradle=yes I get this compilation error regarding the de.applant.cordova.plugin.notification plugin:

-compile:
    [javac] Compiling 42 source files to /Users/jun/dev/uganda/fdroiddata/build/org.iilab.openmentoring/platforms/android/bin/classes
    [javac] /Users/jun/dev/uganda/fdroiddata/build/org.iilab.openmentoring/platforms/android/src/de/appplant/cordova/plugin/notification/Notification.java:34: error: package android.support.v4.app does not exist
    [javac] import android.support.v4.app.NotificationCompat;
    [javac]                              ^
    [javac] /Users/jun/dev/uganda/fdroiddata/build/org.iilab.openmentoring/platforms/android/src/de/appplant/cordova/plugin/notification/Notification.java:65: error: package NotificationCompat does not exist
    [javac]     private final NotificationCompat.Builder builder;
    [javac]                                     ^
    [javac] /Users/jun/dev/uganda/fdroiddata/build/org.iilab.openmentoring/platforms/android/src/de/appplant/cordova/plugin/notification/Notification.java:81: error: package NotificationCompat does not exist
    [javac]                     NotificationCompat.Builder builder, Class<?> receiver) {
    [javac]                                       ^
    [javac] /Users/jun/dev/uganda/fdroiddata/build/org.iilab.openmentoring/platforms/android/src/de/appplant/cordova/plugin/notification/Builder.java:30: error: package android.support.v4.app does not exist
    [javac] import android.support.v4.app.NotificationCompat;
    [javac]                              ^
    [javac] /Users/jun/dev/uganda/fdroiddata/build/org.iilab.openmentoring/platforms/android/src/de/appplant/cordova/plugin/notification/Builder.java:156: error: package NotificationCompat does not exist
    [javac]     private void applyDeleteReceiver(NotificationCompat.Builder builder) {
    [javac]                                                        ^
    [javac] /Users/jun/dev/uganda/fdroiddata/build/org.iilab.openmentoring/platforms/android/src/de/appplant/cordova/plugin/notification/Builder.java:178: error: package NotificationCompat does not exist
    [javac]     private void applyContentReceiver(NotificationCompat.Builder builder) {
    [javac]                                                         ^
    [javac] /Users/jun/dev/uganda/fdroiddata/build/org.iilab.openmentoring/platforms/android/src/de/appplant/cordova/plugin/notification/Builder.java:120: error: package NotificationCompat does not exist
    [javac]         NotificationCompat.Builder builder;
    [javac]                           ^
    [javac] /Users/jun/dev/uganda/fdroiddata/build/org.iilab.openmentoring/platforms/android/src/de/appplant/cordova/plugin/notification/Builder.java:122: error: package NotificationCompat does not exist
    [javac]         builder = new NotificationCompat.Builder(context)
    [javac]                                         ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 8 errors

Building with gradle=yes (and updating my local Build Tools) the build succeeds after changing back the build number to 48. So now I understand the error message in Maintainer Notes and Auto Update Mode or Update Check Mode can't be used because ionic seems to configure gradle to automatically generate a build version.

Not sure how to solve this, so I'll keep the issue open and push the fdroid metadata without the UCM/AUM and the static versionCode at 48 for now.