You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ChinaGc (via GitHub)" <gi...@apache.org> on 2023/08/29 10:10:43 UTC

[GitHub] [cordova-android] ChinaGc opened a new issue, #1655: Help, the drawable picture in my release apk package is always renamed, that picture I do not want it to be renamed, what should I do

ChinaGc opened a new issue, #1655:
URL: https://github.com/apache/cordova-android/issues/1655

   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   Image resources do not want to be renamed
   
   
   ### What does actually happen?
   
   has renamed
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### 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? -->
   
   
   
   ### 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.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] 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.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 closed issue #1655: Help, the drawable picture in my release apk package is always renamed, that picture I do not want it to be renamed, what should I do

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek closed issue #1655: Help, the drawable picture in my release apk package is always renamed, that picture I do not want it to be renamed, what should I do
URL: https://github.com/apache/cordova-android/issues/1655


-- 
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] ChinaGc commented on issue #1655: Help, the drawable picture in my release apk package is always renamed, that picture I do not want it to be renamed, what should I do

Posted by "ChinaGc (via GitHub)" <gi...@apache.org>.
ChinaGc commented on issue #1655:
URL: https://github.com/apache/cordova-android/issues/1655#issuecomment-1697164589

   like this 
   ![DF2C3315-17D7-4812-A650-CDCD2D6A507E](https://github.com/apache/cordova-android/assets/18680644/8b464bb5-dd34-4965-87da-7fa4f5933620)
   


-- 
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] ChinaGc commented on issue #1655: Help, the drawable picture in my release apk package is always renamed, that picture I do not want it to be renamed, what should I do

Posted by "ChinaGc (via GitHub)" <gi...@apache.org>.
ChinaGc commented on issue #1655:
URL: https://github.com/apache/cordova-android/issues/1655#issuecomment-1700636017

   > Are you using any obsfucation plugins like proguard?
   > 
   > If so, it would do stuff like this
   Thank you for your reply, this is a newly created project, without any configuration, and without adding any plugins.
   ![微信截图_20230831133128](https://github.com/apache/cordova-android/assets/18680644/0d938b70-68e9-412e-a62d-3b1feee95983)
   
   


-- 
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 #1655: Help, the drawable picture in my release apk package is always renamed, that picture I do not want it to be renamed, what should I do

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1655:
URL: https://github.com/apache/cordova-android/issues/1655#issuecomment-1701925440

   @faugusztin 
   
   Good find.
   
   Starting in Gradle 8 it will be forcefully enabled as shown in their [source](https://android.googlesource.com/platform/tools/base/+/refs/heads/mirror-goog-studio-master-dev/build-system/gradle-core/src/main/java/com/android/build/gradle/options/BooleanOption.kt#190).
   
   Gradle 8 will be used in our next major so I don't see any point in adding any kind of feature to change this.
   
   > Alternatively files you want to read in a Cordova application outside a Cordova plugin should be inside the assets folder or ideally within Cordova www folder, which gets copied to assets/www in final APK file.
   
   Also true
   
   Closing as won't fix.


-- 
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] faugusztin commented on issue #1655: Help, the drawable picture in my release apk package is always renamed, that picture I do not want it to be renamed, what should I do

Posted by "faugusztin (via GitHub)" <gi...@apache.org>.
faugusztin commented on issue #1655:
URL: https://github.com/apache/cordova-android/issues/1655#issuecomment-1701896165

   This is caused by Android Gradle Plugin 4.2 defaulting to android.enableResourceOptimizations=true (which will be the only option in future) - [source](https://stackoverflow.com/a/68464092).
   
   On other side, you are supposed to read these files using corresponding resource identifier in Android code using corresponding [API call](https://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String,%20java.lang.String,%20java.lang.String)).


-- 
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] ChinaGc commented on issue #1655: Help, the drawable picture in my release apk package is always renamed, that picture I do not want it to be renamed, what should I do

Posted by "ChinaGc (via GitHub)" <gi...@apache.org>.
ChinaGc commented on issue #1655:
URL: https://github.com/apache/cordova-android/issues/1655#issuecomment-1700638559

   > Are you using any obsfucation plugins like proguard?
   > 
   > If so, it would do stuff like this
   
   Hi,Thank you for your reply, this is a newly created project, without any configuration, and without adding any plugins.
   ![微信截图_20230831133128](https://github.com/apache/cordova-android/assets/18680644/06b4ad04-9647-4dea-83fb-1f47b982f31b)
   


-- 
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 #1655: Help, the drawable picture in my release apk package is always renamed, that picture I do not want it to be renamed, what should I do

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1655:
URL: https://github.com/apache/cordova-android/issues/1655#issuecomment-1699711412

   Are you using any obsfucation plugins like proguard?
   
   If so, it would do stuff like this


-- 
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