Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module localnotification depreciated for android #307

Open
karliwalti opened this issue Sep 7, 2020 · 1 comment
Open

Module localnotification depreciated for android #307

karliwalti opened this issue Sep 7, 2020 · 1 comment

Comments

@karliwalti
Copy link
Contributor

module localnotification https://github.com/part-cw/lambdanative/blob/master/modules/localnotification/localnotification.scm seems to be no longer supported with android 24

[javac] /home/walterk/.lambdanative/tmp_build/src/ch/mhsl/fragebogen/AlarmReceiver.java:4: error: package android.support.v4.app does not exist
    [javac] import android.support.v4.app.NotificationCompat;

In fact, WakefulBroadcastReceiver class is depreciated since O (26) https://developer.android.com/reference/androidx/legacy/content/WakefulBroadcastReceiver

@mgorges
Copy link
Contributor

mgorges commented Sep 7, 2020

This is a bit more complicated and I likely won't have time to sort it out as classes start tomorrow. If I fix the paths to include the support library, I still get issues during the DEXing step:

      [dex] input: /Users/mg/.lambdanative/tmp_build/libs/android-support-v4.jar
      [dex] Pre-Dexing /Users/mg/.lambdanative/tmp_build/libs/android-support-v4.jar -> android-support-v4-bcc08885376bc01f6db5f114fba16059.jar
      [dex] Converting compiled files and external libraries into /Users/mg/.lambdanative/tmp_build/bin/classes.dex...
       [dx] 
       [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
       [dx] com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)
[...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants