Skip to content

Commit

Permalink
bump app version to v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
youniaogu committed Aug 17, 2022
1 parent a6f34e1 commit 54cf8ab
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 23 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 9
versionName "0.2.0"
versionCode 10
versionName "0.2.1"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

if (isNewArchitectureEnabled()) {
Expand Down
8 changes: 4 additions & 4 deletions ios/MangaReader.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -493,15 +493,15 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 9;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_TEAM = VAL2KK2S94;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = MangaReader/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.2.0;
MARKETING_VERSION = 0.2.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand All @@ -521,14 +521,14 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 9;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_TEAM = VAL2KK2S94;
INFOPLIST_FILE = MangaReader/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.2.0;
MARKETING_VERSION = 0.2.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mangareader",
"version": "0.2.0",
"version": "0.2.1",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand Down
35 changes: 19 additions & 16 deletions src/redux/saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,27 +160,30 @@ function* batchUpdateSaga() {
break;
}

const id = nanoid();
const dict = ((state: RootState) => state.dict)(yield select());
yield put(loadManga({ mangaHash: hash, taskId: id }));
const loadMangaEffect = function* () {
const id = nanoid();
const dict = ((state: RootState) => state.dict)(yield select());
yield put(loadManga({ mangaHash: hash, taskId: id }));

const {
payload: { error: fetchError, data },
}: ActionParameters<typeof loadMangaCompletion> = yield take(
({ type, payload: { taskId } }: any) => type === loadMangaCompletion.type && taskId === id
);
const {
payload: { error: fetchError, data },
}: ActionParameters<typeof loadMangaCompletion> = yield take(
({ type, payload: { taskId } }: any) => type === loadMangaCompletion.type && taskId === id
);

let isTrend = false;
if (!fetchError) {
const prev = dict.manga[hash]?.chapters || [];
const curr = data?.chapters || [];
let isTrend = false;
if (!fetchError) {
const prev = dict.manga[hash]?.chapters || [];
const curr = data?.chapters || [];

if (curr.length > prev.length) {
isTrend = true;
if (curr.length > prev.length) {
isTrend = true;
}
}
}

yield put(batchRecord({ isSuccess: !fetchError, isTrend, hash }));
yield put(batchRecord({ isSuccess: !fetchError, isTrend, hash }));
};
yield all([loadMangaEffect(), delay(1000)]);
}

yield put(endBatchUpdate());
Expand Down

0 comments on commit 54cf8ab

Please sign in to comment.