Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
repolevedavaj committed Apr 2, 2021
0 parents commit d55fa87
Show file tree
Hide file tree
Showing 34 changed files with 23,128 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
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"
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
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 }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.tools
.project-env
node_modules
.idea
.expo
13 changes: 13 additions & 0 deletions .run/Grew-Buddy.run.xml
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>
55 changes: 55 additions & 0 deletions App.tsx
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>
)

}
31 changes: 31 additions & 0 deletions app.config.ts
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"
}
}
Binary file added assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 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.
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions babel.config.js
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 added etc/logo/grow-buddy.afdesign
Binary file not shown.
Binary file added etc/logo/plant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d55fa87

Please sign in to comment.