Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit 7edc81e

Browse files
Merge tag '1.4.8' into develop
no message
2 parents ee975d7 + 8964d63 commit 7edc81e

File tree

10 files changed

+141
-80
lines changed

10 files changed

+141
-80
lines changed

android/app/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ android {
157157
applicationId "org.pftp"
158158
minSdkVersion rootProject.ext.minSdkVersion
159159
targetSdkVersion rootProject.ext.targetSdkVersion
160-
versionCode 50
161-
versionName "1.4.7"
160+
versionCode 53
161+
versionName "1.4.8"
162162
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
163163
if (isNewArchitectureEnabled()) {
164164
// We configure the NDK build only if you decide to opt-in for the New Architecture.
@@ -290,8 +290,9 @@ android {
290290
def versionCodes = ["armeabi-v7a": 5, "x86": 6, "arm64-v8a": 7, "x86_64": 8]
291291
def abi = output.getFilter(OutputFile.ABI)
292292
if (abi != null) { // null for the universal-debug, universal-release variants
293-
output.versionCodeOverride =
294-
defaultConfig.versionCode * 1000 + versionCodes.get(abi)
293+
output.versionCodeOverride = versionCodes.get(abi) * 10000 + defaultConfig.versionCode
294+
} else {
295+
output.versionCodeOverride = 9 * 100000 + defaultConfig.versionCode
295296
}
296297
}
297298
}

app/components/EditUserProfile/index.native.js

Lines changed: 55 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ export default class EditUserProfile extends Component {
6060
key: 'desc',
6161
title: i18n.t('label.description')
6262
},
63+
{
64+
key: 'security',
65+
title: i18n.t('label.profile_security')
66+
},
6367
/* disabled functionality at July 16th
64-
{
65-
key: 'security',
66-
title: i18n.t('label.profile_security')
67-
},
6868
{
6969
key: 'following',
7070
title: i18n.t('label.subscribed')
@@ -184,44 +184,44 @@ export default class EditUserProfile extends Component {
184184
treeCounter.followeeIds &&
185185
this.props.followeeList &&
186186
this.props.followeeList.length > 0 ? (
187-
<View>
188-
{this.props.followeeList.map(follow => (
189-
<View key={follow.id} style={styles.followerRow}>
190-
<UserProfileImage
191-
profileImage={follow.userProfile.image}
192-
/>
193-
<TouchableItem
194-
style={styles.followerCol}
195-
onPress={() => {
196-
setTimeout(() => {
197-
this.props.navigation.navigate(
198-
getLocalRoute('app_treecounter'),
199-
{
200-
treeCounterId: follow.id,
201-
titleParam: follow.displayName
202-
}
203-
);
204-
}, 0);
205-
}}
206-
>
207-
<Text>{follow.displayName}</Text>
208-
</TouchableItem>
187+
<View>
188+
{this.props.followeeList.map(follow => (
189+
<View key={follow.id} style={styles.followerRow}>
190+
<UserProfileImage
191+
profileImage={follow.userProfile.image}
192+
/>
193+
<TouchableItem
194+
style={styles.followerCol}
195+
onPress={() => {
196+
setTimeout(() => {
197+
this.props.navigation.navigate(
198+
getLocalRoute('app_treecounter'),
199+
{
200+
treeCounterId: follow.id,
201+
titleParam: follow.displayName
202+
}
203+
);
204+
}, 0);
205+
}}
206+
>
207+
<Text>{follow.displayName}</Text>
208+
</TouchableItem>
209209

210-
<FollowLabelButton
211-
label={i18n.t('label.unsubscribe')}
212-
isSubscribed
213-
onClick={() => {
214-
this.props.unfollowUser(follow.id);
215-
}}
216-
/>
217-
</View>
218-
))}
219-
</View>
220-
) : this.props.followeeList ? (
221-
<Text>{i18n.t('label.not_following_anybody')}</Text>
222-
) : (
223-
<LoadingIndicator contentLoader screen="profileLoader" />
224-
)}
210+
<FollowLabelButton
211+
label={i18n.t('label.unsubscribe')}
212+
isSubscribed
213+
onClick={() => {
214+
this.props.unfollowUser(follow.id);
215+
}}
216+
/>
217+
</View>
218+
))}
219+
</View>
220+
) : this.props.followeeList ? (
221+
<Text>{i18n.t('label.not_following_anybody')}</Text>
222+
) : (
223+
<LoadingIndicator contentLoader screen="profileLoader" />
224+
)}
225225
</ScrollView>
226226
</CardLayout>
227227
);
@@ -391,6 +391,7 @@ class SecurityTabView extends React.PureComponent {
391391
const { emailButtonPress, changPassworsdButtonPress } = this.state;
392392
return (
393393
<KeyboardAwareScrollView enableOnAndroid>
394+
{/* disabled functionality at July 23th 2022
394395
<CardLayout style={{ flex: 1 }}>
395396
<View {...this.props}>
396397
<Form
@@ -461,6 +462,19 @@ class SecurityTabView extends React.PureComponent {
461462
{i18n.t('label.delete_profile')}
462463
</PrimaryButton>
463464
</CardLayout>
465+
*/}
466+
<CardLayout style={{ flex: 1 }}>
467+
<PrimaryButton
468+
buttonStyle={styles.deleteProfileButton}
469+
onClick={() => {
470+
this.props.navigation.navigate('delete_profile_confirm', {
471+
deleteProfile: this.props.deleteProfile
472+
});
473+
}}
474+
>
475+
{i18n.t('label.delete_profile')}
476+
</PrimaryButton>
477+
</CardLayout>
464478
</KeyboardAwareScrollView>
465479
);
466480
}

app/components/Redemption/index.native.js

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
} from 'react-native';
1717
import { TextField } from 'react-native-material-textfield';
1818
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
19-
// import { SafeAreaView } from 'react-navigation';
19+
import { SafeAreaView } from 'react-navigation';
2020
import { Formik } from 'formik';
2121
import { updateStaticRoute } from '../../helpers/routerHelper';
2222
import HeaderNew from './../Header/HeaderNew.native';
@@ -66,9 +66,18 @@ export default function Redemption(props) {
6666

6767
const lockedButton = 'rgba(137, 181, 58, 0.19)';
6868

69+
const style = {
70+
backgroundColor: "white",
71+
flex: 1,
72+
padding: 20,
73+
flex: 1,
74+
justifyContent: "center",
75+
alignItems: "center"
76+
};
77+
6978
return (
79+
/*
7080
<View style={styles.mainContainer}>
71-
{/* <View style={styles.mainContainer}> */}
7281
<HeaderNew title={''} navigation={props.navigation} />
7382
<Formik
7483
initialValues={{
@@ -247,8 +256,33 @@ export default function Redemption(props) {
247256
</>
248257
)}
249258
</Formik>
250-
{/* </View> */}
251259
</View>
260+
*/
261+
<SafeAreaView style={{ flex: 1, backgroundColor: colors.WHITE }}>
262+
<HeaderNew
263+
navigation={props.navigation}
264+
title={i18n.t('label.redeem_trees')}
265+
/>
266+
<View style={style}>
267+
<View style={{ paddingBottom: 20 }}>
268+
<Image
269+
source={require("../../assets/images/gifts.png")}
270+
style={{ width: 220, height: 220 }}
271+
/>
272+
</View>
273+
274+
<Text
275+
style={{
276+
fontSize: 16,
277+
color: "#4d5153",
278+
fontFamily: "OpenSans-Regular",
279+
textAlign: "center"
280+
}}
281+
>
282+
{i18n.t("label.changed_challenge_workflow")}
283+
</Text>
284+
</View>
285+
</SafeAreaView>
252286
);
253287
}
254288

app/containers/Navigators/AppDrawerNavigatorContainer.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,8 @@ import { loadUserProfile } from '../../actions/loadUserProfileAction';
99
import { currentUserProfileSelector } from '../../selectors';
1010
import LoadingIndicator from '../../components/Common/LoadingIndicator';
1111
import { View } from 'react-native';
12-
import EStyleSheet from 'react-native-extended-stylesheet';
1312
import { fetchpledgeEventsAction } from '../../actions/pledgeEventsAction';
14-
EStyleSheet.build({
15-
// always call EStyleSheet.build() even if you don't use global variables!
16-
$primary: '#b9d384',
17-
$textColor: '#686060',
18-
$placeholderColor: '#e9e9e9',
19-
$colorPrimary: '#b7d37f',
20-
$colorPrimaryDark: '#b7d37f',
21-
$colorPrimaryAccent: '#e86f56',
22-
$colorPrimaryAccentLight: '#ec6453',
23-
$borderColor: '#aba2a2',
24-
$inputBorderColor: '#dad7d7',
25-
$backgroundScreen: '#f1f1f1',
26-
$colorError: '#ff0033',
27-
$colorRedeemBorder: '#9fc356',
28-
$colorRedeemInside: '#f5fbe8',
29-
$cardTextColor: '#686060',
30-
$lightTextColor: '#9c9b9b',
3113

32-
$newPrimary: '#89b53a',
33-
$greyColor: '#d3d3d3'
34-
});
3514

3615
class AppDrawerNavigatorContainer extends Component {
3716
_AppNavigator = undefined;

index.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { AppRegistry } from 'react-native';
22
import App from './app/components/App';
3-
4-
/* app.js */
53
import EStyleSheet from 'react-native-extended-stylesheet';
64

75
// import {
@@ -20,9 +18,21 @@ EStyleSheet.build({
2018
$colorPrimary: '#b7d37f',
2119
$colorPrimaryDark: '#b7d37f',
2220
$colorPrimaryAccent: '#e86f56',
23-
$colorPrimaryAccentLight: '#ec6453'
21+
$colorPrimaryAccentLight: '#ec6453',
22+
$borderColor: '#aba2a2',
23+
$inputBorderColor: '#dad7d7',
24+
$backgroundScreen: '#f1f1f1',
25+
$colorError: '#ff0033',
26+
$colorRedeemBorder: '#9fc356',
27+
$colorRedeemInside: '#f5fbe8',
28+
$cardTextColor: '#686060',
29+
$lightTextColor: '#9c9b9b',
30+
31+
$newPrimary: '#89b53a',
32+
$greyColor: '#d3d3d3'
2433
});
2534

35+
2636
// const customTextProps = {
2737
// style: {
2838
// fontFamily: Platform.OS === 'ios' ? 'HelveticaNeue' : 'Roboto'

index.native.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,32 @@
11
import { AppRegistry } from 'react-native';
22
import 'react-native-get-random-values';
33
import App from './app/components/App';
4+
import EStyleSheet from 'react-native-extended-stylesheet';
45
import './ReactotronConfig';
56
import { name as appName } from './app.json';
67

8+
EStyleSheet.build({
9+
// always call EStyleSheet.build() even if you don't use global variables!
10+
$primary: '#b9d384',
11+
$textColor: '#686060',
12+
$placeholderColor: '#e9e9e9',
13+
$colorPrimary: '#b7d37f',
14+
$colorPrimaryDark: '#b7d37f',
15+
$colorPrimaryAccent: '#e86f56',
16+
$colorPrimaryAccentLight: '#ec6453',
17+
$borderColor: '#aba2a2',
18+
$inputBorderColor: '#dad7d7',
19+
$backgroundScreen: '#f1f1f1',
20+
$colorError: '#ff0033',
21+
$colorRedeemBorder: '#9fc356',
22+
$colorRedeemInside: '#f5fbe8',
23+
$cardTextColor: '#686060',
24+
$lightTextColor: '#9c9b9b',
25+
26+
$newPrimary: '#89b53a',
27+
$greyColor: '#d3d3d3'
28+
});
29+
730
console.disableYellowBox = true;
831
console.ignoredYellowBox = ['Warning: Each', 'Warning: Failed'];
932
//GLOBAL.XMLHttpRequest = GLOBAL.originalXMLHttpRequest || GLOBAL.XMLHttpRequest;

ios/TreecounterApp.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@
687687
CODE_SIGN_ENTITLEMENTS = TreecounterApp/TreecounterApp.entitlements;
688688
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
689689
CODE_SIGN_STYLE = Automatic;
690-
CURRENT_PROJECT_VERSION = 40;
690+
CURRENT_PROJECT_VERSION = 44;
691691
DEAD_CODE_STRIPPING = YES;
692692
DEVELOPMENT_TEAM = UYRJ8SA699;
693693
ENABLE_BITCODE = NO;
@@ -698,7 +698,7 @@
698698
INFOPLIST_PREFIX_HEADER = "${BUILD_DIR}/GeneratedInfoPlistDotEnv.h";
699699
INFOPLIST_PREPROCESS = YES;
700700
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
701-
MARKETING_VERSION = 1.49.57;
701+
MARKETING_VERSION = 1.49.58;
702702
OTHER_LDFLAGS = (
703703
"$(inherited)",
704704
"-ObjC",
@@ -725,7 +725,7 @@
725725
CODE_SIGN_ENTITLEMENTS = TreecounterApp/TreecounterApp.entitlements;
726726
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
727727
CODE_SIGN_STYLE = Automatic;
728-
CURRENT_PROJECT_VERSION = 40;
728+
CURRENT_PROJECT_VERSION = 44;
729729
DEAD_CODE_STRIPPING = YES;
730730
DEVELOPMENT_TEAM = UYRJ8SA699;
731731
HEADER_SEARCH_PATHS = "$(inherited)";
@@ -734,7 +734,7 @@
734734
INFOPLIST_PREFIX_HEADER = "${BUILD_DIR}/GeneratedInfoPlistDotEnv.h";
735735
INFOPLIST_PREPROCESS = YES;
736736
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
737-
MARKETING_VERSION = 1.49.57;
737+
MARKETING_VERSION = 1.49.58;
738738
OTHER_LDFLAGS = (
739739
"$(inherited)",
740740
"-ObjC",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "treecounterapp",
3-
"version": "1.4.7",
3+
"version": "1.4.8",
44
"build": "1",
55
"private": true,
66
"scripts": {

release/upload-native-source-maps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ react-native bundle \
4444
# For now we have to set this manually here with every release :-(
4545
bugsnag-source-maps upload-react-native \
4646
--api-key "$BUGSNAG_API_KEY" \
47-
--app-version "1.49.57" \
47+
--app-version "1.49.58" \
4848
--platform ios \
4949
--source-map ios-release.bundle.map \
5050
--bundle ios-release.bundle

0 commit comments

Comments
 (0)