Commit Graph
193 Commits
Author SHA1 Message Date
Stephen Zhou f0f49bea8b ci: macos-15 and xcode 16.3 (#3680) 2025-05-08 09:16:20 +08:00
Innei efc2e9713b refactor: upgrade react 19 and react native 0.79 (#3661)
* update

Signed-off-by: Innei <tukon479@gmail.com>

* chore: update Babel and Metro configurations

- Added `unstable_transformImportMeta` option to Babel preset for improved JSX handling.
- Disabled `unstable_enablePackageExports` in Metro configuration for better package resolution.

Signed-off-by: Innei <tukon479@gmail.com>

* chore: add react-native-ios-utilities patch and update dependencies

- Introduced a patch for `react-native-ios-utilities` to enhance functionality.
- Updated `expo`, `react-native`, and `react-native-reanimated` versions in the example app for improved compatibility.
- Added `react-native-ios-utilities` to the project dependencies in `package.json`.

Signed-off-by: Innei <tukon479@gmail.com>

* update

Signed-off-by: Innei <tukon479@gmail.com>

* chore: auto-fix linting and formatting issues

* refactor: improve route parameter handling and entry fetching logic

- Updated `useRouteParams` to utilize `useReadonlyRoute` for better state management.
- Enhanced `useEntriesByView` to separate remote and local entry fetching, improving data handling and error management.
- Introduced debouncing for pagination in local entries and added toast notifications for error handling.
- Cleaned up entry ID retrieval to ensure uniqueness and prevent duplicates.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: simplify Masonry component return statement

- Updated the return statement in the Masonry component to use JSX syntax for better readability and consistency.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: update import from RootPortalProvider to RootPortalContext

- Changed the import statement in Sheet.tsx to reflect the updated context provider name for better clarity and consistency in the codebase.

Signed-off-by: Innei <tukon479@gmail.com>

* update

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: update ref types in component props

- Changed ref prop types from React.RefObject to React.Ref for better type compatibility across various components, enhancing overall code consistency and maintainability.

Signed-off-by: Innei <tukon479@gmail.com>

* feat: add Xcode build server configuration and enhance desktop app routing

- Introduced a new configuration file for the Xcode build server to streamline iOS builds.
- Updated Vite configuration to include a new proxy route for sharing functionality.
- Added a new Jotai atom for managing preview state in the application.
- Removed deprecated error fallback component to clean up the codebase.
- Implemented a new render style hook for consistent styling across components.
- Enhanced entry column components with improved error handling and layout adjustments.
- Updated various components to utilize the new render style and improved accessibility.

Signed-off-by: Innei <tukon479@gmail.com>

* update

Signed-off-by: Innei <tukon479@gmail.com>

* fix: ensure plugins array is initialized and update TypeScript configuration

- Initialized the plugins array in the mobile app configuration to prevent potential runtime errors.
- Updated TypeScript configuration to enhance module resolution and improve code organization with clearer path definitions.

Signed-off-by: Innei <tukon479@gmail.com>

* update lint

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: update TypeScript types and improve component props

- Added `skipLibCheck` to TypeScript configuration for faster builds.
- Updated prop types in various components to allow for null values in refs, enhancing type safety.
- Refactored several components to ensure better type compatibility and maintainability.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(mobile): improve layout handling in NavigationHeader component

- Added console logs for debugging right and left widths.
- Adjusted layout structure to ensure proper width handling for header elements.
- Updated loading indicator positioning and visibility logic.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(mobile): update Pager and QRCode components to use forwardRef

- Refactored Pager and QRCode components to directly export as functional components with forwardRef.
- Updated type definitions to improve ref handling and ensure better type safety.
- Simplified component structure for improved readability and maintainability.

Signed-off-by: Innei <tukon479@gmail.com>

* refactor(ui): enhance FAB components with functional component structure and improved type definitions

- Converted FABBase and FABPortable to functional components using FC type for better type safety.
- Updated props to include optional ref handling, enhancing flexibility in usage.
- Simplified component structure for improved readability and maintainability.

Signed-off-by: Innei <tukon479@gmail.com>

* chore(deps): update react-native-ios-utilities patch and refine TypeScript configuration

- Updated the patch for react-native-ios-utilities in pnpm-lock.yaml to reflect a new hash.
- Enhanced TypeScript configuration in tsconfig.json by adding exclusion for node_modules and formatting paths for better readability.
- Cleaned up the react-native-ios-utilities.patch by removing unused exports from the index file.

Signed-off-by: Innei <tukon479@gmail.com>

* update

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-07 16:30:30 +08:00
dependabot[bot] 59ec2443e9 chore(deps): bump signpath/github-action-submit-signing-request (#3626)
Bumps [signpath/github-action-submit-signing-request](https://github.com/signpath/github-action-submit-signing-request) from 1.1 to 1.2.
- [Commits](https://github.com/signpath/github-action-submit-signing-request/compare/v1.1...v1.2)

---
updated-dependencies:
- dependency-name: signpath/github-action-submit-signing-request
  dependency-version: '1.2'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-06 23:53:22 +08:00
Stephen Zhou 07b1dac2eb ci: update name 2025-04-23 10:44:10 +08:00
Stephen Zhou f8c6cb7ae7 ci: separate self-hosted runner job as pass array as input not work 2025-04-23 10:29:23 +08:00
DIYgod e847740205 chore: add macos check for ios self hosted runner check 2025-04-22 18:57:29 +08:00
dependabot[bot] 167c5ac944 build(deps): bump actions/checkout from 3 to 4 (#3532)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-20 13:09:01 +08:00
Innei dee44e5411 chore(ci): add automatic branch sync workflow
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-18 18:55:13 +08:00
Stephen Zhou 099dee902c build: revert unplugin-ast update 2025-04-13 19:38:06 +08:00
DIYgod 223f26ece5 chore: fix android submit path 2025-04-13 14:28:21 +08:00
DIYgod 0ccc57eee0 chore: fix android submit path 2025-04-13 13:52:43 +08:00
DIYgod 2411733438 chore: safer actions trigger conditions 2025-04-13 13:30:45 +08:00
DIYgod 533a1ce593 chore: add input param to concurrency group id 2025-04-13 13:15:27 +08:00
DIYgod c3bccbe6d8 chore: production build submit to Google Play 2025-04-13 12:59:18 +08:00
DIYgod 8a985edf47 chore: use working-directory 2025-04-13 12:58:52 +08:00
DIYgod 53e492ab67 chore: fix workflow name 2025-04-12 17:48:08 +08:00
DIYgod 29555ef021 chore: rename workflows 2025-04-07 23:37:07 +08:00
DIYgod 653179485f chore(mobile): upload android aab 2025-04-07 22:22:04 +08:00
DIYgod ae3a6c9d4e chore: merge dependabot minor and patch 2025-04-05 22:11:45 +08:00
DIYgod 4c19dc6c0b chore: sign exe only for release 2025-04-05 10:13:30 +08:00
DIYgod bdd4e07a41 chore: setup store build 2025-04-05 10:11:15 +08:00
DIYgod c85e8ecd95 chore: prod build for mas 2025-04-05 10:07:52 +08:00
DIYgod 97c2b1a8df chore: no staging build for mas 2025-04-05 10:01:17 +08:00
Whitewater 25d253ff33 feat: android prototype (#3376)
* fix(mobile): mock webview module for Android

* fix(mobile): disable new architecture for track player workaround

* chore(mobile): add @react-native-menu/menu dependency

* fix(mobile): handle undefined index in PagerList onIndexChange

* fix(mobile): add error handling for stream fetch response

* fix(mobile): update aspect ratio handling for video components

* fix(mobile): mock Galeria component

* fixup! fix(mobile): update aspect ratio handling for video components

* chore(ci): add GitHub Actions workflow for building Android app

* fix(mobile): improve CocoaPods pre-install script to handle missing CocoaPods

* fix(mobile): move splash screen image configuration to Android-specific settings

* fix(mobile): image in android

* fix: patch react-native-track-player patch

* fix: build profile
2025-04-02 19:24:06 +08:00
Stephen Zhou 1594079c37 ci: include app config in path condition 2025-04-01 14:44:39 +08:00
Stephen Zhou 987d2611ce ci: clear cache after build 2025-03-31 11:00:13 +08:00
Stephen Zhou cb73dfd7e1 ci: clear xcode cache for self-hosted runner 2025-03-31 10:56:13 +08:00
DIYgod 2881d655ee feat: staging build (#3365)
* feat: move constants isElectronBuild

* feat: move constants isWebBuild

* feat: unified isDev

* feat: unified isProd

* chore: staging build

* update

* fix

* fix

* feat: staging icons

* fix
2025-03-30 22:13:11 +08:00
DIYgod 77d48b9f99 chore: fix appx name 2025-03-28 20:05:43 +08:00
DIYgod fa3f3d9b95 chore: set continue-on-error for signpath 2025-03-28 18:50:53 +08:00
Stephen Zhou 5a45700204 ci: fix skip condition 2025-03-28 11:10:52 +08:00
DIYgod 252bc0e347 chore: disable windows sign for dev 2025-03-27 12:16:17 +08:00
DIYgod 23df2bfeb0 chore: use signpath test signing for non production 2025-03-26 18:38:04 +08:00
DIYgod cf6b609490 chore: update signpath signing-policy-slug 2025-03-26 18:13:13 +08:00
DIYgod 9eb044e91a chore: relax concurrency limits for non iOS builds 2025-03-26 12:19:49 +08:00
DIYgod 12e4a2c25a chore: build file names 2025-03-26 12:04:56 +08:00
DIYgod 0e4a810493 chore: signpath (#3286)
* chore: separate artifacts

* chore: use signpath

* update

* update

* update

* update

* update
2025-03-26 00:03:49 +08:00
Stephen Zhou a1fed5c62a ci: pass for external contributor 2025-03-24 11:32:01 +08:00
Stephen Zhou 89e8cdfa29 ci: fix empty state fro external contributor 2025-03-24 11:23:09 +08:00
Stephen Zhou 4bdd6bac4e ci: restrict build workflow to dev branch only (#3255) 2025-03-23 17:31:30 +08:00
Stephen Zhou 2f8f13738c ci: introduce self host runner (#3237)
* ci: test self host runner

* update

* update

* push

* prefer self then github

* update

* log

* update

* update

* update

* update

* update

* try label

* Revert "try label"

This reverts commit 05d19cf24f760df39cb1c739e2b0ee073368137b.

* include build mac

* try hyoban to build mac

* update

* update

* update

* update

* push

* push

* push

* push

* push

* push

* try

* try

* Revert "try"

This reverts commit c1be653a93a87bfa14c6cfc7fb2e8ba20ae39bf4.

* fix build

* add runner

* Revert "add runner"

This reverts commit 70e0c357467d118bf2b28c1d979f5fc43cf2793a.

* clean

* avoid setup on self host

* update
2025-03-23 17:21:59 +08:00
DIYgod 427045d2b4 feat: appx (#3219)
* feat: add appx maker

* update

* update

* fix

* update

* update

* update

* update

* Revert "update"

This reverts commit 798e6124dcd0fa2080f03fc1f952076bf5a11fd4.
2025-03-21 17:28:12 +08:00
dependabot[bot] 9d3713d5d4 build(deps): bump redhat-plumbers-in-action/advanced-issue-labeler (#3176)
Bumps [redhat-plumbers-in-action/advanced-issue-labeler](https://github.com/redhat-plumbers-in-action/advanced-issue-labeler) from 2 to 3.
- [Release notes](https://github.com/redhat-plumbers-in-action/advanced-issue-labeler/releases)
- [Commits](https://github.com/redhat-plumbers-in-action/advanced-issue-labeler/compare/v2...v3)

---
updated-dependencies:
- dependency-name: redhat-plumbers-in-action/advanced-issue-labeler
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-20 14:23:21 +08:00
dependabot[bot] f83e47271e build(deps): bump actions/checkout from 3 to 4 (#3177)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-20 14:23:09 +08:00
Innei f21b9e7bf0 refactor: replace @react-navigation and expo-router (#3151)
* init

* init

* refactor(mobile): enhance tab navigation and structure

- Added `TabScreenModule` and `TabScreenView` to support dynamic tab management.
- Replaced `FOTabBarController` with a more streamlined `UITabBarController` implementation.
- Updated `TabBarModule` to utilize new tab switching logic and event handling.
- Modified `TabBarRootView` to manage tab views more effectively and handle tab index changes.
- Adjusted main application file to integrate new tab components and improve navigation flow.

These changes aim to improve the tab navigation experience and maintainability of the codebase.

* tabbar

* refactor(mobile): streamline navigation and tab management

- Refactored main application structure to enhance tab navigation, integrating `BottomTabs` and `TabRoot` components for improved tab management.
- Updated `NavigationHeader` and `SafeNavigationScrollView` to better handle header visibility and scrolling behavior.
- Introduced `ScreenItemContext` for managing screen state and scroll position across navigation.
- Cleaned up unused imports and optimized component structure for better maintainability.

These changes aim to improve the overall navigation experience and code organization within the mobile application.

* update

* feat(mobile): implement BottomTabProvider for enhanced tab management

- Introduced `BottomTabProvider` component to manage tab visibility and scroll view context.
- Refactored `BottomTabs` to utilize context for background opacity and tab visibility, simplifying the component structure.
- Removed the deprecated `TabClient` component to streamline the tab implementation.
- Added a null check in `Tabbar` to prevent rendering when there are no tab screens.

These changes aim to improve the organization and functionality of the tab navigation system within the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>

* update

* update

* update

* update

* update

* feat(mobile): integrate ErrorBoundary and enhance navigation context

- Added `ErrorBoundary` component to handle errors gracefully within the application.
- Integrated `BottomTabProvider` to manage tab visibility and scroll view context more effectively.
- Refactored navigation components to utilize new context for improved state management.
- Updated `SafeNavigationScrollView` and `Settings` components to streamline scrolling behavior and context usage.
- Removed deprecated code and optimized component structure for better maintainability.

These changes enhance the user experience by providing error handling and improving navigation management.

* feat(mobile): enhance navigation and layout components

- Registered new screens (`TermsScreen`, `LoginScreen`, `SignUpScreen`, `ForgetPasswordScreen`, `TwoFactorAuthScreen`) with the `NavigationSitemapRegistry` for improved navigation management.
- Adjusted layout properties in `HeaderElements` and `NavigationHeader` for better alignment and responsiveness.
- Refactored `Tabbar` to remove unnecessary animated reactions, optimizing performance.
- Exported `ActionGroup` component for better reusability in `TimelineSelectorProvider`.
- Updated `DebugScreen` to utilize the new navigation methods for component presentation.

These changes improve the overall navigation experience and component structure within the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): implement new architecture support and refactor TabBar components

- Added support for the new architecture in the iOS podspec by conditionally defining `OTHER_SWIFT_FLAGS`.
- Refactored `TabBarPortalModule`, `TabBarRootView`, and `TabScreenView` to improve structure and maintainability.
- Replaced native view components with standard React Native views in `TabBarPortal`, `TabRoot`, and `TabScreen` for better compatibility and performance.
- Updated import paths for `TabScreenProps` to ensure correct type usage.

These changes enhance the navigation experience and prepare the codebase for future architecture improvements.

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): refactor navigation and onboarding components

- Removed outdated navigation dependencies from `package.json` to streamline the project.
- Enhanced `TabBarRootView` to improve tab switching animations and manage view transitions more effectively.
- Updated `App` component structure for better readability and integration of onboarding logic.
- Introduced `OnboardingScreen` with improved layout and navigation handling.
- Refactored navigation context types to include additional screen options for better flexibility.

These changes enhance the navigation experience and prepare the application for future onboarding features.

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): enhance intent handling with navigation integration

- Added navigation support in `useIntentHandler` to handle incoming URLs more effectively.
- Integrated `FollowScreen` for presenting user-specific content based on URL parameters.
- Updated effect dependencies to include navigation for improved functionality.

These changes improve the handling of deep links and enhance the user experience when navigating to the follow screen.

Signed-off-by: Innei <tukon479@gmail.com>

* chore: clean up pnpm-lock.yaml by removing unused navigation dependencies

- Removed outdated navigation packages including `@react-navigation/bottom-tabs`, `@react-navigation/drawer`, and `@react-navigation/native` to streamline the lock file.
- Cleaned up unnecessary entries and peer dependencies to improve maintainability and reduce clutter.

These changes help in optimizing the dependency management for the project.

Signed-off-by: Innei <tukon479@gmail.com>

* lint

Signed-off-by: Innei <tukon479@gmail.com>

* chore: auto-fix linting and formatting issues

* fix

Signed-off-by: Innei <tukon479@gmail.com>

* update

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: update PickerIos component and remove FeedDrawer

- Added import for Portal in PickerIos component.
- Removed the FeedDrawer component entirely, cleaning up unused code.
- Replaced router.dismiss() with navigation.dismiss() in list screen options for better navigation handling.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-19 22:35:49 +08:00
DIYgod f2e29252f2 feat: rename (#3181)
* feat: rename

* fix

* fix

* fix
2025-03-19 21:43:55 +08:00
DIYgod bef3105f3d chore: add platform in issue template 2025-03-18 22:32:24 +08:00
DIYgod 0fae7271fa chore: issue labeler 2025-03-18 22:28:45 +08:00
DIYgod d5eeb84c0a chore: add platform in issue template 2025-03-18 22:13:41 +08:00
Innei 278e228308 chore: downgrade electron version to 34.2.0 in package.json and pnpm-lock.yaml
Signed-off-by: Innei <tukon479@gmail.com>
2025-03-18 11:16:54 +08:00