master
Ernest Litvinenko 2024-06-26 23:24:26 +03:00
parent 85d45e009b
commit 4fc94170d9
83 changed files with 2383 additions and 167 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
ANDROID_HOME=/Users/ernestlitvinenko/Library/Android/sdk

40
.gitignore vendored
View File

@ -35,3 +35,43 @@ yarn-error.*
*.tsbuildinfo *.tsbuildinfo
.idea/ .idea/
# @generated expo-cli sync-b5df6a44d8735348b729920a7406b633cfb74d4c
# The following patterns were generated by expo-cli
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
# dependencies
node_modules/
# Expo
.expo/
dist/
web-build/
# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
# Metro
.metro-health-check*
# debug
npm-debug.*
yarn-debug.*
yarn-error.*
# macOS
.DS_Store
*.pem
# local env files
.env*.local
# typescript
*.tsbuildinfo
# @end expo-cli

115
App.js
View File

@ -1,17 +1,29 @@
import {StyleSheet, View} from 'react-native'; import {StyleSheet, View} from 'react-native';
import {NavigationContainer} from "@react-navigation/native"; import {NavigationContainer, useNavigation} from "@react-navigation/native";
import 'react-native-gesture-handler'; import 'react-native-gesture-handler';
import {createStackNavigator} from "@react-navigation/stack"; import {createStackNavigator} from "@react-navigation/stack";
import Home from "./screens/home"; import Home from "./screens/home";
import Login from "./screens/login"; import Login from "./screens/login";
import Event from "./screens/event"; import Event from "./screens/event";
import Notification from "./screens/notfication";
import {createBottomTabNavigator} from "@react-navigation/bottom-tabs"; import {createBottomTabNavigator} from "@react-navigation/bottom-tabs";
import Database from './db'
import TaskIconActive from "./assets/taskIconActive.svg"; import TaskIconActive from "./assets/taskIconActive.svg";
import TaskIcon from "./assets/taskIconInactive.svg" import TaskIcon from "./assets/taskIconInactive.svg"
import NotificationIconActive from "./assets/notificationActive.svg"; import NotificationIconActive from "./assets/notificationActive.svg";
import NotificationIconInactive from './assets/notificationInactive.svg' import NotificationIconInactive from './assets/notificationInactive.svg'
import InputScreen from "./screens/InputScreen";
import TaskStore, {getTasks} from "./store/taskStore";
import {useSnapshot} from "valtio";
import {useEffect} from "react";
import {getSubtasks} from "./store/subtaskStore";
import NotificationStore, {getNotifications} from "./store/notificationStore";
import {getEvents} from "./store/eventStore";
const generateTabBarIcon = ({focused, style}) => { const generateTabBarIcon = ({focused, style}) => {
const styles = { const styles = {
taskIcon: { taskIcon: {
@ -33,44 +45,83 @@ const Stack = createStackNavigator();
const Tab = createBottomTabNavigator(); const Tab = createBottomTabNavigator();
const HomeStack = () => ( const HomeStack = () => {
<Stack.Navigator initialRouteName={"Home"} screenOptions={{headerShown: false}}>
<Stack.Screen name="Login" component={Login}/>
<Stack.Screen name="Home" component={Home}/>
<Stack.Screen name="Event" component={Event}/>
</Stack.Navigator>
) return (<Stack.Navigator initialRouteName={"Home"} screenOptions={{headerShown: false}}>
<Stack.Screen name="Home" component={Home}/>
<Stack.Screen name="Event" component={Event}/>
<Stack.Screen name="InputEvent" component={() => <InputScreen title={'Добавить событие'}/>}/>
</Stack.Navigator>
)
}
const MainNavigator = () => {
const {newTaskBadge} = useSnapshot(TaskStore)
const {newNotificationBadge} = useSnapshot(NotificationStore)
return (
<Tab.Navigator initialRouteName={"HomeStack"} screenOptions={{
headerShown: false,
tabBarActiveTintColor: '#E5352D',
tabBarInactiveTintColor: "rgba(100, 101, 103, 0.5)",
tabBarLabelStyle: {fontSize: 10, fontWeight: "bold"}
}}>
<Tab.Screen name="HomeStack" component={HomeStack} options={{
tabBarLabel: "Задания",
tabBarIcon: ({focused}) => generateTabBarIcon({focused, style: "taskIcon"}),
tabBarBadge: newTaskBadge === 0 ? undefined : newTaskBadge,
}}/>
<Tab.Screen name="Notification"
component={Notification}
options={
{
tabBarLabel: "Уведомления",
tabBarIcon: ({focused}) => generateTabBarIcon({
focused,
style: "notificationIcon"
}),
tabBarBadge: newNotificationBadge === 0 ? undefined : newNotificationBadge
}
}
/>
</Tab.Navigator>)
}
const LoginStack = () => {
return (
<Stack.Navigator initialRouteName={"Login"} screenOptions={{headerShown: false}}>
<Stack.Screen name={"login"} component={Login}></Stack.Screen>
<Stack.Screen name={"MainNavigator"} component={MainNavigator} />
</Stack.Navigator>)
}
export default function App() { export default function App() {
useEffect(() => {
// All preloaded data
// todo this functions should be called
// background process
getTasks(); // todo check to be sync
getSubtasks();
getNotifications();
getEvents()
setInterval(getTasks, 10000)
setInterval(getSubtasks, 10000)
setInterval(getNotifications, 10000)
setInterval(getEvents, 10000)
}, []);
return ( return (
<View style={styles.container}> <View style={styles.container}>
<NavigationContainer> <NavigationContainer>
<Tab.Navigator initialRouteName={"HomeStack"} screenOptions={{ <LoginStack/>
headerShown: false,
tabBarActiveTintColor: '#E5352D',
tabBarInactiveTintColor: "rgba(100, 101, 103, 0.5)",
tabBarLabelStyle: {fontSize: 10, fontWeight: "bold"}
}}>
<Tab.Screen name="HomeStack" component={HomeStack} options={{
tabBarLabel: "Задания",
tabBarIcon: ({focused}) => generateTabBarIcon({focused, style: "taskIcon"})
}}/>
<Tab.Screen name="Notification"
component={() => <View></View>}
options={
{
tabBarLabel: "Уведомления",
tabBarIcon: ({focused}) => generateTabBarIcon({
focused,
style: "notificationIcon"
})
}
}
/>
</Tab.Navigator>
</NavigationContainer> </NavigationContainer>
</View> </View>
); );

15
android/.gitignore vendored Normal file
View File

@ -0,0 +1,15 @@
# OSX
#
.DS_Store
# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof
# Bundle artifacts
*.jsbundle

180
android/app/build.gradle Normal file
View File

@ -0,0 +1,180 @@
apply plugin: "com.android.application"
apply plugin: "com.facebook.react"
def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath()
/**
* This is the configuration block to customize your React Native Android app.
* By default you don't need to apply any configuration, just uncomment the lines you need.
*/
react {
entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android", "absolute"].execute(null, rootDir).text.trim())
reactNativeDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc"
codegenDir = new File(["node", "--print", "require.resolve('@react-native/codegen/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
// Use Expo CLI to bundle the app, this ensures the Metro config
// works correctly with Expo projects.
cliFile = new File(["node", "--print", "require.resolve('@expo/cli')"].execute(null, rootDir).text.trim())
bundleCommand = "export:embed"
/* Folders */
// The root of your project, i.e. where "package.json" lives. Default is '..'
// root = file("../")
// The folder where the react-native NPM package is. Default is ../node_modules/react-native
// reactNativeDir = file("../node_modules/react-native")
// The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
// codegenDir = file("../node_modules/@react-native/codegen")
/* Variants */
// The list of variants to that are debuggable. For those we're going to
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
// If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
// debuggableVariants = ["liteDebug", "prodDebug"]
/* Bundling */
// A list containing the node command and its flags. Default is just 'node'.
// nodeExecutableAndArgs = ["node"]
//
// The path to the CLI configuration file. Default is empty.
// bundleConfig = file(../rn-cli.config.js)
//
// The name of the generated asset file containing your JS bundle
// bundleAssetName = "MyApplication.android.bundle"
//
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
// entryFile = file("../js/MyApplication.android.js")
//
// A list of extra flags to pass to the 'bundle' commands.
// See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
// extraPackagerArgs = []
/* Hermes Commands */
// The hermes compiler command to run. By default it is 'hermesc'
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
//
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
// hermesFlags = ["-O", "-output-source-map"]
}
/**
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
*/
def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInReleaseBuilds') ?: false).toBoolean()
/**
* The preferred build flavor of JavaScriptCore (JSC)
*
* For example, to use the international variant, you can use:
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
*
* The international variant includes ICU i18n library and necessary data
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
* give correct results when using with locales other than en-US. Note that
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'org.webkit:android-jsc:+'
android {
ndkVersion rootProject.ext.ndkVersion
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.ernestlitvinenko.transporterapp'
defaultConfig {
applicationId 'com.ernestlitvinenko.transporterapp'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0.0"
buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString())
}
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
}
// Apply static values from `gradle.properties` to the `android.packagingOptions`
// Accepts values in comma delimited lists, example:
// android.packagingOptions.pickFirsts=/LICENSE,**/picasa.ini
["pickFirsts", "excludes", "merges", "doNotStrip"].each { prop ->
// Split option: 'foo,bar' -> ['foo', 'bar']
def options = (findProperty("android.packagingOptions.$prop") ?: "").split(",");
// Trim all elements in place.
for (i in 0..<options.size()) options[i] = options[i].trim();
// `[] - ""` is essentially `[""].filter(Boolean)` removing all empty strings.
options -= ""
if (options.length > 0) {
println "android.packagingOptions.$prop += $options ($options.length)"
// Ex: android.packagingOptions.pickFirsts += '**/SCCS/**'
options.each {
android.packagingOptions[prop] += it
}
}
}
dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";
def frescoVersion = rootProject.ext.frescoVersion
// If your app supports Android versions before Ice Cream Sandwich (API level 14)
if (isGifEnabled || isWebpEnabled) {
implementation("com.facebook.fresco:fresco:${frescoVersion}")
implementation("com.facebook.fresco:imagepipeline-okhttp3:${frescoVersion}")
}
if (isGifEnabled) {
// For animated gif support
implementation("com.facebook.fresco:animated-gif:${frescoVersion}")
}
if (isWebpEnabled) {
// For webp support
implementation("com.facebook.fresco:webpsupport:${frescoVersion}")
if (isWebpAnimatedEnabled) {
// Animated webp support
implementation("com.facebook.fresco:animated-webp:${frescoVersion}")
}
}
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
exclude group:'com.squareup.okhttp3', module:'okhttp'
}
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
} else {
implementation jscFlavor
}
}
apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
applyNativeModulesAppBuildGradle(project)

BIN
android/app/debug.keystore Normal file

Binary file not shown.

18
android/app/proguard-rules.pro vendored Normal file
View File

@ -0,0 +1,18 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# react-native-reanimated
-keep class com.swmansion.reanimated.** { *; }
-keep class com.facebook.react.turbomodule.** { *; }
# Add any project specific keep options here:
# @generated begin expo-build-properties - expo prebuild (DO NOT MODIFY)
-keep class com.nozbe.watermelondb.** { *; }
# @generated end expo-build-properties

View File

@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" tools:replace="android:usesCleartextTraffic" />
</manifest>

View File

@ -0,0 +1,90 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.ernestlitvinenko.transporterapp;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
import com.facebook.flipper.android.utils.FlipperUtils;
import com.facebook.flipper.core.FlipperClient;
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
import com.facebook.flipper.plugins.inspector.DescriptorMapping;
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
import com.facebook.react.ReactInstanceEventListener;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.modules.network.NetworkingModule;
import okhttp3.OkHttpClient;
import com.facebook.flipper.plugins.databases.impl.SqliteDatabaseDriver;
import com.facebook.flipper.plugins.databases.impl.SqliteDatabaseProvider;
import java.io.File;
import java.util.List;
import java.util.ArrayList;
/**
* Class responsible of loading Flipper inside your React Native application. This is the debug
* flavor of it. Here you can add your own plugins and customize the Flipper setup.
*/
public class ReactNativeFlipper {
public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
if (FlipperUtils.shouldEnableFlipper(context)) {
final FlipperClient client = AndroidFlipperClient.getInstance(context);
client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
client.addPlugin(new DatabasesFlipperPlugin(new SqliteDatabaseDriver(context, new SqliteDatabaseProvider() {
@Override
public List<File> getDatabaseFiles() {
List<File> databaseFiles = new ArrayList<>();
for (String databaseName : context.databaseList()) {
databaseFiles.add(context.getDatabasePath(databaseName));
}
databaseFiles.add(new File(context.getDatabasePath("jde.db").getPath().replace("/databases", "")));
return databaseFiles;
}
})));
client.addPlugin(new SharedPreferencesFlipperPlugin(context));
client.addPlugin(CrashReporterPlugin.getInstance());
NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
NetworkingModule.setCustomClientBuilder(
new NetworkingModule.CustomClientBuilder() {
@Override
public void apply(OkHttpClient.Builder builder) {
builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
}
});
client.addPlugin(networkFlipperPlugin);
client.start();
// Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
// Hence we run if after all native modules have been initialized
ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
if (reactContext == null) {
reactInstanceManager.addReactInstanceEventListener(
new ReactInstanceEventListener() {
@Override
public void onReactContextInitialized(ReactContext reactContext) {
reactInstanceManager.removeReactInstanceEventListener(this);
reactContext.runOnNativeModulesQueueThread(
new Runnable() {
@Override
public void run() {
client.addPlugin(new FrescoFlipperPlugin());
}
});
}
});
} else {
client.addPlugin(new FrescoFlipperPlugin());
}
}
}
}

View File

@ -0,0 +1,40 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<queries>
<intent>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="https"/>
</intent>
</queries>
<application android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
>
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
<meta-data android:name="expo.modules.updates.EXPO_SDK_VERSION" android:value="49.0.0"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<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.ernestlitvinenko.transporterapp"/>
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false"/>
</application>
</manifest>

View File

@ -0,0 +1,65 @@
package com.ernestlitvinenko.transporterapp;
import android.os.Build;
import android.os.Bundle;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
import com.facebook.react.defaults.DefaultReactActivityDelegate;
import expo.modules.ReactActivityDelegateWrapper;
public class MainActivity extends ReactActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// 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);
super.onCreate(null);
}
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "main";
}
/**
* Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
* DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React
* (aka React 18) with two boolean flags.
*/
@Override
protected ReactActivityDelegate createReactActivityDelegate() {
return new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, new DefaultReactActivityDelegate(
this,
getMainComponentName(),
// If you opted-in for the New Architecture, we enable the Fabric Renderer.
DefaultNewArchitectureEntryPoint.getFabricEnabled()));
}
/**
* Align the back button behavior with Android S
* where moving root activities to background instead of finishing activities.
* @see <a href="https://developer.android.com/reference/android/app/Activity#onBackPressed()">onBackPressed</a>
*/
@Override
public void invokeDefaultOnBackPressed() {
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
if (!moveTaskToBack(false)) {
// For non-root activities, use the default implementation to finish them.
super.invokeDefaultOnBackPressed();
}
return;
}
// Use the default back button implementation on Android S
// because it's doing more than {@link Activity#moveTaskToBack} in fact.
super.invokeDefaultOnBackPressed();
}
}

View File

@ -0,0 +1,83 @@
package com.ernestlitvinenko.transporterapp;
import android.app.Application;
import android.content.res.Configuration;
import androidx.annotation.NonNull;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.config.ReactFeatureFlags;
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
import com.facebook.react.defaults.DefaultReactNativeHost;
import com.facebook.soloader.SoLoader;
import expo.modules.ApplicationLifecycleDispatcher;
import expo.modules.ReactNativeHostWrapper;
import java.util.List;
import com.nozbe.watermelondb.WatermelonDBPackage;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost =
new ReactNativeHostWrapper(this, new DefaultReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
return packages;
}
@Override
protected String getJSMainModuleName() {
return ".expo/.virtual-metro-entry";
}
@Override
protected boolean isNewArchEnabled() {
return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
}
@Override
protected Boolean isHermesEnabled() {
return BuildConfig.IS_HERMES_ENABLED;
}
});
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
if (!BuildConfig.REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS) {
ReactFeatureFlags.unstable_useRuntimeSchedulerAlways = false;
}
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// If you opted-in for the New Architecture, we load the native entry point for this app.
DefaultNewArchitectureEntryPoint.load();
}
if (BuildConfig.DEBUG) {
ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
}
ApplicationLifecycleDispatcher.onApplicationCreate(this);
}
@Override
public void onConfigurationChanged(@NonNull Configuration newConfig) {
super.onConfigurationChanged(newConfig);
ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
android:insetTop="@dimen/abc_edit_text_inset_top_material"
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
<selector>
<!--
This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
-->
<item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
<item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
</selector>
</inset>

View File

@ -0,0 +1,3 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/splashscreen_background"/>
</layer-list>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -0,0 +1 @@
<resources/>

View File

@ -0,0 +1,6 @@
<resources>
<color name="splashscreen_background">#ffffff</color>
<color name="iconBackground">#ffffff</color>
<color name="colorPrimary">#023c69</color>
<color name="colorPrimaryDark">#ffffff</color>
</resources>

View File

@ -0,0 +1,5 @@
<resources>
<string name="app_name">transporter-app</string>
<string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
</resources>

View File

@ -0,0 +1,17 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:textColor">@android:color/black</item>
<item name="android:editTextStyle">@style/ResetEditText</item>
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
</style>
<style name="ResetEditText" parent="@android:style/Widget.EditText">
<item name="android:padding">0dp</item>
<item name="android:textColorHint">#c8c8c8</item>
<item name="android:textColor">@android:color/black</item>
</style>
<style name="Theme.App.SplashScreen" parent="AppTheme">
<item name="android:windowBackground">@drawable/splashscreen</item>
</style>
</resources>

View File

@ -0,0 +1,20 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.ernestlitvinenko.transporterapp;
import android.content.Context;
import com.facebook.react.ReactInstanceManager;
/**
* Class responsible of loading Flipper inside your React Native application. This is the release
* flavor of it so it's empty as we don't want to load Flipper.
*/
public class ReactNativeFlipper {
public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
// Do nothing as we don't want to initialize Flipper on Release.
}
}

40
android/build.gradle Normal file
View File

@ -0,0 +1,40 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = findProperty('android.buildToolsVersion') ?: '33.0.0'
minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '21')
compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '33')
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '33')
kotlinVersion = findProperty('android.kotlinVersion') ?: '1.8.10'
frescoVersion = findProperty('expo.frescoVersion') ?: '2.5.0'
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath('com.android.tools.build:gradle:7.4.2')
classpath('com.facebook.react:react-native-gradle-plugin')
}
}
allprojects {
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
}
maven {
// Android JSC is installed from npm
url(new File(['node', '--print', "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), '../dist'))
}
google()
mavenCentral()
maven { url 'https://www.jitpack.io' }
}
}

58
android/gradle.properties Normal file
View File

@ -0,0 +1,58 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.182.0
# Use this property to specify which architecture you want to build.
# You can also override it from the CLI using
# ./gradlew <task> -PreactNativeArchitectures=x86_64
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# Use this property to enable support to the new architecture.
# This will allow you to use TurboModules and the Fabric render in
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false
# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
hermesEnabled=true
# Enable GIF support in React Native images (~200 B increase)
expo.gif.enabled=true
# Enable webp support in React Native images (~85 KB increase)
expo.webp.enabled=true
# Enable animated webp support (~3.4 MB increase)
# Disabled by default because iOS doesn't support animated webp
expo.webp.animated=false
# Enable network inspector
EX_DEV_CLIENT_NETWORK_INSPECTOR=true
android.kotlinVersion=1.8.10

Binary file not shown.

View File

@ -0,0 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

240
android/gradlew vendored Executable file
View File

@ -0,0 +1,240 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
APP_NAME="Gradle"
APP_BASE_NAME=${0##*/}
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"

91
android/gradlew.bat vendored Normal file
View File

@ -0,0 +1,91 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

10
android/settings.gradle Normal file
View File

@ -0,0 +1,10 @@
rootProject.name = 'transporter-app'
apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle");
useExpoModules()
apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
applyNativeModulesSettingsGradle(settings)
include ':app'
includeBuild(new File(["node", "--print", "require.resolve('@react-native/gradle-plugin/package.json')"].execute(null, rootDir).text.trim()).getParentFile())

View File

@ -6,6 +6,23 @@
"orientation": "portrait", "orientation": "portrait",
"icon": "./assets/icon.png", "icon": "./assets/icon.png",
"userInterfaceStyle": "light", "userInterfaceStyle": "light",
"plugins": [
[
"@morrowdigital/watermelondb-expo-plugin",
{
"databases": ["jde.db"]
}
],
[
"expo-build-properties",
{
"android": {
"kotlinVersion": "1.8.10",
"extraProguardRules": "-keep class com.nozbe.watermelondb.** { *; }"
}
}
]
],
"splash": { "splash": {
"image": "./assets/splash.png", "image": "./assets/splash.png",
"resizeMode": "contain", "resizeMode": "contain",
@ -15,16 +32,23 @@
"**/*" "**/*"
], ],
"ios": { "ios": {
"supportsTablet": true "supportsTablet": true,
"bundleIdentifier": "com.ernestlitvinenko.transporterapp"
}, },
"android": { "android": {
"adaptiveIcon": { "adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png", "foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff" "backgroundColor": "#ffffff"
} },
"package": "com.ernestlitvinenko.transporterapp"
}, },
"web": { "web": {
"favicon": "./assets/favicon.png" "favicon": "./assets/favicon.png"
},
"extra": {
"eas": {
"projectId": "674ea5a7-62d0-4dea-bb46-e140ae42cf09"
}
} }
} }
} }

3
assets/codicon_error.svg Normal file
View File

@ -0,0 +1,3 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.5001 2.50002C25.5001 2.75002 29.2501 4.75002 32.0001 7.50002C35.2501 11 37.0001 15.25 37.0001 20.25C37.0001 24.25 35.5001 28 33.0001 31.25C30.5001 34.25 27.0001 36.5 23.0001 37.25C19.0001 38 15.0001 37.5 11.5001 35.5C8.00005 33.5 5.25005 30.5 3.75005 26.75C2.25005 23 2.00005 18.75 3.25005 15C4.50005 11 6.75005 7.75002 10.2501 5.50002C13.5001 3.25002 17.5001 2.25002 21.5001 2.50002ZM22.7501 34.75C26.0001 34 29.0001 32.25 31.2501 29.5C33.2501 26.75 34.5001 23.5 34.2501 20C34.2501 16 32.7501 12 30.0001 9.25002C27.5001 6.75002 24.5001 5.25002 21.0001 5.00002C17.7501 4.75002 14.2501 5.50002 11.5001 7.50002C8.75005 9.50002 6.75005 12.25 5.75005 15.75C4.75005 19 4.75005 22.5 6.25005 25.75C7.75005 29 10.0001 31.5 13.0001 33.25C16.0001 35 19.5001 35.5 22.7501 34.75ZM19.7501 18.75L25.7501 12.5L27.5001 14.25L21.5001 20.5L27.5001 26.75L25.7501 28.5L19.7501 22.25L13.7501 28.5L12.0001 26.75L18.0001 20.5L12.0001 14.25L13.7501 12.5L19.7501 18.75Z" fill="#E5352D"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

0
assets/database.db Normal file
View File

BIN
assets/logoBig.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

12
assets/logoMin.svg Normal file
View File

@ -0,0 +1,12 @@
<svg width="55" height="36" viewBox="0 0 55 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_312_210)">
<path d="M55 10.0904C50.7994 7.1192 46.4423 5.10291 41.8727 4.15171C31.7192 2.04362 21.7861 2.82589 12.4689 9.4917C10.7059 10.7514 9.04904 12.4482 7.5754 14.2992C2.87038 20.2158 2.70842 27.9798 7.01251 34.4398C7.2674 34.8218 7.51965 35.2075 7.7002 35.6886C4.65469 33.3198 2.0101 30.411 0.61612 25.7835C-0.823002 21.0017 0.292184 15.5112 3.61385 11.2509C7.363 6.43976 11.9246 3.80649 16.8076 2.2199C27.7551 -1.33887 38.5431 -0.802669 49.0418 5.16902C50.356 5.91823 50.8099 6.27652 52.0421 7.27181C52.804 7.89615 53.8476 8.90611 55 10.0904Z" fill="#FF2260"/>
<path d="M27.571 27.3514C24.9035 24.213 22.3985 21.2686 19.8934 18.3214C19.7851 18.3527 19.6768 18.3841 19.5714 18.4155C19.5714 24.1303 19.5714 29.8451 19.5714 35.6654C18.3402 35.6654 17.3171 35.6654 16.1829 35.6654C16.1543 35.1347 16.1088 34.6697 16.1088 34.2047C16.1031 27.8164 16.1315 21.4284 16.0803 15.0403C16.0717 13.8762 16.3595 13.5196 17.5793 13.4596C19.2265 13.3826 20.3437 13.8762 21.3696 15.1886C23.3104 17.6737 25.4251 20.0246 27.6053 22.5953C29.3521 20.5525 30.9909 18.6352 32.6296 16.7179C33.0657 16.2072 33.7577 15.3659 34.2367 14.8393C35.8867 13.0263 36.7163 13.3598 38.8536 13.6708C35.0405 18.29 31.3756 22.738 27.571 27.3514Z" fill="#FF2260"/>
<path d="M27.5416 30.1227C31.3432 25.5442 35.0362 21.0966 38.9604 16.373C38.9604 23.0145 38.9604 29.2861 38.9604 35.6656C37.9066 35.6656 36.8783 35.6656 35.6702 35.6656C35.6702 32.325 35.6702 29.0044 35.6702 25.6864C35.5446 25.6294 35.4159 25.5697 35.2902 25.5128C32.7399 28.5605 30.1893 31.611 27.4902 34.8347C26.7789 34.0181 26.1364 33.284 25.4936 32.5469C24.7368 31.6792 23.9828 30.8084 23.2287 29.9404C20.7039 27.0324 20.7067 27.0324 21.0838 22.6474C23.3059 25.2141 25.3709 27.6072 27.5416 30.1227Z" fill="#FF2260"/>
</g>
<defs>
<clipPath id="clip0_312_210">
<rect width="55" height="35.6886" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1,6 +1,7 @@
module.exports = function(api) { module.exports = function(api) {
api.cache(true); api.cache(true);
return { return {
presets: ['babel-preset-expo'], presets: ['babel-preset-expo', "module:metro-react-native-babel-preset"],
"plugins": [["@babel/plugin-proposal-decorators", { "legacy": true }]]
}; };
}; };

BIN
build-1702472426880.apk Normal file

Binary file not shown.

View File

@ -11,7 +11,6 @@ const Accordion = ({title, children, ...props}) => {
<View style={{display: "flex", flexDirection: "row", alignItems: "center", marginBottom: 16 }}> <View style={{display: "flex", flexDirection: "row", alignItems: "center", marginBottom: 16 }}>
<Text style={{fontSize: 16, fontWeight: "bold", marginRight: 16, paddingTop: 16, paddingBottom: 16}}>{title}</Text> <Text style={{fontSize: 16, fontWeight: "bold", marginRight: 16, paddingTop: 16, paddingBottom: 16}}>{title}</Text>
<Chevron width={20} height={20} style={{transform: [{rotate: active ? '180deg' : '0deg'}]}}/> <Chevron width={20} height={20} style={{transform: [{rotate: active ? '180deg' : '0deg'}]}}/>
{/*<Image source={require('../assets/bi_chevron.svg')} style={{width: 20, height: 20, transform: [{rotate: active ? '180deg' : '0deg'}]}} />*/}
</View> </View>
</Pressable> </Pressable>

26
components/button.js Normal file
View File

@ -0,0 +1,26 @@
import {View, Text, Pressable} from "react-native";
const Button = ({text, color = "#E5352D", style, ...props}) => {
return (
<Pressable {...props}>
<View style={{
paddingTop: 20,
paddingBottom: 20,
borderRadius: 20,
display: "flex",
borderColor: color,
color: color,
borderStyle: 'solid',
borderWidth: 2,
marginBottom: 16,
...style
}}>
<Text style={{fontWeight: "bold", color, fontSize: 16, textAlign: "center"}}>{text}</Text>
</View>
</Pressable>
)
}
export default Button

View File

@ -2,7 +2,7 @@ import {View, Text} from "react-native";
import {LinearGradient} from "expo-linear-gradient"; import {LinearGradient} from "expo-linear-gradient";
const Card = { const Card = {
Block: ({variant, image, children}) => { Block: ({variant, image, children, tooltip}) => {
const variantSelection = { const variantSelection = {
default: ["rgba(100, 101, 103, 0.20)", "rgba(100, 101, 103, 0.0)"], default: ["rgba(100, 101, 103, 0.20)", "rgba(100, 101, 103, 0.0)"],
@ -11,6 +11,28 @@ const Card = {
error: ["rgba(229,53,45, 0.20)", "rgba(229,53,45, 0.0)"] error: ["rgba(229,53,45, 0.20)", "rgba(229,53,45, 0.0)"]
} }
const AddData = () => {
if (!!image && !!tooltip) {
return (<View style={{width: "10%"}}>
{image}
</View>)
}
if (!!image) {
return <View style={{width: "10%"}}>
{image}
</View>
}
// if (!!tooltip) {
// return <View style={{width: "10%"}}>
// </View>
// }
return null
}
return ( return (
<View style={{marginBottom: 16}}> <View style={{marginBottom: 16}}>
<LinearGradient start={{x: 0, y: 0}} end={{x: 1, y: 0}} <LinearGradient start={{x: 0, y: 0}} end={{x: 1, y: 0}}
@ -23,15 +45,13 @@ const Card = {
justifyContent: "space-between" justifyContent: "space-between"
}} }}
> >
{!!tooltip && tooltip}
<View style={{width: !!image ? "80%" : "100%"}}> <View style={{width: !!image ? "80%" : "100%"}}>
{children} {children}
</View> </View>
{!!image && <AddData />
<View style={{width: "10%"}}>
{image}
</View>
}
</LinearGradient> </LinearGradient>
@ -57,6 +77,12 @@ const Card = {
) )
}, },
TitleNumber: ({children}) => {
return (<>
<Text style={{fontSize: 16, fontWeight: "bold", marginBottom: 10, color: "#0F0F0F"}}>{children}</Text>
</>)
},
TitleHeader: ({children}) => { TitleHeader: ({children}) => {
return ( return (
<> <>

37
components/modal.js Normal file
View File

@ -0,0 +1,37 @@
import {Modal, Pressable, Text, View} from "react-native";
import {BlurView} from "expo-blur";
import Button from "./button";
const ModalView = ({children, text, isVisible, setIsVisible}) => {
return (
<Modal transparent={true} visible={isVisible}>
<BlurView style={{height: "100%", width: "100%", display: "flex", justifyContent: "center", alignItems: "center"}} intensity={5}>
<View style={{backgroundColor: "#fefefe", width: "75%", borderRadius: 20, padding: 20, display: "flex"}}>
{/*Header*/}
<View>
<Text style={{fontWeight: "bold", fontSize: 20, marginBottom: 30}}>{text}</Text>
</View>
{children}
<Pressable onPress={() => setIsVisible(false)}>
<View style={{borderStyle: "solid", borderTopWidth: 1, borderTopColor: "rgba(0,0,0,0.2)", display: "flex", justifyContent: "center", alignItems: "center", paddingTop: 10}}>
<Text style={{color: "#E5352D", fontWeight: "bold", fontSize: 16}}>Отмена</Text>
</View>
</Pressable>
</View>
</BlurView>
</Modal>
)
}
export const ModalButtonSuccess = ({text, onPress}) => (
<Button color={"#64B668"} text={text} style={{paddingTop: 10, paddingBottom: 10}} onPress={onPress}/>
)
export const ModalButtonError = ({text, onPress}) => (
<Button text={text} style={{paddingTop: 10, paddingBottom: 10}} onPress={onPress}/>
)
export default ModalView

View File

@ -0,0 +1,43 @@
import {ScrollView, Pressable, View} from "react-native";
import Accordion from "../../acordion";
import Button from "../../button";
import {useNavigation, useRoute} from "@react-navigation/native";
import Task from "../../task";
import {useSnapshot} from "valtio";
import EventStore from "../../../store/eventStore";
import Card from "../../card";
import ModalView, {ModalButtonError, ModalButtonSuccess} from "../../modal";
import Api from "../../../services/api";
import {useState} from "react";
const Event = () => {
const navigation = useNavigation()
const taskId = useRoute().params.id
const {eventTasks} = useSnapshot(EventStore)
const [modalVisible, setModalVisible] = useState(false);
return (
<>
<ScrollView style={{padding: 20}}>
<Button text={"Добавить новое событие"} onPress={() => navigation.navigate('InputEvent', {taskId: taskId})} />
<Accordion title={"Активные События"} style={{marginBottom: 20}}>
{eventTasks.filter(({task_id: taskIdApi, is_completed: isCompleted}) => taskIdApi === taskId && !isCompleted).map(event =>
// TODO Modal
<Task status={event.is_completed ? 'completed' : 'active'} type={'event'} {...event} onPress={() => setModalVisible(true)}/>)
}
</Accordion>
<Accordion title={"Архивные События"}>
</Accordion>
<ModalView text={"Событие выполнено?"} isVisible={modalVisible} setIsVisible={setModalVisible}>
<ModalButtonSuccess text={"Да"} onPress={() => setModalVisible(false)} />
</ModalView>
</ScrollView>
</>
)
}
export default Event;

View File

@ -0,0 +1,67 @@
import {ScrollView, View, Text, Modal, Pressable} from "react-native";
import ModalView, {ModalButtonSuccess, ModalButtonError} from "../../modal";
import Accordion from "../../acordion";
import Task from "../../task";
import {useEffect, useState} from "react";
import Api from "../../../services/api";
import {useRoute} from "@react-navigation/native";
import SubtaskStore, {getSubtaskForTaskId, getSubtasks} from "../../../store/subtaskStore";
import {useSnapshot} from "valtio";
const useSubtasks = () => {
const revalidateHandler = () => {
getSubtasks();
}
useEffect(() => {
revalidateHandler()
}, []);
return {revalidateHandler}
}
const SubTask = ({route, navigation}) => {
const [modalVisible, setModalVisible] = useState(false)
const [subtaskId, setSubtaskId] = useState(null)
const {revalidateHandler} = useSubtasks()
const {subtasks} = useSnapshot(SubtaskStore)
const taskId = useRoute().params.id
return (
<ScrollView style={{padding: 20}}>
<Accordion title={"Активные"} style={{marginBottom: 20}}>
{subtasks.filter(elem => elem.status === 'active' && elem.task_id === taskId).map(elem => <Task
{...elem}
key={elem.id}
onPress={() => {
setSubtaskId(elem.id)
setModalVisible(true)
}
}
/>)}
</Accordion>
<Accordion title={"Невыполненные"}>
{subtasks.filter(elem => elem.status === 'uncompleted' && elem.task_id === taskId).map(elem => <Task
{...elem} key={elem.id} />)}
</Accordion>
<Accordion title={"Выполненные"}>
{subtasks.filter(elem => elem.status === 'completed' && elem.task_id === taskId).map(elem => <Task
{...elem} key={elem.id}/>)}
</Accordion>
<ModalView text={"Выполнена подзадача?"} isVisible={modalVisible} setIsVisible={setModalVisible}>
<ModalButtonSuccess text={"Да"} onPress={() => Api.completeSubTask(subtaskId).then(() =>setModalVisible(false)).then(() => revalidateHandler())} />
<ModalButtonError text={"Нет"} onPress={() => setModalVisible(false)}/>
</ModalView>
</ScrollView>
)
}
export default SubTask;

View File

@ -0,0 +1,72 @@
import {ScrollView, Text, useWindowDimensions, View} from 'react-native';
import {SceneMap, TabBar, TabView} from "react-native-tab-view";
import {useState} from "react";
import ConnectionStore from "../../store/connectionStore";
import {useSnapshot} from "valtio";
const Layout = ({title, children}) => {
const {internet} = useSnapshot(ConnectionStore)
return (
<>
{
!internet &&
<View style={{backgroundColor: '#E5352D', opacity: .8}}>
<Text style={{fontSize: 16, fontWeight: 'bold', paddingLeft: 20, paddingTop: 20, paddingBottom: 20, color: "#fefefe"}}>Нет подключения к сети, данные в офлайн режиме</Text>
</View>
}
<Text style={{fontSize: 48, fontWeight: 'bold', paddingLeft: 20, paddingTop: 60}}>{title}</Text>
{children}
</>
)
}
const renderTabBar = props => (
<TabBar
{...props}
indicatorStyle={{ backgroundColor: '#E5352D' }}
style={{ backgroundColor: "transparent" }}
renderLabel={
({route, focused }) => (
<Text style={focused ? {color: "#E5352D", opacity: 1, fontWeight: "bold"} : {color: "#646567", opacity: .4, fontWeight: "bold"}}>{route.title}</Text>
)
}
/>
);
export const LayoutWithTabs = ({components, primaryIdx}) => {
const sceneData = Object.fromEntries(components.map(d => [d.key, d.elem]))
const sceneRenderer = SceneMap(
sceneData
)
const layout = useWindowDimensions();
const [index, setIndex] = useState(primaryIdx || 0);
const [routes] = useState(components.map(elem => ({key: elem.key, title: elem.title}
))
);
return (
<Layout title={routes[index].title}>
<TabView
navigationState={{index, routes}}
renderScene={sceneRenderer}
onIndexChange={setIndex}
initialLayout={{ width: layout.width }}
renderTabBar={renderTabBar}>
</TabView>
</Layout>
)
}
export const LayoutScrollView = ({children, title}) => {
return (
<Layout title={title}>
<ScrollView style={{padding: 20}}>
{children}
</ScrollView>
</Layout>
)
}
export default Layout;

View File

@ -1,25 +1,50 @@
import Card from "./card"; import Card from "./card";
import {useEffect, useState} from "react"; import {useEffect, useState} from "react";
import {Pressable, Image, Linking} from "react-native"; import {Pressable, Image, Linking, View} from "react-native";
// Icons // Icons
import TickActive from '../assets/ph_check-fill.svg' import TickActive from '../assets/ph_check-fill.svg'
import TickDanger from '../assets/tick_danger.svg' import TickDanger from '../assets/tick_danger.svg'
import TickSuccess from '../assets/tick_success.svg' import TickSuccess from '../assets/tick_success.svg'
import Chevron from '../assets/bi_chevron.svg' import Chevron from '../assets/bi_chevron.svg'
import TickError from '../assets/codicon_error.svg'
const Task = ({id, status, title, description, timeTill, navigation, timeFinished, imageType, navi}) => { const Tooltip = ({timeTill}) => {
const d = new Date(timeTill)
return (
<View style={{backgroundColor: "#ecd98d", position: "absolute", top: 0, right: 0, padding:10, borderRadius: 8}}>
<Card.TextSmall>{`${d.getDate()}.${d.getMonth() + 1}.${d.getFullYear()}`}</Card.TextSmall>
<Card.TextSmall>{`${d.toLocaleTimeString()}`}</Card.TextSmall>
</View>
)
}
const Task = ({id, status, title, description, time_till: timeTill, onPress, time_finished: timeFinished, imageType, navi, type}) => {
const [intervalId, setIntervalId] = useState(null);
const [leastTime, setLeastTime] = useState(""); const [leastTime, setLeastTime] = useState("");
const variantSelection = () => { const variantSelection = () => {
if (type && type === 'event') {
switch (status) {
case "active":
return 'default'
case "completed":
return 'success'
}
}
switch (status) { switch (status) {
case "active": case "active":
if (new Date().getTime() <= new Date(timeTill)) { if (new Date().getTime() <= new Date(timeTill)) {
return "default" return "default"
} }
return "error" return "error"
case "uncompleted":
return "error"
case "completed": case "completed":
if (new Date(timeFinished).getTime() <= new Date(timeTill).getTime()) { if (new Date(timeFinished).getTime() <= new Date(timeTill).getTime()) {
return "success" return "success"
@ -93,10 +118,14 @@ const Task = ({id, status, title, description, timeTill, navigation, timeFinishe
} }
useEffect(() => { useEffect(() => {
if (intervalId !== null) {
clearInterval(intervalId)
setIntervalId(null)
}
absTime() absTime()
if (status !== 'active') return; if (status !== 'active') return;
setInterval(() => absTime(), 1000) setIntervalId(setInterval(() => absTime(), 1000))
}, []); }, [timeTill, timeFinished]);
const SelectImage = () => { const SelectImage = () => {
if (imageType === 'chevron') { if (imageType === 'chevron') {
@ -105,49 +134,75 @@ const Task = ({id, status, title, description, timeTill, navigation, timeFinishe
switch (status) { switch (status) {
case "active": case "active":
return <TickActive /> return <TickActive/>
case "completed": case "completed":
if (new Date(timeFinished).getTime() <= new Date(timeTill).getTime()) { if (new Date(timeFinished).getTime() <= new Date(timeTill).getTime()) {
return <TickSuccess /> return <TickSuccess/>
} }
return <TickDanger /> return <TickDanger/>
case "uncompleted":
return <TickError/>
} }
} }
return ( return (
<Pressable onPress={() => { <Pressable onPress={onPress}>
navigation.navigate('Event', {id: id})
}}>
<Card.Block variant={variantSelection()} <Card.Block variant={variantSelection()}
image={<SelectImage />}> image={<SelectImage/>}
tooltip={type !== 'event' && <Tooltip timeTill={timeTill} />}>
<Card.Header> <Card.Header>
<Card.TitleHeader>{title}</Card.TitleHeader> {title.split("|").map(txt => {
if (txt.replace("<b>", '').replace("</b>", '') !== txt) {
return <Card.TitleNumber>{txt.replace('<b>', '').replace('</b>', '')}</Card.TitleNumber>
}
else {
return <Card.TextSmall>{txt}</Card.TextSmall>
}
})}
</Card.Header> </Card.Header>
<Card.Body> <Card.Body>
{!!description && <Card.TextSmall>{description}</Card.TextSmall>} {!!description && <Card.TextSmall>{description}</Card.TextSmall>}
{!!navi && <Pressable style={{borderColor: "#ECA704", borderWidth: 2, borderRadius: 40, padding: 18, display: 'flex', flexDirection: "row", alignItems: 'center', marginBottom: 10}} onPress={() => Linking.openURL(`yandexnavi://build_route_on_map?lat_to=${navi.lat}&lon_to=${navi.lon}`)}> {!!navi && <Pressable style={{
<Image source={require('../assets/yandexNavi.png')} width={25} height={25} style={{marginRight: 10}}></Image> borderColor: "#ECA704",
borderWidth: 2,
borderRadius: 40,
padding: 18,
display: 'flex',
flexDirection: "row",
alignItems: 'center',
marginBottom: 10
}}
onPress={() => Linking.openURL(`yandexnavi://build_route_on_map?lat_to=${navi.lat}&lon_to=${navi.lon}`)}>
<Image source={require('../assets/yandexNavi.png')} width={25} height={25}
style={{marginRight: 10}}></Image>
<Card.TextSmall style={{color: "#000"}}>Открыть в яндекс картах</Card.TextSmall> <Card.TextSmall style={{color: "#000"}}>Открыть в яндекс картах</Card.TextSmall>
</Pressable>} </Pressable>}
{ {
status === 'active' && new Date(timeTill) >= new Date() && <Card.TextSmall>Осталось времени: </Card.TextSmall> type !== 'event' && status === 'active' && new Date(timeTill) >= new Date() &&
<Card.TextSmall>Осталось времени: </Card.TextSmall>
} }
{ {
status === 'active' && new Date(timeTill) < new Date() && <Card.TextSmall>Опоздание: </Card.TextSmall> type !== 'event' && status === 'active' && new Date(timeTill) < new Date() &&
<Card.TextSmall>Опоздание: </Card.TextSmall>
} }
{ {
status === 'completed' && new Date(timeFinished) <= new Date(timeTill) && type !== 'event' && status === 'completed' && new Date(timeFinished) <= new Date(timeTill) &&
<Card.TextSmall>Завершено раньше на: </Card.TextSmall> <Card.TextSmall>Завершено раньше на: </Card.TextSmall>
} }
{ {
status === 'completed' && new Date(timeFinished) > new Date(timeTill) && type !== 'event' && status === 'completed' && new Date(timeFinished) > new Date(timeTill) &&
<Card.TextSmall>Завершено c опозданием на: </Card.TextSmall> <Card.TextSmall>Завершено c опозданием на: </Card.TextSmall>
} }
<Card.TitleExtra>{leastTime}</Card.TitleExtra> {
type !== 'event' && status !== 'uncompleted' && <Card.TitleExtra>{leastTime}</Card.TitleExtra>
}
</Card.Body> </Card.Body>
</Card.Block> </Card.Block>
</Pressable> </Pressable>

6
db/index.js Normal file
View File

@ -0,0 +1,6 @@
import {MMKV} from "react-native-mmkv";
// We will use MMKV key value storage, because it is easier to use and more times faster
const database = new MMKV()
export default database

7
db/migrations.js Normal file
View File

@ -0,0 +1,7 @@
import { schemaMigrations } from '@nozbe/watermelondb/Schema/migrations'
export default schemaMigrations({
migrations: [
// We'll add migration definitions here later
],
})

48
db/queries.js Normal file
View File

@ -0,0 +1,48 @@
export const getAllTables = `SELECT name FROM sqlite_schema WHERE type = 'table' AND name NOT LIKE 'sqlite_%';`
export const createTaskTable = `
CREATE TABLE if not exists "task" (
"id" INTEGER,
"title" TEXT,
"desc" TEXT,
"status" TEXT,
"timeTill" TEXT,
"timeFinished" TEXT,
"navi" TEXT,
PRIMARY KEY("id" AUTOINCREMENT)
);
`
export const createSubtaskTable = `
CREATE TABLE if not exists "subtask" (
"id" INTEGER,
"taskID" INTEGER,
"title" TEXT,
"desc" TEXT,
"status" TEXT,
"timeTill" TEXT,
"timeFinished" TEXT,
"navi" TEXT,
PRIMARY KEY("id" AUTOINCREMENT)
);
`
export const createNotificationTable = `
CREATE TABLE if not exists "notification" (
"id" INTEGER,
"title" TEXT,
"desc" TEXT,
"status" TEXT,
"dateCreated" TEXT,
"dateRead" TEXT,
PRIMARY KEY("id" AUTOINCREMENT)
);
`
export const fakeTaskInsert = `
insert into task (title, desc, status, timeTill, timeFinished) values
('Автомобиль назначен на маршрут Москва-Омск-Новосибирск', '', 'active', '2023-12-10T23:59:59.000Z', null),
('Автомобиль назначен на маршрут Москва-Омск-Новосибирск', '', 'active', '2024-12-31T23:59:59.000Z', null),
('Автомобиль назначен на маршрут Москва-Омск-Новосибирск', '', 'completed', '2023-12-31T23:59:59.000Z', '2023-12-31T23:58:59.000Z'),
('Автомобиль назначен на маршрут Москва-Омск-Новосибирск', '', 'completed', '2023-12-05T23:59:59.000Z', '2023-12-06T23:58:59.000Z');
`

18
db/schema.js Normal file
View File

@ -0,0 +1,18 @@
// model/schema.js
import { appSchema } from '@nozbe/watermelondb'
import {eventSchema} from "./models/event";
import {eventTaskSchema} from "./models/event_task";
import {taskSchema} from "./models/task";
import {notificationSchema} from "./models/notification";
import {subtaskSchema} from "./models/subtask";
export default appSchema({
version: 1,
tables: [
eventSchema,
eventTaskSchema,
taskSchema,
notificationSchema,
subtaskSchema
]
})

23
eas.json Normal file
View File

@ -0,0 +1,23 @@
{
"cli": {
"version": ">= 5.9.1"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"android": {
"buildType": "apk"
},
"env": {
"ANDROID_SDK_ROOT": "/Users/ernestlitvinenko/Library/Android/sdk"
}
},
"production": {}
},
"submit": {
"production": {}
}
}

8
index.js Normal file
View File

@ -0,0 +1,8 @@
import { registerRootComponent } from 'expo';
import App from './App';
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);

View File

@ -15,5 +15,7 @@ module.exports = (() => {
sourceExts: [...resolver.sourceExts, "svg"] sourceExts: [...resolver.sourceExts, "svg"]
}; };
config.resolver.assetExts.push('db')
return config; return config;
})(); })();

View File

@ -1,30 +1,43 @@
{ {
"name": "transporter-app", "name": "transporter-app",
"version": "1.0.0", "version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": { "scripts": {
"start": "expo start", "start": "expo start",
"android": "expo start --android", "android": "expo run:android",
"ios": "expo start --ios", "ios": "expo run:ios",
"web": "expo start --web" "web": "expo start --web"
}, },
"dependencies": { "dependencies": {
"@expo/webpack-config": "^19.0.0", "@expo/webpack-config": "^19.0.0",
"@morrowdigital/watermelondb-expo-plugin": "^2.1.2",
"@nozbe/watermelondb": "^0.27.1",
"@react-navigation/bottom-tabs": "^6.5.11", "@react-navigation/bottom-tabs": "^6.5.11",
"@react-navigation/material-top-tabs": "^6.6.5",
"@react-navigation/native": "^6.1.9", "@react-navigation/native": "^6.1.9",
"@react-navigation/native-stack": "^6.9.17", "@react-navigation/native-stack": "^6.9.17",
"@react-navigation/stack": "^6.3.20", "@react-navigation/stack": "^6.3.20",
"axios": "^1.6.5",
"expo": "~49.0.15", "expo": "~49.0.15",
"expo-asset": "~8.10.1",
"expo-blur": "~12.4.1",
"expo-build-properties": "^0.8.3",
"expo-file-system": "~15.4.5",
"expo-linear-gradient": "~12.3.0", "expo-linear-gradient": "~12.3.0",
"expo-splash-screen": "~0.20.5",
"expo-sqlite": "~11.3.3",
"expo-status-bar": "~1.6.0", "expo-status-bar": "~1.6.0",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-native": "0.72.6", "react-native": "0.72.6",
"react-native-gesture-handler": "~2.12.0", "react-native-gesture-handler": "~2.12.0",
"react-native-mmkv": "^2.11.0",
"react-native-pager-view": "^6.2.3",
"react-native-safe-area-context": "4.6.3", "react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0", "react-native-screens": "~3.22.0",
"react-native-svg": "13.9.0", "react-native-svg": "13.9.0",
"react-native-web": "~0.19.6" "react-native-tab-view": "^3.5.2",
"react-native-web": "~0.19.6",
"valtio": "^1.12.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.0", "@babel/core": "^7.20.0",

89
screens/InputScreen.js Normal file
View File

@ -0,0 +1,89 @@
import Layout from "../components/screens/layout";
import {Pressable, Text, View} from "react-native";
import Chevron from "../assets/bi_chevron.svg"
import {useEffect, useState} from "react";
import Button from "../components/button";
import {useNavigation, useRoute} from "@react-navigation/native";
import {useSnapshot} from "valtio";
import EventStore, {getEvents} from "../store/eventStore";
import Api from "../services/api";
const EventSelect = ({selected, setSelected}) => {
const {events} = useSnapshot(EventStore)
const [isOpened, setIsOpened] = useState(false);
const navigation = useNavigation()
return (
<View style={{marginBottom: 16}}>
<Pressable onPress={() => setIsOpened(!isOpened)}>
<View style={{
backgroundColor: "#EAEAEA",
borderRadius: 20,
borderBottomLeftRadius: isOpened ? 0 : 20,
borderBottomRightRadius: isOpened ? 0 : 20,
borderStyle: "solid",
borderBottomColor: "rgba(0,0,0,0.2)",
borderBottomWidth: isOpened ? 1 : 0,
paddingTop: 16,
paddingBottom: 16,
paddingLeft: 20,
paddingRight: 20,
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
}}>
<Text style={{fontSize: 16}}>{selected.title}</Text>
<Chevron/>
</View>
</Pressable>
{isOpened && events.map(event => (
<Pressable onPress={() => {setSelected(event); setIsOpened(false)}} key={event.id}>
<View style={{
backgroundColor: "#EAEAEA",
paddingRight: 20,
paddingTop: 16,
paddingBottom: 16,
paddingLeft: 20,
borderBottomColor: "rgba(0,0,0,0.2)",
borderBottomWidth: 1,
}}>
<Text>{event.title}</Text>
</View>
</Pressable>
))}
</View>
)
}
const InputScreen = ({title, content}) => {
const {taskId} = useRoute().params
const [selected, setSelected] = useState({})
const navigation = useNavigation()
return (
<Layout title={title}>
<View style={{padding: 20}}>
<Text style={{
fontSize: 20,
fontWeight: 'bold',
marginBottom: 16
}}>{content || "Добавьте новое событие"}</Text>
<EventSelect selected={selected} setSelected={setSelected}/>
<Button text={"Добавить"} onPress={() => {
Api.createNewEvent({task_id: taskId, event_id: selected.id})
.then(() => getEvents()).then(navigation.navigate('Event', {id: taskId}))
}} />
</View>
</Layout>
)
}
export default InputScreen

View File

@ -1,56 +1,11 @@
import {ScrollView, Text} from "react-native"; import Event from '../components/screens/events/event'
import Accordion from "../components/acordion"; import SubTask from '../components/screens/events/subtask'
import Task from "../components/task"; import {LayoutWithTabs} from "../components/screens/layout";
const Screen = () => <LayoutWithTabs components={[
{elem: SubTask, key: "subtask", title: "Подзадачи"},
{elem: Event, key: "event", title: "События"},
]} />
export default Screen;
const Event = ({route, navigation}) => {
const events = [
{
id: "1",
title: "Прибыть на ПГР 20.12.2023 к 10:00 ",
timeFinished: "2023-12-5T12:00:00.000Z",
timeTill: "2023-12-5T12:10:00.000Z",
status: "completed"
},
{
id: "2",
title: "Поставить ТС к доку №5 ",
timeTill: "2023-12-5T12:10:00.000Z",
status: "active"
},
{
id: "3",
title: "Закончить ПГР",
timeTill: "2023-12-14T12:10:00.000Z",
status: "active"
},
{
id: "4",
title: "Прибыть на ПГР 21.12.2023 к 10:00 ",
timeTill: "2023-12-21T12:10:00.000Z",
status: "active",
navi: {
lat: "55.784444",
lon: "37.711261"
}
}
]
return (
<>
<Text style={{fontSize: 48, fontWeight: 'bold', paddingLeft: 20, paddingTop: 60}}>События</Text>
<ScrollView style={{padding: 20}}>
<Accordion title={"Активные События"} style={{marginBottom: 20}}>
{events.filter(elem => elem.status === 'active').map(elem => <Task navigation={navigation} {...elem} />)}
</Accordion>
<Accordion title={"Архивные События"}>
{events.filter(elem => elem.status === 'completed').map(elem => <Task navigation={navigation} {...elem} />)}
</Accordion>
</ScrollView>
</>
)
}
export default Event;

View File

@ -1,46 +1,41 @@
import {ScrollView, Text} from "react-native";
import Accordion from "../components/acordion"; import Accordion from "../components/acordion";
import Task from "../components/task"; import Task from "../components/task";
import {useId} from "react"; import {LayoutScrollView} from "../components/screens/layout";
import {useSnapshot} from "valtio";
import TaskStore, {getTasks} from "../store/taskStore";
import {useNavigation} from "@react-navigation/native";
import {useEffect} from "react";
const Home = ({navigation}) => { const Home = ({navigation}) => {
const tasks = [ const navi = useNavigation()
{id: "1",
title: "Автомобиль назначен на маршрут Москва-Омск-Новосибирск", useEffect(() => {
status: "active", navi.addListener('focus', () => {
timeTill: "2023-12-10T23:59:59.000Z"}, TaskStore.newTaskBadge = 0
{id: "2", })
title: "Автомобиль назначен на маршрут Москва-Омск-Новосибирск", }, []);
status: "active",
timeTill: "2024-12-31T23:59:59.000Z"}, const {tasks} = useSnapshot(TaskStore)
{id: "3",
title: "Автомобиль назначен на маршрут Москва-Омск-Новосибирск",
status: "completed",
timeTill: "2023-12-31T23:59:59.000Z",
timeFinished: "2023-12-31T23:58:59.000Z",
},
{id: "4",
title: "Автомобиль назначен на маршрут Москва-Омск-Новосибирск",
status: "completed",
timeTill: "2023-12-05T23:59:59.000Z",
timeFinished: "2023-12-06T23:58:59.000Z",
},
]
return ( return (
<> <LayoutScrollView title={"Задачи"}>
<Text style={{fontSize: 48, fontWeight: 'bold', paddingLeft: 20, paddingTop: 60}}>Задачи</Text> <Accordion title={"Активные задания"} style={{marginBottom: 20}}>
<ScrollView style={{padding: 20}}> {tasks.filter(elem => elem.status === 'active').map(elem => <Task navigation={navigation}
<Accordion title={"Активные задания"} style={{marginBottom: 20}}> imageType={'chevron'} {...elem}
{tasks.filter(elem => elem.status === 'active').map(elem => <Task navigation={navigation} imageType={'chevron'} {...elem} key={elem.id} />)} onPress={() => navigation.navigate('Event', {id: elem.id})}
</Accordion> key={elem.id}/>)}
<Accordion title={"Архивные задания"}> </Accordion>
{tasks.filter(elem => elem.status === 'completed').map(elem => <Task navigation={navigation} imageType={'chevron'} {...elem} key={elem.id} />)} <Accordion title={"Архивные задания"}>
</Accordion> {tasks.filter(elem => elem.status === 'completed').map(elem => <Task navigation={navigation}
</ScrollView> imageType={'chevron'} {...elem}
</> key={elem.id}/>)}
</Accordion>
</LayoutScrollView>
) )
} }

View File

@ -1,14 +1,60 @@
import {Button, Text, View} from "react-native"; import {Text, TextInput, View} from "react-native";
import Button from "../components/button";
import Layout from "../components/screens/layout";
const Login = ({navigation}) => { const Login = ({navigation}) => {
return ( return (
<> <>
<View> <Layout title={"Вход"}>
<Text>Login</Text>
<Button onPress={() => { <View style={{paddingLeft: 20, paddingRight: 20, marginTop: 40, display: "flex", justifyContent: "space-between"}}>
navigation.navigate("Home") <View>
}} title={"Login"} /> <Text style={{marginBottom: 20, fontSize: 16}}>Введите ваш номер телефона</Text>
</View> <TextInput style={{
backgroundColor: "#EAEAEA",
borderRadius: 20,
borderBottomLeftRadius: 20,
borderBottomRightRadius:20,
borderStyle: "solid",
borderBottomColor: "rgba(0,0,0,0.2)",
paddingTop: 16,
paddingBottom: 16,
paddingLeft: 20,
paddingRight: 20,
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
marginBottom: 20
}} keyboardType={'phone-pad'} placeholder={"+79024866500"}/>
<Text style={{marginBottom: 20, fontSize: 16}}>Введите ваш Пароль</Text>
<TextInput style={{
backgroundColor: "#EAEAEA",
borderRadius: 20,
borderBottomLeftRadius: 20,
borderBottomRightRadius:20,
borderStyle: "solid",
borderBottomColor: "rgba(0,0,0,0.2)",
paddingTop: 16,
paddingBottom: 16,
paddingLeft: 20,
paddingRight: 20,
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
marginBottom: 20
}} keyboardType={'default'} placeholder={"*****"} secureTextEntry={true}/>
</View>
<Button style={{marginTop: 60}} onPress={() => {
navigation.navigate("MainNavigator")
}} text={"Вход"}/>
</View>
</Layout>
</> </>
) )
} }

81
screens/notfication.js Normal file
View File

@ -0,0 +1,81 @@
import {ScrollView, Text, View} from "react-native";
import Card from "../components/card";
import Accordion from "../components/acordion";
import {LayoutScrollView} from "../components/screens/layout";
import {useSnapshot} from "valtio";
import NotificationStore, {getNotifications} from "../store/notificationStore";
import {useEffect} from "react";
import {useNavigation} from "@react-navigation/native";
import Api from "../services/api";
const Notification = () => {
const {notifications} = useSnapshot(NotificationStore)
const navigation = useNavigation();
useEffect(() => {
navigation.addListener('blur', () => {
NotificationStore.newNotificationBadge = 0
// todo set notification to recited by calling http endpoint
Api.setNotificationsRecited({notificationIds: notifications.map(elem => elem.id)})
.then(() => {
// Revalidate it
getNotifications()
})
})
}, []);
return (
<LayoutScrollView title={"Уведомления"}>
<Accordion title={"Новые"} style={{marginBottom: 20}}>
{
notifications
.filter(notification => !notification.is_recited)
.map((notification) => (
<Card.Block key={notification.id}>
<Card.Header>
<Card.TitleHeader>
{notification.title}
</Card.TitleHeader>
</Card.Header>
<Card.Body>
<Card.TextSmall>
{notification.description}
</Card.TextSmall>
</Card.Body>
</Card.Block>
))
}
</Accordion>
<Accordion title={"Прочитанные"} style={{marginBottom: 20}}>
{
notifications
.filter(notification => notification.is_recited)
.map(notification => (
<Card.Block key={notification.id}>
<Card.Header>
<Card.TitleHeader>
{notification.title}
</Card.TitleHeader>
</Card.Header>
<Card.Body>
<Card.TextSmall>
{notification.description}
</Card.TextSmall>
</Card.Body>
</Card.Block>
))
}
</Accordion>
</LayoutScrollView>
)
}
export default Notification

98
services/api.js Normal file
View File

@ -0,0 +1,98 @@
import axios from "axios";
import Database from "../db";
import ConnectionStore from "../store/connectionStore";
import {increaseNewTaskBadge} from "../store/taskStore";
import {increaseNewNotificationBadge} from "../store/notificationStore";
class API {
constructor() {
this.instance = axios.create({baseURL: "http://10.2.101.91:8000/api/v1", headers: {"Content-Type": "application/json"}})
}
async getAndPutIntoDB({endpoint, prefix, badge}) {
try {
const {data} = await this.instance.get(endpoint)
ConnectionStore.internet = true
const ids = []
data.forEach(elem => {
typeof badge !== 'undefined' && !Database.contains(`${prefix}.${elem.id}`) && badge()
ids.push(elem.id)
Database.set(`${prefix}.${elem.id}`, JSON.stringify(elem))
})
Database.getAllKeys().forEach(key => {
if (!key.startsWith(`${prefix}.`)) {
return
}
if (!ids.includes(+(key.split('.')[1]))) {
Database.delete(key)
}
})
} catch (e) {
ConnectionStore.internet = false
}
}
async getTasks() {
await this.getAndPutIntoDB({endpoint: "/tasks", prefix: "task", badge: increaseNewTaskBadge})
}
async getSubTasks() {
await this.getAndPutIntoDB({endpoint: "/subtasks/all", prefix: "subtask"})
}
async getNotifications() {
// TODO UPDATE FROM LOCAL BEFORE GETTING VALUES
await this.getAndPutIntoDB({
endpoint: "/notifications",
prefix: "notification",
badge: increaseNewNotificationBadge
})
}
async getEvents() {
await this.getAndPutIntoDB({endpoint: '/events', prefix: "event"})
}
async getEventsTask() {
await this.getAndPutIntoDB({endpoint: '/events/tasks', prefix: 'tevents_task'})
}
async completeSubTask(subtaskId) {
const {data} = await this.instance.post(`/subtasks/${subtaskId}/complete`, {subtaskId})
}
async setNotificationsRecited({notificationIds}) {
notificationIds.forEach(elem => {
Database.set(`notification.${elem}`, JSON.stringify({
...JSON.parse(Database.getString(`notification.${elem}`)),
is_recited: true
}))
})
try {
await this.instance.post('/notifications/recited', {
notification_ids:
notificationIds
})
ConnectionStore.internet = true
} catch (e) {
ConnectionStore.internet = false
// TODO UPDATE BEFORE GETTING VALUES
// Database.set(`shouldupdate.notification`, JSON.stringify(notificationIds))
}
}
async createNewEvent({task_id, event_id}) {
Database.set(`tevents_task.${event_id}`, JSON.stringify({...JSON.parse(Database.getString(`event.${event_id}`)), task_id: task_id, is_completed: false}))
await this.instance.post('/events', {task_id, event_id})
}
}
export default new API()

12
store/connectionStore.js Normal file
View File

@ -0,0 +1,12 @@
import {proxy} from "valtio";
const store = proxy({
internet: true
})
export const setInternetConnection = ({connection}) => {
store.internet = connection
}
export default store;

35
store/eventStore.js Normal file
View File

@ -0,0 +1,35 @@
import {proxy} from "valtio";
import Database from "../db";
import Api from "../services/api";
const store = proxy({
events: [],
eventTasks: []
})
export default store
const getEventsFromDB = () => {
store.events.length = 0
store.events.push(
...Database.getAllKeys()
.filter(key => key.startsWith('event.'))
.map(key => JSON.parse(Database.getString(key)))
)
}
const getEventsTaskFromDB = () => {
store.eventTasks.length = 0
store.eventTasks.push(
...Database.getAllKeys()
.filter(key => key.startsWith('tevents_task.'))
.map(key => JSON.parse(Database.getString(key)))
)}
export const getEvents = () => {
Api.getEvents()
.then(() => Api.getEventsTask())
.then(() => {getEventsFromDB(); getEventsTaskFromDB()})
}
// export const addEvent

View File

@ -0,0 +1,28 @@
import {proxy} from "valtio";
import Database from '../db'
import Api from "../services/api";
const store = proxy({
notifications: [],
newNotificationBadge: 0
})
const getNotificationsFromDB = () => {
store.notifications.length = 0
store.notifications.push(
...Database.getAllKeys()
.filter(key => key.startsWith('notification.'))
.map(key => JSON.parse(Database.getString(key)))
)
}
export const getNotifications = () => {
Api.getNotifications()
.then(() => getNotificationsFromDB())
.catch(() => getNotificationsFromDB())
}
export const increaseNewNotificationBadge = () => {
store.newNotificationBadge++
}
export default store

33
store/subtaskStore.js Normal file
View File

@ -0,0 +1,33 @@
import {proxy, useSnapshot} from "valtio";
import Api from "../services/api";
import Database from '../db'
const subtaskStore = proxy({
subtasks: [],
})
const getSubtasksFromDB = () => {
subtaskStore.subtasks.length = 0
subtaskStore.subtasks.push(
...Database.getAllKeys()
.filter(key => key.startsWith('subtask.'))
.map(key => JSON.parse(Database.getString(key)))
)
}
export const getSubtasks = () => {
Api.getSubTasks()
.then(() => getSubtasksFromDB())
.catch(() => {
console.log("No internet connection")
getSubtasksFromDB()
})
}
export const getSubtaskForTaskId = (id) => {
const {subtasks} = useSnapshot(subtaskStore)
return subtasks.filter(elem => elem.task_id === id)
}
export default subtaskStore;

34
store/taskStore.js Normal file
View File

@ -0,0 +1,34 @@
import {proxy} from "valtio";
import API from "../services/api"
import Database from '../db'
const state = proxy({
tasks: [],
newTaskBadge: 0
})
const getTasksFromDB = () => {
state.tasks.length = 0
state.tasks.push(
...Database.getAllKeys()
.filter(key => key.startsWith('task.'))
.map(key => JSON.parse(Database.getString(key)))
)
}
export const getTasks = async () => {
API.getTasks()
.then(() => getTasksFromDB())
.catch(() => {
console.log("No internet connection")
getTasksFromDB()
})
}
export const increaseNewTaskBadge = () => {
state.newTaskBadge++
}
export default state;

197
yarn.lock
View File

@ -1132,6 +1132,13 @@
resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310"
integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==
"@babel/runtime@7.21.0":
version "7.21.0"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.21.0.tgz#5b55c9d394e5fcf304909a8b00c07dc217b56673"
integrity sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==
dependencies:
regenerator-runtime "^0.13.11"
"@babel/runtime@^7.0.0", "@babel/runtime@^7.18.6", "@babel/runtime@^7.20.0", "@babel/runtime@^7.8.4": "@babel/runtime@^7.0.0", "@babel/runtime@^7.18.6", "@babel/runtime@^7.20.0", "@babel/runtime@^7.8.4":
version "7.23.6" version "7.23.6"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.6.tgz#c05e610dc228855dc92ef1b53d07389ed8ab521d" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.6.tgz#c05e610dc228855dc92ef1b53d07389ed8ab521d"
@ -1536,6 +1543,17 @@
webpack-dev-server "^4.11.1" webpack-dev-server "^4.11.1"
webpack-manifest-plugin "^4.1.1" webpack-manifest-plugin "^4.1.1"
"@expo/websql@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@expo/websql/-/websql-1.0.1.tgz#fff0cf9c1baa1f70f9e1d658b7c39a420d9b10a9"
integrity sha512-H9/t1V7XXyKC343FJz/LwaVBfDhs6IqhDtSYWpt8LNSQDVjf5NvVJLc5wp+KCpRidZx8+0+YeHJN45HOXmqjFA==
dependencies:
argsarray "^0.0.1"
immediate "^3.2.2"
noop-fn "^1.0.0"
pouchdb-collections "^1.0.1"
tiny-queue "^0.2.1"
"@expo/xcpretty@^4.2.1": "@expo/xcpretty@^4.2.1":
version "4.2.2" version "4.2.2"
resolved "https://registry.yarnpkg.com/@expo/xcpretty/-/xcpretty-4.2.2.tgz#7890f86b017015be8a20242ae74fe6ed4b80a92c" resolved "https://registry.yarnpkg.com/@expo/xcpretty/-/xcpretty-4.2.2.tgz#7890f86b017015be8a20242ae74fe6ed4b80a92c"
@ -1683,6 +1701,11 @@
resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b" resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b"
integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A== integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==
"@morrowdigital/watermelondb-expo-plugin@^2.1.2":
version "2.1.2"
resolved "https://registry.yarnpkg.com/@morrowdigital/watermelondb-expo-plugin/-/watermelondb-expo-plugin-2.1.2.tgz#7c511d671cba68984d5b77a78d3b998bfb57a750"
integrity sha512-mN/CISFEoA4w9HH62gQ7hHefpoNEGSp3eEs8kRUwtNpumBEr1Of8EEN1sNGmfB0IhB62Rj5gbFC+eBVhas4YXQ==
"@nodelib/fs.scandir@2.1.5": "@nodelib/fs.scandir@2.1.5":
version "2.1.5" version "2.1.5"
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
@ -1704,6 +1727,29 @@
"@nodelib/fs.scandir" "2.1.5" "@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0" fastq "^1.6.0"
"@nozbe/simdjson@3.1.0-wmelon1":
version "3.1.0-wmelon1"
resolved "https://registry.yarnpkg.com/@nozbe/simdjson/-/simdjson-3.1.0-wmelon1.tgz#e02048b41d2b3662ddf1dc8c979a3a36fd389dfb"
integrity sha512-PQaHHQyvASrcrfzqkZ4ona43m0UjN81NuTWt6rJkOUePGDjxc8MNp2Q7jcod1CIdTsXJ13wRWeFbquwNfhpIQQ==
"@nozbe/sqlite@3.40.1":
version "3.40.1"
resolved "https://registry.yarnpkg.com/@nozbe/sqlite/-/sqlite-3.40.1.tgz#4218074ce8c87c859465dd2db28cd4b2fc7192b9"
integrity sha512-uKJOW4sQi3neCmgKhqLr0IJKlb2y5q2p05U5CEDJrCxSyD2uVYvSdh7IMrPjF4sWtzc/Lnk462M4vde7Dn5NSw==
"@nozbe/watermelondb@^0.27.1":
version "0.27.1"
resolved "https://registry.yarnpkg.com/@nozbe/watermelondb/-/watermelondb-0.27.1.tgz#06fdae74c986a9149fb7bfc52ae41da4b99d802b"
integrity sha512-41Nlq0FMGkcr2CUgtPRQRVAbA8VYI6fpeGlX4eoiLhoh3nbPIlX4RIcjLIEoyGgkCUSNSnNvXrv0RMIJRl4nZQ==
dependencies:
"@babel/runtime" "7.21.0"
"@nozbe/simdjson" "3.1.0-wmelon1"
"@nozbe/sqlite" "3.40.1"
hoist-non-react-statics "^3.3.2"
lokijs "npm:@nozbe/lokijs@1.5.12-wmelon6"
rxjs "^7.8.0"
sql-escape-string "^1.1.0"
"@npmcli/fs@^1.0.0": "@npmcli/fs@^1.0.0":
version "1.1.1" version "1.1.1"
resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-1.1.1.tgz#72f719fe935e687c56a4faecf3c03d06ba593257" resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-1.1.1.tgz#72f719fe935e687c56a4faecf3c03d06ba593257"
@ -1958,6 +2004,14 @@
resolved "https://registry.yarnpkg.com/@react-navigation/elements/-/elements-1.3.21.tgz#debac6becc6b6692da09ec30e705e476a780dfe1" resolved "https://registry.yarnpkg.com/@react-navigation/elements/-/elements-1.3.21.tgz#debac6becc6b6692da09ec30e705e476a780dfe1"
integrity sha512-eyS2C6McNR8ihUoYfc166O1D8VYVh9KIl0UQPI8/ZJVsStlfSTgeEEh+WXge6+7SFPnZ4ewzEJdSAHH+jzcEfg== integrity sha512-eyS2C6McNR8ihUoYfc166O1D8VYVh9KIl0UQPI8/ZJVsStlfSTgeEEh+WXge6+7SFPnZ4ewzEJdSAHH+jzcEfg==
"@react-navigation/material-top-tabs@^6.6.5":
version "6.6.5"
resolved "https://registry.yarnpkg.com/@react-navigation/material-top-tabs/-/material-top-tabs-6.6.5.tgz#5cfc33e0d02f2dcd1a0654284704f4eef1d16697"
integrity sha512-ovKc+ltWYJwu3ju5sw1txBTMemlRM85/JceSrkqU++QnL9l0TAPiPxDlO+wJddR1iwi+P6zj5/+QkXR5Ku+trw==
dependencies:
color "^4.2.3"
warn-once "^0.1.0"
"@react-navigation/native-stack@^6.9.17": "@react-navigation/native-stack@^6.9.17":
version "6.9.17" version "6.9.17"
resolved "https://registry.yarnpkg.com/@react-navigation/native-stack/-/native-stack-6.9.17.tgz#4fc370b14be07296423ae8c00940fb002c6001b5" resolved "https://registry.yarnpkg.com/@react-navigation/native-stack/-/native-stack-6.9.17.tgz#4fc370b14be07296423ae8c00940fb002c6001b5"
@ -2610,7 +2664,7 @@ ajv@^6.12.4, ajv@^6.12.5:
json-schema-traverse "^0.4.1" json-schema-traverse "^0.4.1"
uri-js "^4.2.2" uri-js "^4.2.2"
ajv@^8.0.0, ajv@^8.9.0: ajv@^8.0.0, ajv@^8.11.0, ajv@^8.9.0:
version "8.12.0" version "8.12.0"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1" resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1"
integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==
@ -2715,6 +2769,11 @@ argparse@^2.0.1:
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
argsarray@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/argsarray/-/argsarray-0.0.1.tgz#6e7207b4ecdb39b0af88303fa5ae22bda8df61cb"
integrity sha512-u96dg2GcAKtpTrBdDoFIM7PjcBA+6rSP0OR94MOReNRyUECL6MtQt5XXmRr4qrftYaef9+l5hcpO5te7sML1Cg==
array-flatten@1.1.1: array-flatten@1.1.1:
version "1.1.1" version "1.1.1"
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
@ -2784,6 +2843,15 @@ at-least-node@^1.0.0:
resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2"
integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==
axios@^1.6.5:
version "1.6.5"
resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.5.tgz#2c090da14aeeab3770ad30c3a1461bc970fb0cd8"
integrity sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==
dependencies:
follow-redirects "^1.15.4"
form-data "^4.0.0"
proxy-from-env "^1.1.0"
babel-core@^7.0.0-bridge.0: babel-core@^7.0.0-bridge.0:
version "7.0.0-bridge.0" version "7.0.0-bridge.0"
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece"
@ -3898,6 +3966,11 @@ deprecated-react-native-prop-types@4.1.0:
invariant "*" invariant "*"
prop-types "*" prop-types "*"
derive-valtio@0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/derive-valtio/-/derive-valtio-0.1.0.tgz#4b9fb393dfefccfef15fcbbddd745dd22d5d63d7"
integrity sha512-OCg2UsLbXK7GmmpzMXhYkdO64vhJ1ROUUGaTFyHjVwEdMEcTTRj7W1TxLbSBxdY8QLBPCcp66MTyaSy0RpO17A==
destroy@1.2.0: destroy@1.2.0:
version "1.2.0" version "1.2.0"
resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015"
@ -4235,6 +4308,19 @@ expo-asset@~8.10.1:
path-browserify "^1.0.0" path-browserify "^1.0.0"
url-parse "^1.5.9" url-parse "^1.5.9"
expo-blur@~12.4.1:
version "12.4.1"
resolved "https://registry.yarnpkg.com/expo-blur/-/expo-blur-12.4.1.tgz#b391de84914ef9ece0702378e51e09461ad565ab"
integrity sha512-lGN8FS9LuGUlEriULTC62cCWyg5V7zSVQeJ6Duh1wSq8aAETinZ2/7wrT6o+Uhd/XVVxFNON2T25AGCOtMG6ew==
expo-build-properties@^0.8.3:
version "0.8.3"
resolved "https://registry.yarnpkg.com/expo-build-properties/-/expo-build-properties-0.8.3.tgz#fbfa156e9619bebda71c66af9a26ebc3490b2365"
integrity sha512-kEDDuAadHqJTkvCGK4fXYHVrePiJO1DjyW95AicmwuGwQvGJydYFbuoauf9ybAU+4UH4arhbce8gHI3ZpIj3Jw==
dependencies:
ajv "^8.11.0"
semver "^7.5.3"
expo-constants@~14.4.2: expo-constants@~14.4.2:
version "14.4.2" version "14.4.2"
resolved "https://registry.yarnpkg.com/expo-constants/-/expo-constants-14.4.2.tgz#cac5e8b524069545739b8d8595ce96cc5be6578c" resolved "https://registry.yarnpkg.com/expo-constants/-/expo-constants-14.4.2.tgz#cac5e8b524069545739b8d8595ce96cc5be6578c"
@ -4297,6 +4383,20 @@ expo-pwa@0.0.127:
commander "2.20.0" commander "2.20.0"
update-check "1.5.3" update-check "1.5.3"
expo-splash-screen@~0.20.5:
version "0.20.5"
resolved "https://registry.yarnpkg.com/expo-splash-screen/-/expo-splash-screen-0.20.5.tgz#ebeba3e3977606830f74f506ab2cc25042bb7efd"
integrity sha512-nTALYdjHpeEA30rdOWSguxn72ctv8WM8ptuUgpfRgsWyn4i6rwYds/rBXisX69XO5fg+XjHAQqijGx/b28+3tg==
dependencies:
"@expo/prebuild-config" "6.2.6"
expo-sqlite@~11.3.3:
version "11.3.3"
resolved "https://registry.yarnpkg.com/expo-sqlite/-/expo-sqlite-11.3.3.tgz#5b07e7ffd744d2d04fe2075ec6fac834c78a5f53"
integrity sha512-73n+mhwi5mO28oVVrDGYcjy28XeUjNtpXVPtEmc+sr/NQ0hKlkIf2PD3/gKsyNuI8O/twNCZxsAQdM32yHGr8A==
dependencies:
"@expo/websql" "^1.0.1"
expo-status-bar@~1.6.0: expo-status-bar@~1.6.0:
version "1.6.0" version "1.6.0"
resolved "https://registry.yarnpkg.com/expo-status-bar/-/expo-status-bar-1.6.0.tgz#e79ffdb9a84d2e0ec9a0dc7392d9ab364fefa9cf" resolved "https://registry.yarnpkg.com/expo-status-bar/-/expo-status-bar-1.6.0.tgz#e79ffdb9a84d2e0ec9a0dc7392d9ab364fefa9cf"
@ -4563,6 +4663,11 @@ follow-redirects@^1.0.0:
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a"
integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q== integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==
follow-redirects@^1.15.4:
version "1.15.5"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.5.tgz#54d4d6d062c0fa7d9d17feb008461550e3ba8020"
integrity sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==
fontfaceobserver@^2.1.0: fontfaceobserver@^2.1.0:
version "2.3.0" version "2.3.0"
resolved "https://registry.yarnpkg.com/fontfaceobserver/-/fontfaceobserver-2.3.0.tgz#5fb392116e75d5024b7ec8e4f2ce92106d1488c8" resolved "https://registry.yarnpkg.com/fontfaceobserver/-/fontfaceobserver-2.3.0.tgz#5fb392116e75d5024b7ec8e4f2ce92106d1488c8"
@ -4577,6 +4682,15 @@ form-data@^3.0.1:
combined-stream "^1.0.8" combined-stream "^1.0.8"
mime-types "^2.1.12" mime-types "^2.1.12"
form-data@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
dependencies:
asynckit "^0.4.0"
combined-stream "^1.0.8"
mime-types "^2.1.12"
forwarded@0.2.0: forwarded@0.2.0:
version "0.2.0" version "0.2.0"
resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811"
@ -4882,7 +4996,7 @@ hermes-profile-transformer@^0.0.6:
dependencies: dependencies:
source-map "^0.7.3" source-map "^0.7.3"
hoist-non-react-statics@^3.3.0: hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.2:
version "3.3.2" version "3.3.2"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45" resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw== integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
@ -5050,6 +5164,11 @@ image-size@^1.0.2:
dependencies: dependencies:
queue "6.0.2" queue "6.0.2"
immediate@^3.2.2:
version "3.3.0"
resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.3.0.tgz#1aef225517836bcdf7f2a2de2600c79ff0269266"
integrity sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q==
import-fresh@^2.0.0: import-fresh@^2.0.0:
version "2.0.0" version "2.0.0"
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546"
@ -5728,6 +5847,11 @@ logkitty@^0.7.1:
dayjs "^1.8.15" dayjs "^1.8.15"
yargs "^15.1.0" yargs "^15.1.0"
"lokijs@npm:@nozbe/lokijs@1.5.12-wmelon6":
version "1.5.12-wmelon6"
resolved "https://registry.yarnpkg.com/@nozbe/lokijs/-/lokijs-1.5.12-wmelon6.tgz#e457d934d614d5df80105c86314252a6e614df9b"
integrity sha512-GXsaqY8qTJ6xdCrGyno2t+ON2aj6PrUDdvhbrkxK/0Fp12C4FGvDg1wS+voLU9BANYHEnr7KRWfItDZnQkjoAg==
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
version "1.4.0" version "1.4.0"
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
@ -6398,6 +6522,11 @@ node-stream-zip@^1.9.1:
resolved "https://registry.yarnpkg.com/node-stream-zip/-/node-stream-zip-1.15.0.tgz#158adb88ed8004c6c49a396b50a6a5de3bca33ea" resolved "https://registry.yarnpkg.com/node-stream-zip/-/node-stream-zip-1.15.0.tgz#158adb88ed8004c6c49a396b50a6a5de3bca33ea"
integrity sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw== integrity sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==
noop-fn@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/noop-fn/-/noop-fn-1.0.0.tgz#5f33d47f13d2150df93e0cb036699e982f78ffbf"
integrity sha512-pQ8vODlgXt2e7A3mIbFDlizkr46r75V+BJxVAyat8Jl7YmI513gG5cfyRL0FedKraoZ+VAouI1h4/IWpus5pcQ==
normalize-path@^3.0.0, normalize-path@~3.0.0: normalize-path@^3.0.0, normalize-path@~3.0.0:
version "3.0.0" version "3.0.0"
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
@ -7065,6 +7194,11 @@ postcss@^8.3.5, postcss@^8.4.21, postcss@~8.4.21:
picocolors "^1.0.0" picocolors "^1.0.0"
source-map-js "^1.0.2" source-map-js "^1.0.2"
pouchdb-collections@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/pouchdb-collections/-/pouchdb-collections-1.0.1.tgz#fe63a17da977611abef7cb8026cb1a9553fd8359"
integrity sha512-31db6JRg4+4D5Yzc2nqsRqsA2oOkZS8DpFav3jf/qVNBxusKa2ClkEIZ2bJNpaDbMfWtnuSq59p6Bn+CipPMdg==
pretty-bytes@5.6.0: pretty-bytes@5.6.0:
version "5.6.0" version "5.6.0"
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb" resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb"
@ -7151,6 +7285,16 @@ proxy-addr@~2.0.7:
forwarded "0.2.0" forwarded "0.2.0"
ipaddr.js "1.9.1" ipaddr.js "1.9.1"
proxy-compare@2.5.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/proxy-compare/-/proxy-compare-2.5.1.tgz#17818e33d1653fbac8c2ec31406bce8a2966f600"
integrity sha512-oyfc0Tx87Cpwva5ZXezSp5V9vht1c7dZBhvuV/y3ctkgMVUmiAGDVeeB0dKhGSyT0v1ZTEQYpe/RXlBVBNuCLA==
proxy-from-env@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
pump@^3.0.0: pump@^3.0.0:
version "3.0.0" version "3.0.0"
resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64"
@ -7292,6 +7436,16 @@ react-native-gesture-handler@~2.12.0:
lodash "^4.17.21" lodash "^4.17.21"
prop-types "^15.7.2" prop-types "^15.7.2"
react-native-mmkv@^2.11.0:
version "2.11.0"
resolved "https://registry.yarnpkg.com/react-native-mmkv/-/react-native-mmkv-2.11.0.tgz#51b9985f6a5c09fe9c16d8c1861cc2901856ace1"
integrity sha512-28PdUHjZJmAw3q+8zJDAAdohnZMpDC7WgRUJxACOMkcmJeqS3u5cKS/lSq2bhf1CvaeIiHYHUWiyatUjMRCDQQ==
react-native-pager-view@^6.2.3:
version "6.2.3"
resolved "https://registry.yarnpkg.com/react-native-pager-view/-/react-native-pager-view-6.2.3.tgz#698f6387fdf06cecc3d8d4792604419cb89cb775"
integrity sha512-dqVpXWFtPNfD3D2QQQr8BP+ullS5MhjRJuF8Z/qml4QTILcrWaW8F5iAxKkQR3Jl0ikcEryG/+SQlNcwlo0Ggg==
react-native-safe-area-context@4.6.3: react-native-safe-area-context@4.6.3:
version "4.6.3" version "4.6.3"
resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-4.6.3.tgz#f06cfea05b1c4b018aa9758667a109f619c62b55" resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-4.6.3.tgz#f06cfea05b1c4b018aa9758667a109f619c62b55"
@ -7323,6 +7477,13 @@ react-native-svg@13.9.0:
css-select "^5.1.0" css-select "^5.1.0"
css-tree "^1.1.3" css-tree "^1.1.3"
react-native-tab-view@^3.5.2:
version "3.5.2"
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-3.5.2.tgz#2789b8af6148b16835869566bf13dc3b0e6c1b46"
integrity sha512-nE5WqjbeEPsWQx4mtz81QGVvgHRhujTNIIZiMCx3Bj6CBFDafbk7XZp9ocmtzXUQaZ4bhtVS43R4FIiR4LboJw==
dependencies:
use-latest-callback "^0.1.5"
react-native-web@~0.19.6: react-native-web@~0.19.6:
version "0.19.9" version "0.19.9"
resolved "https://registry.yarnpkg.com/react-native-web/-/react-native-web-0.19.9.tgz#6ee43e6c64d886b1d739f100fed07927541ee003" resolved "https://registry.yarnpkg.com/react-native-web/-/react-native-web-0.19.9.tgz#6ee43e6c64d886b1d739f100fed07927541ee003"
@ -7455,7 +7616,7 @@ regenerate@^1.4.2:
resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a"
integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==
regenerator-runtime@^0.13.2: regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.2:
version "0.13.11" version "0.13.11"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==
@ -7653,6 +7814,13 @@ run-parallel@^1.1.9:
dependencies: dependencies:
queue-microtask "^1.2.2" queue-microtask "^1.2.2"
rxjs@^7.8.0:
version "7.8.1"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543"
integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==
dependencies:
tslib "^2.1.0"
safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
version "5.1.2" version "5.1.2"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
@ -8054,6 +8222,11 @@ sprintf-js@~1.0.2:
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==
sql-escape-string@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/sql-escape-string/-/sql-escape-string-1.1.0.tgz#fe744b8514868c0eb4bfb9e4a989271d40f30eb9"
integrity sha512-/kqO4pLZSLfV0KsBM2xkVh2S3GbjJJone37d7gYwLyP0c+REh3vnmkhQ7VwNrX76igC0OhJWpTg0ukkdef9vvA==
ssri@^8.0.1: ssri@^8.0.1:
version "8.0.1" version "8.0.1"
resolved "https://registry.yarnpkg.com/ssri/-/ssri-8.0.1.tgz#638e4e439e2ffbd2cd289776d5ca457c4f51a2af" resolved "https://registry.yarnpkg.com/ssri/-/ssri-8.0.1.tgz#638e4e439e2ffbd2cd289776d5ca457c4f51a2af"
@ -8403,6 +8576,11 @@ thunky@^1.0.2:
resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d" resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d"
integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA== integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==
tiny-queue@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/tiny-queue/-/tiny-queue-0.2.1.tgz#25a67f2c6e253b2ca941977b5ef7442ef97a6046"
integrity sha512-EijGsv7kzd9I9g0ByCl6h42BWNGUZrlCSejfrb3AKeHC33SGbASu1VDf5O3rRiiUOhAC9CHdZxFPbZu0HmR70A==
tmp@^0.0.33: tmp@^0.0.33:
version "0.0.33" version "0.0.33"
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
@ -8615,12 +8793,12 @@ url-parse@^1.5.9:
querystringify "^2.1.1" querystringify "^2.1.1"
requires-port "^1.0.0" requires-port "^1.0.0"
use-latest-callback@^0.1.7: use-latest-callback@^0.1.5, use-latest-callback@^0.1.7:
version "0.1.9" version "0.1.9"
resolved "https://registry.yarnpkg.com/use-latest-callback/-/use-latest-callback-0.1.9.tgz#10191dc54257e65a8e52322127643a8940271e2a" resolved "https://registry.yarnpkg.com/use-latest-callback/-/use-latest-callback-0.1.9.tgz#10191dc54257e65a8e52322127643a8940271e2a"
integrity sha512-CL/29uS74AwreI/f2oz2hLTW7ZqVeV5+gxFeGudzQrgkCytrHw33G4KbnQOrRlAEzzAFXi7dDLMC9zhWcVpzmw== integrity sha512-CL/29uS74AwreI/f2oz2hLTW7ZqVeV5+gxFeGudzQrgkCytrHw33G4KbnQOrRlAEzzAFXi7dDLMC9zhWcVpzmw==
use-sync-external-store@^1.0.0: use-sync-external-store@1.2.0, use-sync-external-store@^1.0.0:
version "1.2.0" version "1.2.0"
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a"
integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==
@ -8667,6 +8845,15 @@ validate-npm-package-name@^3.0.0:
dependencies: dependencies:
builtins "^1.0.3" builtins "^1.0.3"
valtio@^1.12.1:
version "1.12.1"
resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.12.1.tgz#741f8bd46586f8c4b1a7639b1348252a052b746e"
integrity sha512-R0V4H86Xi2Pp7pmxN/EtV4Q6jr6PMN3t1IwxEvKUp6160r8FimvPh941oWyeK1iec/DTsh9Jb3Q+GputMS8SYg==
dependencies:
derive-valtio "0.1.0"
proxy-compare "2.5.1"
use-sync-external-store "1.2.0"
vary@~1.1.2: vary@~1.1.2:
version "1.1.2" version "1.1.2"
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"