Skip to content

Commit

Permalink
Merge pull request #8 from markxoe/development
Browse files Browse the repository at this point in the history
Version 0.13.3
  • Loading branch information
markxoe authored Jan 20, 2021
2 parents eb65162 + 52fb1ea commit 18a80e5
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 20 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "org.toastbrot.ichbineinebienemobile"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 27
versionName "0.13.2"
versionCode 28
versionName "0.13.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
8 changes: 4 additions & 4 deletions ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,12 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 21;
CURRENT_PROJECT_VERSION = 22;
DEVELOPMENT_TEAM = 7BZBLBDUSX;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 0.13.2;
MARKETING_VERSION = 0.13.3;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
PRODUCT_BUNDLE_IDENTIFIER = org.toastbrot.ichbineinebienemobile;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -375,12 +375,12 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 21;
CURRENT_PROJECT_VERSION = 22;
DEVELOPMENT_TEAM = 7BZBLBDUSX;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 0.13.2;
MARKETING_VERSION = 0.13.3;
PRODUCT_BUNDLE_IDENTIFIER = org.toastbrot.ichbineinebienemobile;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = USE_PUSH;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ichbineinebiene-mobile",
"version": "0.13.2",
"version": "0.13.3",
"private": true,
"dependencies": {
"@capacitor-community/firebase-analytics": "^0.2.0",
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Mark Oude Elberink

## Changelog

### [0.13.3] More Infinity :recycle:

- Bug fixes

### [0.13.2] More Infinity :recycle:

- Bug fixes
Expand Down
4 changes: 2 additions & 2 deletions src/other/release-notes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"header": "Version 0.13.2",
"message": "0.13.2 More Infinity<br/>Bug fixes"
"header": "Version 0.13.3",
"message": "0.13.3 More Infinity<br/>Bug fixes"
}
39 changes: 30 additions & 9 deletions src/pages/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,35 @@ const PageSettings: React.FC = () => {
});
};

const advancedSettingsActivate = (event: any) => {
const cancel = () => {
generateToast("Zurzeit Deaktiviert", 5000, true);
event.detail.complete();
};
fetch(
(process.env.react_app_apiurl ??
"https://api.ichbineinebiene.toastbrot.org") +
"/api/v1/settings/get/advancedActivated"
)
.then((r) => r.json())
.then((r) => {
if (r.result.content === "yes") {
Firebase.logEvent({
name: "SettingsAdvancedActivated",
params: {},
}).catch(() => {});
uploadEvent(state, { type: "AdvancedActivated" });
setTimeout(() => {
setAdvancedSettings(true);
event.detail.complete();
}, 2000);
} else {
cancel();
}
})
.catch(() => cancel());
};

return (
<IonPage>
<IonHeader translucent>
Expand All @@ -125,15 +154,7 @@ const PageSettings: React.FC = () => {
slot="fixed"
pullMin={200}
onIonRefresh={(event) => {
Firebase.logEvent({
name: "SettingsAdvancedActivated",
params: {},
}).catch(() => {});
uploadEvent(state, { type: "AdvancedActivated" });
setTimeout(() => {
setAdvancedSettings(true);
event.detail.complete();
}, 5000);
advancedSettingsActivate(event);
}}>
<IonRefresherContent
pullingIcon={flashOutline}
Expand Down
2 changes: 1 addition & 1 deletion src/store/Loader-Saver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { generateToast } from "../globals";
const Firebase = Plugins.FirebaseAnalytics as FirebaseAnalyticsPlugin;

export const LoaderAndSaver: React.FC = ({ children }) => {
const { dispatch, state } = React.useContext(AppContext);
useEffect(() => {
if (!state.dataLoadedFromMemory)
Storage.get({ key: StoreKeyPrefix + "state" }).then(async (result) => {
Expand Down Expand Up @@ -47,7 +48,6 @@ export const LoaderAndSaver: React.FC = ({ children }) => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

const { dispatch, state } = React.useContext(AppContext);
useEffect(() => {
if (state.dataLoadedFromMemory) saveState(state, dispatch);
}, [state, dispatch]);
Expand Down

0 comments on commit 18a80e5

Please sign in to comment.