feat(APKUpdate): implement APK update check and enhance build workflow
- Added `expo-intent-launcher` dependency to support APK launching functionality. - Introduced `APKUpdateBootstrap` component to check for APK updates during app initialization. - Enhanced build workflow in `build.yml` to resolve runtime version and upload APK to the updates server. - Updated `HomeScreen` and `TabsLayout` to manage tab visibility and scroll behavior based on user interactions. - Refactored message bubble styles for improved UI consistency and user experience.
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import {
|
||||
ConfigPlugin,
|
||||
withMainActivity,
|
||||
AndroidConfig,
|
||||
} from '@expo/config-plugins';
|
||||
const { withMainActivity } = require('@expo/config-plugins');
|
||||
|
||||
/**
|
||||
* 在 MainActivity 中添加 onConfigurationChanged 方法
|
||||
* 用于监听系统深色模式变化并通知 React Native
|
||||
*/
|
||||
const withMainActivityConfigChange: ConfigPlugin = (config) => {
|
||||
const withMainActivityConfigChange = (config) => {
|
||||
return withMainActivity(config, async (config) => {
|
||||
const { contents } = config.modResults;
|
||||
|
||||
@@ -74,4 +70,4 @@ import android.content.res.Configuration`;
|
||||
});
|
||||
};
|
||||
|
||||
export default withMainActivityConfigChange;
|
||||
module.exports = withMainActivityConfigChange;
|
||||
Reference in New Issue
Block a user