Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
1030712
test
armin-bkh Mar 14, 2023
2f8bc02
Merge branch 'dev-v2' of github.com:treejer/mobile into submitTree-test
armin-bkh Mar 14, 2023
dc808a4
- mock packages that used in SelectPlantType page
armin-bkh Mar 25, 2023
33cea47
- BlockedPermissions test
armin-bkh Mar 26, 2023
aa3dbc2
PermissionItem test
armin-bkh Mar 26, 2023
50fb886
- PermissionItem component style updated
armin-bkh Mar 26, 2023
e652741
- SubmissionSettings component
armin-bkh Mar 28, 2023
9d3c28e
- SelectPlantType.test.tsx
armin-bkh Mar 29, 2023
cf5190d
SelectPlantTypeV2
armin-bkh Mar 31, 2023
af7aee5
PermissionItem component v1
armin-bkh Mar 31, 2023
7a87e15
selectPlantType v1
armin-bkh Mar 31, 2023
0f4453c
TreeSubmssionV2 directory
armin-bkh Mar 31, 2023
3c8844c
- SubmitTreeV2 and SelectPlantTypeV2 route name
armin-bkh Mar 31, 2023
eda4fe8
- SelectPlantTypeV2 navigation tests
armin-bkh Mar 31, 2023
666b26a
- SelectPhotoButton disable prop added
armin-bkh Mar 31, 2023
6c14915
- SelectTreeLocation tests updated
armin-bkh Apr 2, 2023
e75dd52
- boxInBoxShadow added to colors
armin-bkh Apr 2, 2023
d5c68e9
- SubmitTreeV2 tests
armin-bkh Apr 2, 2023
7eba5bf
- currentJourney redux module
armin-bkh Apr 5, 2023
06715bf
- SelectOnMapV2 screen
armin-bkh Apr 8, 2023
b7394bb
- currentJourney saga
armin-bkh Apr 10, 2023
f66fcd8
- allCoordsAreExist
armin-bkh Apr 10, 2023
779d00c
- SubmissionButtons
armin-bkh Apr 11, 2023
0c33caf
- disable toggle submission settings after start submission - test
armin-bkh Apr 11, 2023
868d984
- currentJourney: etJourneyFromDrafts action - test
armin-bkh Apr 11, 2023
8750a05
- DraftJourneyModal - test
armin-bkh Apr 12, 2023
ae8f383
- canUpdateJourneyLocation
armin-bkh Apr 12, 2023
d8b693d
- ChangeSettingsAlert: to change settings submission information must…
armin-bkh Apr 15, 2023
dbdb35a
- TreeInventory
armin-bkh Apr 15, 2023
e578720
- Tab Context
armin-bkh Apr 18, 2023
ebf2689
- draftedJourneys
armin-bkh Apr 18, 2023
502767e
- ChangeSettingsAlert
armin-bkh Apr 18, 2023
d7b43d8
- useSearchValue
armin-bkh Apr 18, 2023
8e09309
- iOS configuration
armin-bkh Apr 23, 2023
cfcae75
- TreeListV2
armin-bkh Apr 23, 2023
30c7f52
- config useV1Submission set false
armin-bkh Apr 25, 2023
3a46c63
- useArrayFilter
armin-bkh Apr 29, 2023
d75eb0f
cant plant view in submitTreeV2
armin-bkh Apr 29, 2023
ad66e69
- nest api replaced
armin-bkh May 9, 2023
79b0d69
- Verification version 2
armin-bkh May 15, 2023
f2b6fe9
- submitTreeEvents
armin-bkh May 23, 2023
0514bd4
submit journey loading - test
armin-bkh May 23, 2023
0336569
- submissionUtilsV2.ts
armin-bkh May 23, 2023
7b0104c
- deleteTreeEvent
armin-bkh May 27, 2023
324cc37
- deleteTreeEvent issue fixed
armin-bkh May 27, 2023
a337eea
- TreeListV2 component renamed to SubmittedTreeListV2
armin-bkh Jun 4, 2023
e8cc57c
- plantedTrees
armin-bkh Jun 4, 2023
8c7097b
- TreeItemV2 renamed to SubmittedTreeItemV2
armin-bkh Jun 5, 2023
99f0f88
- tint color for NotVerifiedTreeItem
armin-bkh Jun 5, 2023
ebc6518
- clear journey before navigate to SubmitTreeV2 screen bug fixed
armin-bkh Jun 9, 2023
56d2087
- en updated
armin-bkh Jun 9, 2023
3a428cf
- submittedTrees
armin-bkh Jun 10, 2023
f0fc69c
- planter module - test
armin-bkh Jun 10, 2023
0258aa0
- en updated
armin-bkh Jun 13, 2023
d99fd29
- test updated
armin-bkh Jun 13, 2023
bf2013c
type problems fixed
armin-bkh Jun 13, 2023
518c1f5
- read submitted trees from query
armin-bkh Jun 14, 2023
4b83c5d
- planterTreeQuery filter pending trees
armin-bkh Jun 15, 2023
01a293b
- AlertModalProvider close icon
armin-bkh Jun 16, 2023
d426615
- MapMarkingV2.web
armin-bkh Jun 17, 2023
c7013f1
- android social login deep linking fixed
armin-bkh Jun 18, 2023
657b8da
- pass Promise parameters to plantedTrees, updatedTrees, and assigned…
armin-bkh Jun 18, 2023
ebd8748
- SelectTreePhoto
armin-bkh Jun 18, 2023
3cd6d22
use MapMarkingV2 in verify profile flow
armin-bkh Jun 18, 2023
ed42b52
deploy.sh added
HamedNN76 Jun 18, 2023
261fe41
- toast issue fixed
armin-bkh Jun 20, 2023
059fd07
- usePagination perPage: 30
armin-bkh Jun 20, 2023
bdbe33b
- OptimizedLst
armin-bkh Jun 23, 2023
25220e7
- list pagination bug fixed (web)
armin-bkh Jun 25, 2023
15a500c
ActivityItem web detail
armin-bkh Jun 25, 2023
17dc893
- build android (react-native-inappbrowser-reborn) issue fixed => and…
armin-bkh Jun 26, 2023
3b9245a
- draftedJourneys test updated
armin-bkh Jun 27, 2023
3b586d7
- SelectTreeLocation test updated
armin-bkh Jun 28, 2023
e0c4d31
SelectTreePhoto web functionalities test
armin-bkh Jun 28, 2023
106860e
- disable social login
armin-bkh Jun 30, 2023
4a041cb
PickFromGalleryButton test
armin-bkh Jun 30, 2023
34a7b01
- test new the graph goerli api
armin-bkh Jul 4, 2023
2ac450a
- unused files and directories in v2 removed
armin-bkh Jul 7, 2023
ddbf1f6
components readme updated
armin-bkh Jul 7, 2023
6568cd5
- en updated
armin-bkh Jul 7, 2023
12f6d7d
- version 2.0.0-bata.1
armin-bkh Jul 9, 2023
f548b73
- metadata checking release date added to env
armin-bkh Jul 9, 2023
d793447
- netInfo module test
armin-bkh Jul 11, 2023
24cd8ef
offlineMap module test updated
armin-bkh Jul 12, 2023
9929a0c
offlineMap test issue resolved
armin-bkh Jul 12, 2023
1691b2a
contracts module test
armin-bkh Jul 12, 2023
9561249
- web3 module test
armin-bkh Jul 15, 2023
2d3e176
web3 module test updated
armin-bkh Jul 16, 2023
79fb517
- web3 custom hook and selector functions updated
armin-bkh Jul 16, 2023
8b69001
- show confirmation modal, when the user wants to delete currently in…
armin-bkh Jul 17, 2023
6656af5
ConflictDraftModal test
armin-bkh Jul 17, 2023
fd1a1de
version 2.0.0-beta.2
armin-bkh Jul 24, 2023
4d81bf3
- useKeyboardHeight custom hook
armin-bkh Jul 25, 2023
9fe1f76
useKeyboardBottom styles updated
armin-bkh Jul 25, 2023
5545c51
- userNonce test
armin-bkh Jul 26, 2023
b4e73f5
preload await
armin-bkh Aug 10, 2023
425469e
- magic version upgrade
armin-bkh Aug 10, 2023
62c4da1
pagination test updated
armin-bkh Aug 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,4 @@ REACT_NATIVE_TWITTER_LINK=
REACT_NATIVE_DISCUSSION_LINK=

REACT_NATIVE_GOOGLE_CLOUD_PROJECT_ID=
REACT_NATIVE_METADATA_CHECKING_RELEASE_DATE=
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
'no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'react/react-in-jsx-scope': 'off',
'no-console': 0,
'unused-imports/no-unused-vars': [
'warn',
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ web-build/
.idea/

.env

/coverage/
21 changes: 0 additions & 21 deletions App.tsx

This file was deleted.

3 changes: 2 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0.0"
versionName "2.0.0"
versionNameSuffix "-beta.2"
}

splits {
Expand Down
10 changes: 6 additions & 4 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="com.treejer.ranger"/>
<data android:scheme="https" android:host="ranger.treejer.com" android:pathPrefix="/referrer/"/>
<data android:scheme="https" android:host="ranger.treejer.com" android:pathPrefix="/organization/"/>
<data android:scheme="ranger-treejer"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="ranger-treejer" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false"/>
Expand Down
3 changes: 3 additions & 0 deletions android/app/src/main/assets/custom/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Fonts

> Fonts are in here
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class MainActivity extends ReactActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// Set the theme to AppTheme BEFORE onCreate to support
// Set the theme to AppTheme BEFORE onCreate to support
// coloring the background, status bar, and navigation bar.
// This is required for expo-splash-screen.
setTheme(R.style.AppTheme);
Expand Down
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ buildscript {

// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
androidXBrowser = "1.5.0"
}
repositories {
google()
Expand Down
81 changes: 81 additions & 0 deletions android/link-assets-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"migIndex": 1,
"data": [
{
"path": "assets/fonts/Montserrat-Black.ttf",
"sha1": "96d03479269d1ba7a3e38f4b64ff87ead267c998"
},
{
"path": "assets/fonts/Montserrat-BlackItalic.ttf",
"sha1": "6e84efcb6bf01c47102d6e9f0dbe5958e74c9f20"
},
{
"path": "assets/fonts/Montserrat-Bold.ttf",
"sha1": "3a54407a2b26ff4718708a4726b10cb070d16534"
},
{
"path": "assets/fonts/Montserrat-BoldItalic.ttf",
"sha1": "6acf078ad5e1b77e6d68b8ff0cde39d81b9f057c"
},
{
"path": "assets/fonts/Montserrat-ExtraBold.ttf",
"sha1": "4b5c27dcf59df165606efa247190c0bfa3c02ff0"
},
{
"path": "assets/fonts/Montserrat-ExtraBoldItalic.ttf",
"sha1": "28423e53b60316c09f468055ca8c1d27c06ab45b"
},
{
"path": "assets/fonts/Montserrat-ExtraLight.ttf",
"sha1": "fe3c849af6231af6c5c43d1045f2011bf683f317"
},
{
"path": "assets/fonts/Montserrat-ExtraLightItalic.ttf",
"sha1": "40d3231d668844dab24536fa0c380bdc2311a992"
},
{
"path": "assets/fonts/Montserrat-Italic.ttf",
"sha1": "798c701450f6bc08217f73c1ac569100cddc2947"
},
{
"path": "assets/fonts/Montserrat-Light.ttf",
"sha1": "83879cec4c934d446eca63aa5cfedcebfd60d610"
},
{
"path": "assets/fonts/Montserrat-LightItalic.ttf",
"sha1": "659632ad8a33d96e6a00319d7b0c020e9cc6cc5b"
},
{
"path": "assets/fonts/Montserrat-Medium.ttf",
"sha1": "65a98832079c4d2c67f3acc4f4ce2de630fe6cb0"
},
{
"path": "assets/fonts/Montserrat-MediumItalic.ttf",
"sha1": "ceadac9926836d5fc0ee14f94567f0ea25979fa2"
},
{
"path": "assets/fonts/Montserrat-Regular.ttf",
"sha1": "d25b35242deb1c6ff888b8162ca2aacc356d3899"
},
{
"path": "assets/fonts/Montserrat-SemiBold.ttf",
"sha1": "f829de4c176fb2ccf5e33360920f48de6794434e"
},
{
"path": "assets/fonts/Montserrat-SemiBoldItalic.ttf",
"sha1": "3c2759411b32ad6779aba08e4c09ed1b3c0bc4d4"
},
{
"path": "assets/fonts/Montserrat-Thin.ttf",
"sha1": "1d00ff2f5bc9331aa6e75b5a82dd698976615dc4"
},
{
"path": "assets/fonts/Montserrat-ThinItalic.ttf",
"sha1": "ae19fb168e043e6408692c4bc50dd0aab76fdc22"
},
{
"path": "assets/fonts/README.md",
"sha1": "e40451f9fc81b083aec8b0df5d69f2c15c932a7e"
}
]
}
3 changes: 2 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"expo": {
"name": "RangerTreejer",
"scheme": "ranger-treejer",
"slug": "RangerTreejerV2",
"version": "1.0.0",
"version": "1.0.0-beta.2",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
Expand Down
10 changes: 9 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,20 @@ module.exports = function (api) {
navigation: './src/navigation',
types: './src/types',
'ranger-redux': './src/redux',
'ranger-testUtils': './src/testUtils',
webServices: './src/webServices',
},
},
],
'import-graphql',
'@babel/plugin-proposal-export-namespace-from',
'react-native-reanimated/plugin',
...(process.env.NODE_ENV === 'test'
? [
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-private-methods',
'@babel/plugin-proposal-class-properties',
]
: []),
],
};
};
41 changes: 41 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

# ==> USERNAME and SERVER_IP env variables are needed!!! <==

echo "Start to build web production ..."

yarn web:build

echo "web:prod is done"

SERVER_SSH="$SERVER_USERNAME@$SERVER_IP"
TIME_FOLDER=$(date +'%m-%d-%Y-%H%M')
if
[[ "$PORT" -eq "" || "$PORT" -eq "4000" ]];
then
PORT_LOCAL=4000;
SERVER_FOLDER="/home/deploy/projects/mobiledev-build"
PM2_NAME="dev";
else
PORT_LOCAL=$PORT;
SERVER_FOLDER="/home/deploy/projects/mobile-build"
PM2_NAME="main";
fi
BUILD_TAR_FILE="web-build-$TIME_FOLDER.tar.gz"

echo "Start deploying ranger treejer web to $SERVER_IP on port $PORT_LOCAL"

echo "$(TIME_FOLDER) => Folder for deploying"

tar -zcvf "$BUILD_TAR_FILE" web-build

echo "tar.gz file generated"

scp "$BUILD_TAR_FILE" "$SERVER_SSH:$SERVER_FOLDER/$BUILD_TAR_FILE"

echo "tar.gz successfully copied to server."

rm -rf "$BUILD_TAR_FILE"

SSH_COMMAND="ssh $SERVER_SSH 'cd $SERVER_FOLDER; pm2 delete $PM2_NAME; rm -rf web-build; tar -xvf $BUILD_TAR_FILE; pm2 serve web-build $PORT_LOCAL --name $PM2_NAME;'"
eval "${SSH_COMMAND}"
102 changes: 102 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
.slick-slider,
.slick-slider .slick-list,
.slick-slider .slick-list .slick-track,
.slick-slider .slick-list .slick-track .slick-slide,
.slick-slider .slick-list .slick-track .slick-slide > div,
.slick-slider .slick-list .slick-track .slick-slide > div > div {
height: 100%;
}

body {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: #faf8f0;
}

#root {
max-width: 768px;
margin: auto;
box-shadow: 0 0 40px 4px rgba(0, 0, 0, 0.1);
overflow: hidden;
}

@media all and (min-width: 768px) {
#root {
border-radius: 12px;
}
}

#ranger-web {
min-height: -webkit-fill-available;
min-height: -moz-fill-available;
min-width: -webkit-fill-available;
overflow: hidden;
display: flex;
background-color: #faf8f0;
}

.mapboxgl-ctrl-top-right {
position: fixed !important;
top: auto !important;
right: 1rem !important;
bottom: 10vh !important;
width: 100px !important;
height: 100px !important;
display: none;
}

#ptr-container > div {
height: 100% !important;
}

@media all and (max-height: 677px) {
.mapboxgl-ctrl-top-right {
bottom: 13vh !important;
}
}

.mapboxgl-ctrl-geolocate {
width: 45px !important;
height: 45px !important;
padding: 4px !important;
}

.mapboxgl-ctrl-icon {
background-size: cover;
}

.mapboxgl-ctrl,
.mapboxgl-ctrl-group {
border-radius: 50% !important;
overflow: hidden !important;
}

.mapboxgl-ctrl-bottom-right {
display: none !important;
}

.mapboxgl-ctrl-bottom-left {
display: none !important;
}

input {
outline: none;
}

.Toastify__toast-container--top-right {
top: env(safe-area-inset-top, 1em) !important;
}

@media all and (min-width: 768px) {
.Toastify__toast-container--top-right {
right: calc(100vw - 768px - calc(50vw - 392px));
}
}


#ptr-parent{
width: 100% !important;
}
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties

ENV['RCT_NEW_ARCH_ENABLED'] = podfile_properties['newArchEnabled'] == 'true' ? '1' : '0'

platform :ios, podfile_properties['ios.deploymentTarget'] || '13.0'
platform :ios, '13.0'
install! 'cocoapods',
:deterministic_uuids => false

Expand Down
Loading