You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/12/24 19:50:31 UTC

[GitHub] [cordova-android] zoranmil opened a new issue #1386: CordovaLib:compileReleaseJavaWithJavac

zoranmil opened a new issue #1386:
URL: https://github.com/apache/cordova-android/issues/1386


   # Bug Report
   :CordovaLib:compileReleaseJavaWithJavac
   ## Problem
   
   ### What is expected to happen?
   
   
   
   ### What does actually happen?
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   Task :CordovaLib:compileReleaseJavaWithJavac
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:132: warning: [deprecation] FLAG_FULLSCREEN in LayoutParams has been deprecated
                   getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                                                                  ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:133: warning: [deprecation] FLAG_FULLSCREEN in LayoutParams has been deprecated
                           WindowManager.LayoutParams.FLAG_FULLSCREEN);
                                                     ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:136: warning: [deprecation] FLAG_FORCE_NOT_FULLSCREEN in LayoutParams has been deprecated
               getWindow().setFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN,
                                                              ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:137: warning: [deprecation] FLAG_FORCE_NOT_FULLSCREEN in LayoutParams has been deprecated
                       WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
                                                 ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaInterfaceImpl.java:69: warning: [deprecation] startActivityForResult(Intent,int) in ComponentActivity has been deprecated
               activity.startActivityForResult(intent, requestCode);
                       ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaInterfaceImpl.java:222: warning: [deprecation] onRequestPermissionResult(int,String[],int[]) in CordovaPlugin has been deprecated
               callback.first.onRequestPermissionResult(callback.second, permissions, grantResults);
                             ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:337: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_STABLE in View has been deprecated
           final int uiOptions = View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                                     ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:338: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in View has been deprecated
                   | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                         ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:339: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN in View has been deprecated
                   | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                         ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:340: warning: [deprecation] SYSTEM_UI_FLAG_HIDE_NAVIGATION in View has been deprecated
                   | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                         ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:341: warning: [deprecation] SYSTEM_UI_FLAG_FULLSCREEN in View has been deprecated
                   | View.SYSTEM_UI_FLAG_FULLSCREEN
                         ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:342: warning: [deprecation] SYSTEM_UI_FLAG_IMMERSIVE_STICKY in View has been deprecated
                   | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
                         ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:344: warning: [deprecation] setSystemUiVisibility(int) in View has been deprecated
           getWindow().getDecorView().setSystemUiVisibility(uiOptions);
                                     ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:349: warning: [deprecation] startActivityForResult(Intent,int,Bundle) in ComponentActivity has been deprecated
       public void startActivityForResult(Intent intent, int requestCode, Bundle options) {
                   ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\CordovaActivity.java:352: warning: [deprecation] startActivityForResult(Intent,int,Bundle) in ComponentActivity has been deprecated
           super.startActivityForResult(intent, requestCode, options);
                ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemCookieManager.java:38: warning: [deprecation] setAcceptFileSchemeCookies(boolean) in CookieManager has been deprecated
           cookieManager.setAcceptFileSchemeCookies(true);
                        ^
   E:\kopija\zoran\platforms\android\CordovaLib\src\org\apache\cordova\PermissionHelper.java:83: warning: [deprecation] onRequestPermissionResult(int,String[],int[]) in CordovaPlugin has been deprecated
               plugin.onRequestPermissionResult(requestCode, permissions, requestResults);
                     ^
   17 warnings
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   windows 10
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   cordova 10.1.1
   no plugins test aplication
   Android studio ARCTIC FOX 2020.3.1
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [X ] I searched for existing GitHub issues
   - [X ] I updated all Cordova tooling to most recent version
   - [x ] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] jcesarmobile commented on issue #1386: CordovaLib:compileReleaseJavaWithJavac

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #1386:
URL: https://github.com/apache/cordova-android/issues/1386#issuecomment-1004769158


   those are just warnings, are you getting some error that prevents your app from building?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] zoranmil commented on issue #1386: CordovaLib:compileReleaseJavaWithJavac

Posted by GitBox <gi...@apache.org>.
zoranmil commented on issue #1386:
URL: https://github.com/apache/cordova-android/issues/1386#issuecomment-1004775966


   Yes only  warnings Build success


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #1386: deprecation warnings on java code

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1386:
URL: https://github.com/apache/cordova-android/issues/1386#issuecomment-1030484599


   Just some research information:
   
   > getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
   
   Replacement: https://developer.android.com/reference/android/view/WindowInsetsController#hide(int) (Replacement requires API >= 30)
   
   > FLAG_FORCE_NOT_FULLSCREEN
   
   An "accidental API" not intended to be used by third-party apps with no replacement, but was used to override `FLAG_FULLSCREEN` so any usages can be probably changed to use `FLAG_FULLSCREEN` directly.
   
   > CordovaInterfaceImpl.java:69: warning: [deprecation] startActivityForResult(Intent,int) in ComponentActivity has been deprecated
   
   https://developer.android.com/reference/androidx/activity/ComponentActivity#startActivityForResult(android.content.Intent,int) (believe this can be refactored at any time)
   
   > SYSTEM_UI_FLAG_LAYOUT_STABLE
   
   https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_LAYOUT_STABLE (Replacement requires API >= 30)
   
   > SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
   
   https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION (Replacement requires API >= 30)
   
   > SYSTEM_UI_FLAG_IMMERSIVE_STICKY
   
   https://developer.android.com/reference/android/view/View#SYSTEM_UI_FLAG_IMMERSIVE_STICKY (Replacement requires API >= 30)
   
   > getWindow().getDecorView().setSystemUiVisibility(uiOptions);
   
   https://developer.android.com/reference/android/view/View.html#setSystemUiVisibility(int) (Replacement requires API >= 30)
   
   > setAcceptFileSchemeCookies
   
   https://developer.android.com/reference/android/webkit/CookieManager#setAcceptFileSchemeCookies(boolean)
   
   This one is covered by cordova-android@10 which by default uses the WebViewAssetLoader, so the replacement is already implemented. But we can't remove this usage until we decide to remove support for the file:// scheme.
   
   > onRequestPermissionResult
   
   This is a deprecation within the cordova API. It will remain until we decide to forcefully remove the deprecated API (and force plugin authors to update their code accordingly)
   
   As most of these requires API >= 30 to properly remove, it will be some time before we can actually act on any of these deprecation warnings. For reference, Cordova supports API >= 22.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org