cocos-engine
cocos-engine copied to clipboard
remove unneeded res files
The appcomt theme uses resource files, so we must replace AppcompatActivity with Activity to delete resource files that are not needed by the application.
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
We can depend on Appcompat, but these resources are not needed. So should find a way to remove these resources when generating apk.
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
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.
https://github.com/cocos/cocos-engine-external/pull/296 https://github.com/cocos/cocos-engine/pull/12854 Temporarily delete the dependency on appcompat