cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

remove unneeded res files

Open bofeng-song opened this issue 2 years ago • 7 comments

bofeng-song avatar Sep 06 '22 07:09 bofeng-song

The appcomt theme uses resource files, so we must replace AppcompatActivity with Activity to delete resource files that are not needed by the application.

bofeng-song avatar Sep 20 '22 01:09 bofeng-song

https://github.com/cocos/3d-tasks/issues/7706 Android Game Text Input may depend on Appcompat, so we need to investigate whether it is necessary to eliminate the use of appcompat

bofeng-song avatar Sep 20 '22 01:09 bofeng-song

We can depend on Appcompat, but these resources are not needed. So should find a way to remove these resources when generating apk.

minggo avatar Sep 20 '22 01:09 minggo

AppCompatDelegate is the AppCompatActivity's proxy. Before onCreate function called at AppCompatActivity, it'll create abc_screen_simple layout. But abc_ screen_simple layout depends on other resource files. So we can not remove appCompat's resource files if we consider use appCompat

bofeng-song avatar Sep 22 '22 01:09 bofeng-song

1663810054675 1663810120073 1663810153001 1663810168989

bofeng-song avatar Sep 22 '22 01:09 bofeng-song

As we haven't integrated game text input, so we should remove Appcompat. When we decide to integrate game text input, then we can add Appcompat back.

minggo avatar Sep 22 '22 02:09 minggo

https://github.com/cocos/cocos-engine-external/pull/296 https://github.com/cocos/cocos-engine/pull/12854 Temporarily delete the dependency on appcompat

bofeng-song avatar Sep 22 '22 07:09 bofeng-song