Skip to content

Commit

Permalink
Merge pull request #329 from ChildMindInstitute/resetBaseCount
Browse files Browse the repository at this point in the history
🚑 Resolve some breaking changes
  • Loading branch information
binarybottle authored Dec 19, 2019
2 parents 8c5b950 + 17cb9a1 commit d4bc7a7
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]
=======
## [0.9.9][0.9.10] - 2019-12-17
- :lipstick: More invasive notifications

## [0.9.8] - 2019-12-10
### Fixed
- :ambulance: Don't crash if responseDates is undefined
- :ambulance: Don't crash if responseDates is undefined

## [0.9.7] - 2019-12-10
### Updated
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MindLogger 0.9.9
# MindLogger 0.9.10

_Note: v0.1 is deprecated as of June 12, 2019._

Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ android {
applicationId "lab.childmindinstitute.data"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 102
versionName "0.9.9"
versionCode 103
versionName "0.9.10"
ndk {
abiFilters "arm64-v8a", "x86_64", "armeabi-v7a", "x86"
}
Expand Down
10 changes: 5 additions & 5 deletions app/setup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Platform } from 'react-native';
import { Platform, PushNotificationIOS } from 'react-native';
import { Provider } from 'react-redux';
import { Root } from 'native-base';
import { Actions } from 'react-native-router-flux';
Expand All @@ -13,17 +13,17 @@ import { setCurrentActivity, setCurrentApplet } from './state/app/app.actions';
import { startFreshResponse } from './state/responses/responses.thunks';
import { currentAppletSelector } from './state/app/app.selectors';

const resetBaseCount = () => {
PushNotificationIOS.setApplicationIconBadgeNumber(0)
}

const checkAuthToken = (store) => {
const state = store.getState();
if (state.user.auth === null) {
store.dispatch(clearUser()); // Just in case
return false;
}

const resetBaseCount = () => {
PushNotificationIOS.setApplicationIconBadgeNumber(0)
}

const authExpiration = moment(state.user.auth.expires);
if (moment().isAfter(authExpiration)) {
store.dispatch(clearUser()); // Auth token expired
Expand Down
4 changes: 2 additions & 2 deletions ios/MDCApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.9.9</string>
<string>0.9.10</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>102</string>
<string>103</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MindLogger",
"version": "0.9.9",
"version": "0.9.10",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
Expand Down Expand Up @@ -108,4 +108,4 @@
"react-native",
"stage-0"
]
}
}

0 comments on commit d4bc7a7

Please sign in to comment.