Skip to content

Commit

Permalink
bump app version to v0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
youniaogu committed Sep 16, 2022
1 parent 1ffe617 commit b3d354a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ android {
applicationId "com.mangareader"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 12
versionName "0.2.3"
versionCode 13
versionName "0.2.4"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

if (isNewArchitectureEnabled()) {
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mangareader",
"version": "0.2.3",
"version": "0.2.4",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand Down Expand Up @@ -69,6 +69,9 @@
"react-test-renderer": "17.0.2",
"typescript": "^4.4.4"
},
"resolutions": {
"@types/react": "17"
},
"jest": {
"preset": "react-native",
"moduleFileExtensions": [
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ Ios:因为没有开发者账户,请按上面流程安装依赖并构建至
- [x] 插件配置页

- [x] 竖屏模式

- [ ] 检查 app 更新

- [ ] 过滤批量更新
8 changes: 5 additions & 3 deletions src/utils/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import { createNavigationContainerRef } from '@react-navigation/native';
export const navigationRef = createNavigationContainerRef<RootStackParamList>();

export function navigate<RouteName extends keyof RootStackParamList>(
...args: undefined extends RootStackParamList[RouteName]
? [screen: RouteName] | [screen: RouteName, params: RootStackParamList[RouteName]]
: [screen: RouteName, params: RootStackParamList[RouteName]]
...args: RouteName extends unknown
? undefined extends RootStackParamList[RouteName]
? [screen: RouteName] | [screen: RouteName, params: RootStackParamList[RouteName]]
: [screen: RouteName, params: RootStackParamList[RouteName]]
: never
) {
if (navigationRef.isReady()) {
navigationRef.navigate(...args);
Expand Down
2 changes: 1 addition & 1 deletion src/views/Discovery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as RootNavigation from '~/utils/navigation';

const { loadDiscovery, loadSearch, setSource, setType, setRegion, setStatus, setSort } = action;

const Discovery = ({ navigation: { navigate } }: StackHomeProps) => {
const Discovery = ({ navigation: { navigate } }: StackDiscoveryProps) => {
const { list } = useAppSelector((state) => state.discovery);
const { source } = useAppSelector((state) => state.plugin);
const dict = useAppSelector((state) => state.dict.manga);
Expand Down

0 comments on commit b3d354a

Please sign in to comment.