-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d55fa87
Showing
34 changed files
with
23,128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Dependabot configuration: | ||
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: | | ||
curl -L https://github.com/Project-Env/project-env-shell/releases/download/v2.1.0/project-env-shell-linux-amd64 -o project-env-cli | ||
chmod +x ./project-env-cli | ||
./project-env-cli refresh --config-file=project-env.yml --output-template=github-actions.peb --output-file=github-actions-env.sh | ||
./github-actions-env.sh | ||
- run: | | ||
npm ci | ||
npx expo publish --non-interactive | ||
env: | ||
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.tools | ||
.project-env | ||
node_modules | ||
.idea | ||
.expo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Grew-Buddy" type="ReactNative" factoryName="React Native"> | ||
<node-interpreter value="project" /> | ||
<react-native value="$PROJECT_DIR$/node_modules/react-native" /> | ||
<platform value="IOS" /> | ||
<envs /> | ||
<only-packager /> | ||
<build-and-launch value="false" /> | ||
<browser value="98ca6316-2f89-46d9-a9e5-fa9e2b0625b3" /> | ||
<debug-port value="19000" /> | ||
<method v="2" /> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import React, {useState} from 'react'; | ||
import * as eva from '@eva-design/eva'; | ||
import {ApplicationProvider, IconRegistry, Layout} from '@ui-kitten/components'; | ||
import {EvaIconsPack} from '@ui-kitten/eva-icons'; | ||
import {NavigationContainer} from "@react-navigation/native"; | ||
import GrowBuddyDatabaseService from "./src/services/database/GrowBuddyDatabaseService"; | ||
import AppLoading from "expo-app-loading"; | ||
import {AppearanceProvider, useColorScheme} from "react-native-appearance"; | ||
import {SafeAreaView, StatusBar} from "react-native"; | ||
import DefaultStack from "./src/stacks/default/DefaultStack"; | ||
|
||
export default () => { | ||
return ( | ||
<AppearanceProvider> | ||
<App/> | ||
</AppearanceProvider> | ||
); | ||
} | ||
|
||
const App = () => { | ||
|
||
const colorScheme = useColorScheme(); | ||
const themeStatusBarStyle = colorScheme === 'light' ? 'dark-content' : 'light-content'; | ||
|
||
const [initialized, setInitialized] = useState(false); | ||
|
||
const initialize = async () => { | ||
await GrowBuddyDatabaseService.migrateDatabase(); | ||
} | ||
|
||
if (!initialized) { | ||
return ( | ||
<AppLoading | ||
startAsync={initialize} | ||
onFinish={() => setInitialized(true)} | ||
onError={(error) => console.log(error)} | ||
/> | ||
); | ||
} | ||
|
||
return ( | ||
<NavigationContainer> | ||
<StatusBar barStyle={themeStatusBarStyle}/> | ||
<IconRegistry icons={EvaIconsPack}/> | ||
<ApplicationProvider {...eva} theme={colorScheme === 'dark' ? eva.dark : eva.light}> | ||
<Layout style={{flex: 1}}> | ||
<SafeAreaView style={{flex: 1}}> | ||
<DefaultStack/> | ||
</SafeAreaView> | ||
</Layout> | ||
</ApplicationProvider> | ||
</NavigationContainer> | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export default { | ||
name: "Grow-Buddy", | ||
slug: "grow-buddy", | ||
version: process.env.GROW_BUDDY_VERSION || 'dev', | ||
orientation: "portrait", | ||
icon: "./assets/icon.png", | ||
splash: { | ||
image: "./assets/splash.png", | ||
resizeMode: "contain", | ||
backgroundColor: "#ffffff" | ||
}, | ||
userInterfaceStyle: "automatic", | ||
updates: { | ||
fallbackToCacheTimeout: 0 | ||
}, | ||
assetBundlePatterns: [ | ||
"**/*" | ||
], | ||
ios: { | ||
supportsTablet: true | ||
}, | ||
android: { | ||
adaptiveIcon: { | ||
foregroundImage: "./assets/adaptive-icon.png", | ||
backgroundColor: "#FFFFFF" | ||
} | ||
}, | ||
web: { | ||
favicon: "./assets/favicon.png" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = function(api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
}; | ||
}; |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.