thaarok / cordova-plugin-kiosk

Cordova plugin to use Cordova application "in kiosk mode" and as Android launcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build for target < android-23

zorn-v opened this issue · comments

If you set target=android-19 (for example) in platforms/android/project.properties you get these errors

...\cordova\platforms\android\app\src\main\java\jk\cordova\plugin\kiosk\StatusBarOverlay.java:59: error: cannot find symbol
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { // added in API level 23
                                                        ^
  symbol:   variable M
  location: class VERSION_CODES
...\cordova\platforms\android\app\src\main\java\jk\cordova\plugin\kiosk\StatusBarOverlay.java:60: error: cannot find symbol
            if (! Settings.canDrawOverlays(activity)) {
                          ^
  symbol:   method canDrawOverlays(Activity)
  location: class Settings
...\cordova\platforms\android\app\src\main\java\jk\cordova\plugin\kiosk\StatusBarOverlay.java:61: error: cannot find symbol
                Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION,
                                                   ^
  symbol:   variable ACTION_MANAGE_OVERLAY_PERMISSION
  location: class Settings

Even if change Build.VERSION_CODES.M to 23 other errors still remain