Преглед на файлове

Initial commit

Generated by create-react-native-app 3.6.0.
master
DemiBSel преди 2 години
ревизия
3cc46414ca
променени са 59 файла, в които са добавени 9698 реда и са изтрити 0 реда
  1. 6
    0
      .buckconfig
  2. 1
    0
      .gitattributes
  3. 55
    0
      .gitignore
  4. 21
    0
      App.js
  5. 10
    0
      __tests__/App.js
  6. 55
    0
      android/app/BUCK
  7. 244
    0
      android/app/build.gradle
  8. 19
    0
      android/app/build_defs.bzl
  9. Двоични данни
      android/app/debug.keystore
  10. 10
    0
      android/app/proguard-rules.pro
  11. 7
    0
      android/app/src/debug/AndroidManifest.xml
  12. 69
    0
      android/app/src/debug/java/com/budgetizr/ReactNativeFlipper.java
  13. 32
    0
      android/app/src/main/AndroidManifest.xml
  14. 42
    0
      android/app/src/main/java/com/budgetizr/MainActivity.java
  15. 103
    0
      android/app/src/main/java/com/budgetizr/MainApplication.java
  16. 7
    0
      android/app/src/main/res/drawable/splashscreen.xml
  17. Двоични данни
      android/app/src/main/res/drawable/splashscreen_image.png
  18. Двоични данни
      android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  19. Двоични данни
      android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
  20. Двоични данни
      android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  21. Двоични данни
      android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
  22. Двоични данни
      android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  23. Двоични данни
      android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
  24. Двоични данни
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  25. Двоични данни
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
  26. Двоични данни
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  27. Двоични данни
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
  28. 5
    0
      android/app/src/main/res/values/colors.xml
  29. 3
    0
      android/app/src/main/res/values/strings.xml
  30. 16
    0
      android/app/src/main/res/values/styles.xml
  31. 40
    0
      android/build.gradle
  32. 41
    0
      android/gradle.properties
  33. Двоични данни
      android/gradle/wrapper/gradle-wrapper.jar
  34. 5
    0
      android/gradle/wrapper/gradle-wrapper.properties
  35. 183
    0
      android/gradlew
  36. 103
    0
      android/gradlew.bat
  37. 9
    0
      android/settings.gradle
  38. 11
    0
      app.json
  39. 7
    0
      babel.config.js
  40. 9
    0
      index.js
  41. 41
    0
      ios/Podfile
  42. 3
    0
      ios/Podfile.properties.json
  43. 477
    0
      ios/budgetizr.xcodeproj/project.pbxproj
  44. 88
    0
      ios/budgetizr.xcodeproj/xcshareddata/xcschemes/budgetizr.xcscheme
  45. 9
    0
      ios/budgetizr/AppDelegate.h
  46. 82
    0
      ios/budgetizr/AppDelegate.m
  47. 38
    0
      ios/budgetizr/Images.xcassets/AppIcon.appiconset/Contents.json
  48. 6
    0
      ios/budgetizr/Images.xcassets/Contents.json
  49. 21
    0
      ios/budgetizr/Images.xcassets/SplashScreen.imageset/Contents.json
  50. Двоични данни
      ios/budgetizr/Images.xcassets/SplashScreen.imageset/splashscreen.png
  51. 21
    0
      ios/budgetizr/Images.xcassets/SplashScreenBackground.imageset/Contents.json
  52. Двоични данни
      ios/budgetizr/Images.xcassets/SplashScreenBackground.imageset/background.png
  53. 55
    0
      ios/budgetizr/Info.plist
  54. 91
    0
      ios/budgetizr/SplashScreen.storyboard
  55. 10
    0
      ios/budgetizr/Supporting/Expo.plist
  56. 10
    0
      ios/budgetizr/main.m
  57. 4
    0
      metro.config.js
  58. 7602
    0
      package-lock.json
  59. 27
    0
      package.json

+ 6
- 0
.buckconfig Целия файл

@@ -0,0 +1,6 @@
1
+
2
+[android]
3
+  target = Google Inc.:Google APIs:23
4
+
5
+[maven_repositories]
6
+  central = https://repo1.maven.org/maven2

+ 1
- 0
.gitattributes Целия файл

@@ -0,0 +1 @@
1
+*.pbxproj -text

+ 55
- 0
.gitignore Целия файл

@@ -0,0 +1,55 @@
1
+# OSX
2
+#
3
+.DS_Store
4
+
5
+# Xcode
6
+#
7
+build/
8
+*.pbxuser
9
+!default.pbxuser
10
+*.mode1v3
11
+!default.mode1v3
12
+*.mode2v3
13
+!default.mode2v3
14
+*.perspectivev3
15
+!default.perspectivev3
16
+xcuserdata
17
+*.xccheckout
18
+*.moved-aside
19
+DerivedData
20
+*.hmap
21
+*.ipa
22
+*.xcuserstate
23
+project.xcworkspace
24
+
25
+# Android/IntelliJ
26
+#
27
+build/
28
+.idea
29
+.gradle
30
+local.properties
31
+*.iml
32
+*.hprof
33
+
34
+# node.js
35
+#
36
+node_modules/
37
+npm-debug.log
38
+yarn-error.log
39
+
40
+# BUCK
41
+buck-out/
42
+\.buckd/
43
+*.keystore
44
+!debug.keystore
45
+
46
+# Bundle artifacts
47
+*.jsbundle
48
+
49
+# CocoaPods
50
+/ios/Pods/
51
+
52
+# Expo
53
+.expo/
54
+web-build/
55
+dist/

+ 21
- 0
App.js Целия файл

@@ -0,0 +1,21 @@
1
+import { StatusBar } from 'expo-status-bar';
2
+import React from 'react';
3
+import { StyleSheet, Text, View } from 'react-native';
4
+
5
+export default function App() {
6
+  return (
7
+    <View style={styles.container}>
8
+      <Text>Open up App.js to start working on your app!</Text>
9
+      <StatusBar style="auto" />
10
+    </View>
11
+  );
12
+}
13
+
14
+const styles = StyleSheet.create({
15
+  container: {
16
+    flex: 1,
17
+    backgroundColor: '#fff',
18
+    alignItems: 'center',
19
+    justifyContent: 'center',
20
+  },
21
+});

+ 10
- 0
__tests__/App.js Целия файл

@@ -0,0 +1,10 @@
1
+import 'react-native';
2
+import React from 'react';
3
+import App from '../App';
4
+
5
+// Note: test renderer must be required after react-native.
6
+import renderer from 'react-test-renderer';
7
+
8
+it('renders correctly', () => {
9
+  renderer.create(<App />);
10
+});

+ 55
- 0
android/app/BUCK Целия файл

@@ -0,0 +1,55 @@
1
+# To learn about Buck see [Docs](https://buckbuild.com/).
2
+# To run your application with Buck:
3
+# - install Buck
4
+# - `npm start` - to start the packager
5
+# - `cd android`
6
+# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7
+# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8
+# - `buck install -r android/app` - compile, install and run application
9
+#
10
+
11
+load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12
+
13
+lib_deps = []
14
+
15
+create_aar_targets(glob(["libs/*.aar"]))
16
+
17
+create_jar_targets(glob(["libs/*.jar"]))
18
+
19
+android_library(
20
+    name = "all-libs",
21
+    exported_deps = lib_deps,
22
+)
23
+
24
+android_library(
25
+    name = "app-code",
26
+    srcs = glob([
27
+        "src/main/java/**/*.java",
28
+    ]),
29
+    deps = [
30
+        ":all-libs",
31
+        ":build_config",
32
+        ":res",
33
+    ],
34
+)
35
+
36
+android_build_config(
37
+    name = "build_config",
38
+    package = "com.budgetizr",
39
+)
40
+
41
+android_resource(
42
+    name = "res",
43
+    package = "com.budgetizr",
44
+    res = "src/main/res",
45
+)
46
+
47
+android_binary(
48
+    name = "app",
49
+    keystore = "//android/keystores:debug",
50
+    manifest = "src/main/AndroidManifest.xml",
51
+    package_type = "debug",
52
+    deps = [
53
+        ":app-code",
54
+    ],
55
+)

+ 244
- 0
android/app/build.gradle Целия файл

@@ -0,0 +1,244 @@
1
+apply plugin: "com.android.application"
2
+
3
+import com.android.build.OutputFile
4
+
5
+/**
6
+ * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7
+ * and bundleReleaseJsAndAssets).
8
+ * These basically call `react-native bundle` with the correct arguments during the Android build
9
+ * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10
+ * bundle directly from the development server. Below you can see all the possible configurations
11
+ * and their defaults. If you decide to add a configuration block, make sure to add it before the
12
+ * `apply from: "../../node_modules/react-native/react.gradle"` line.
13
+ *
14
+ * project.ext.react = [
15
+ *   // the name of the generated asset file containing your JS bundle
16
+ *   bundleAssetName: "index.android.bundle",
17
+ *
18
+ *   // the entry file for bundle generation. If none specified and
19
+ *   // "index.android.js" exists, it will be used. Otherwise "index.js" is
20
+ *   // default. Can be overridden with ENTRY_FILE environment variable.
21
+ *   entryFile: "index.android.js",
22
+ *
23
+ *   // https://reactnative.dev/docs/performance#enable-the-ram-format
24
+ *   bundleCommand: "ram-bundle",
25
+ *
26
+ *   // whether to bundle JS and assets in debug mode
27
+ *   bundleInDebug: false,
28
+ *
29
+ *   // whether to bundle JS and assets in release mode
30
+ *   bundleInRelease: true,
31
+ *
32
+ *   // whether to bundle JS and assets in another build variant (if configured).
33
+ *   // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
34
+ *   // The configuration property can be in the following formats
35
+ *   //         'bundleIn${productFlavor}${buildType}'
36
+ *   //         'bundleIn${buildType}'
37
+ *   // bundleInFreeDebug: true,
38
+ *   // bundleInPaidRelease: true,
39
+ *   // bundleInBeta: true,
40
+ *
41
+ *   // whether to disable dev mode in custom build variants (by default only disabled in release)
42
+ *   // for example: to disable dev mode in the staging build type (if configured)
43
+ *   devDisabledInStaging: true,
44
+ *   // The configuration property can be in the following formats
45
+ *   //         'devDisabledIn${productFlavor}${buildType}'
46
+ *   //         'devDisabledIn${buildType}'
47
+ *
48
+ *   // the root of your project, i.e. where "package.json" lives
49
+ *   root: "../../",
50
+ *
51
+ *   // where to put the JS bundle asset in debug mode
52
+ *   jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
53
+ *
54
+ *   // where to put the JS bundle asset in release mode
55
+ *   jsBundleDirRelease: "$buildDir/intermediates/assets/release",
56
+ *
57
+ *   // where to put drawable resources / React Native assets, e.g. the ones you use via
58
+ *   // require('./image.png')), in debug mode
59
+ *   resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
60
+ *
61
+ *   // where to put drawable resources / React Native assets, e.g. the ones you use via
62
+ *   // require('./image.png')), in release mode
63
+ *   resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
64
+ *
65
+ *   // by default the gradle tasks are skipped if none of the JS files or assets change; this means
66
+ *   // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
67
+ *   // date; if you have any other folders that you want to ignore for performance reasons (gradle
68
+ *   // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
69
+ *   // for example, you might want to remove it from here.
70
+ *   inputExcludes: ["android/**", "ios/**"],
71
+ *
72
+ *   // override which node gets called and with what additional arguments
73
+ *   nodeExecutableAndArgs: ["node"],
74
+ *
75
+ *   // supply additional arguments to the packager
76
+ *   extraPackagerArgs: []
77
+ * ]
78
+ */
79
+
80
+project.ext.react = [
81
+    enableHermes: (findProperty('expo.jsEngine') ?: "jsc") == "hermes",
82
+    cliPath: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/cli.js",
83
+    hermesCommand: new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/%OS-BIN%/hermesc",
84
+    composeSourceMapsPath: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/scripts/compose-source-maps.js",
85
+]
86
+
87
+apply from: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../react.gradle")
88
+
89
+/**
90
+ * Set this to true to create two separate APKs instead of one:
91
+ *   - An APK that only works on ARM devices
92
+ *   - An APK that only works on x86 devices
93
+ * The advantage is the size of the APK is reduced by about 4MB.
94
+ * Upload all the APKs to the Play Store and people will download
95
+ * the correct one based on the CPU architecture of their device.
96
+ */
97
+def enableSeparateBuildPerCPUArchitecture = false
98
+
99
+/**
100
+ * Run Proguard to shrink the Java bytecode in release builds.
101
+ */
102
+def enableProguardInReleaseBuilds = false
103
+
104
+/**
105
+ * The preferred build flavor of JavaScriptCore.
106
+ *
107
+ * For example, to use the international variant, you can use:
108
+ * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
109
+ *
110
+ * The international variant includes ICU i18n library and necessary data
111
+ * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
112
+ * give correct results when using with locales other than en-US.  Note that
113
+ * this variant is about 6MiB larger per architecture than default.
114
+ */
115
+def jscFlavor = 'org.webkit:android-jsc:+'
116
+
117
+/**
118
+ * Whether to enable the Hermes VM.
119
+ *
120
+ * This should be set on project.ext.react and mirrored here.  If it is not set
121
+ * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
122
+ * and the benefits of using Hermes will therefore be sharply reduced.
123
+ */
124
+def enableHermes = project.ext.react.get("enableHermes", false);
125
+
126
+android {
127
+    compileSdkVersion rootProject.ext.compileSdkVersion
128
+
129
+    compileOptions {
130
+        sourceCompatibility JavaVersion.VERSION_1_8
131
+        targetCompatibility JavaVersion.VERSION_1_8
132
+    }
133
+
134
+    defaultConfig {
135
+        applicationId "com.budgetizr"
136
+        minSdkVersion rootProject.ext.minSdkVersion
137
+        targetSdkVersion rootProject.ext.targetSdkVersion
138
+        versionCode 1
139
+        versionName "1.0"
140
+    }
141
+    splits {
142
+        abi {
143
+            reset()
144
+            enable enableSeparateBuildPerCPUArchitecture
145
+            universalApk false  // If true, also generate a universal APK
146
+            include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
147
+        }
148
+    }
149
+    signingConfigs {
150
+        debug {
151
+            storeFile file('debug.keystore')
152
+            storePassword 'android'
153
+            keyAlias 'androiddebugkey'
154
+            keyPassword 'android'
155
+        }
156
+    }
157
+    buildTypes {
158
+        debug {
159
+            signingConfig signingConfigs.debug
160
+        }
161
+        release {
162
+            // Caution! In production, you need to generate your own keystore file.
163
+            // see https://reactnative.dev/docs/signed-apk-android.
164
+            signingConfig signingConfigs.debug
165
+            minifyEnabled enableProguardInReleaseBuilds
166
+            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
167
+        }
168
+    }
169
+
170
+    // applicationVariants are e.g. debug, release
171
+    applicationVariants.all { variant ->
172
+        variant.outputs.each { output ->
173
+            // For each separate APK per architecture, set a unique version code as described here:
174
+            // https://developer.android.com/studio/build/configure-apk-splits.html
175
+            def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
176
+            def abi = output.getFilter(OutputFile.ABI)
177
+            if (abi != null) {  // null for the universal-debug, universal-release variants
178
+                output.versionCodeOverride =
179
+                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
180
+            }
181
+
182
+        }
183
+    }
184
+}
185
+
186
+dependencies {
187
+    implementation fileTree(dir: "libs", include: ["*.jar"])
188
+    //noinspection GradleDynamicVersion
189
+    implementation "com.facebook.react:react-native:+"  // From node_modules
190
+
191
+    def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
192
+    def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
193
+    def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";
194
+
195
+    // If your app supports Android versions before Ice Cream Sandwich (API level 14)
196
+    // All fresco packages should use the same version
197
+    if (isGifEnabled || isWebpEnabled) {
198
+        implementation 'com.facebook.fresco:fresco:2.0.0'
199
+        implementation 'com.facebook.fresco:imagepipeline-okhttp3:2.0.0'
200
+    }
201
+
202
+    if (isGifEnabled) {
203
+        // For animated gif support
204
+        implementation 'com.facebook.fresco:animated-gif:2.0.0'
205
+    }
206
+
207
+    if (isWebpEnabled) {
208
+        // For webp support
209
+        implementation 'com.facebook.fresco:webpsupport:2.0.0'
210
+        if (isWebpAnimatedEnabled) {
211
+            // Animated webp support
212
+            implementation 'com.facebook.fresco:animated-webp:2.0.0'
213
+        }
214
+    }
215
+    
216
+    implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
217
+    debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
218
+      exclude group:'com.facebook.fbjni'
219
+    }
220
+    debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
221
+        exclude group:'com.facebook.flipper'
222
+        exclude group:'com.squareup.okhttp3', module:'okhttp'
223
+    }
224
+    debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
225
+        exclude group:'com.facebook.flipper'
226
+    }
227
+
228
+    if (enableHermes) {
229
+        debugImplementation files(new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute(null, rootDir).text.trim(), "../android/hermes-debug.aar"))
230
+        releaseImplementation files(new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute(null, rootDir).text.trim(), "../android/hermes-release.aar"))
231
+    } else {
232
+        implementation jscFlavor
233
+    }
234
+}
235
+
236
+// Run this once to be able to run the application with BUCK
237
+// puts all compile dependencies into folder libs for BUCK to use
238
+task copyDownloadableDepsToLibs(type: Copy) {
239
+    from configurations.compile
240
+    into 'libs'
241
+}
242
+
243
+apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
244
+applyNativeModulesAppBuildGradle(project)

+ 19
- 0
android/app/build_defs.bzl Целия файл

@@ -0,0 +1,19 @@
1
+"""Helper definitions to glob .aar and .jar targets"""
2
+
3
+def create_aar_targets(aarfiles):
4
+    for aarfile in aarfiles:
5
+        name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
6
+        lib_deps.append(":" + name)
7
+        android_prebuilt_aar(
8
+            name = name,
9
+            aar = aarfile,
10
+        )
11
+
12
+def create_jar_targets(jarfiles):
13
+    for jarfile in jarfiles:
14
+        name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
15
+        lib_deps.append(":" + name)
16
+        prebuilt_jar(
17
+            name = name,
18
+            binary_jar = jarfile,
19
+        )

Двоични данни
android/app/debug.keystore Целия файл


+ 10
- 0
android/app/proguard-rules.pro Целия файл

@@ -0,0 +1,10 @@
1
+# Add project specific ProGuard rules here.
2
+# By default, the flags in this file are appended to flags specified
3
+# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4
+# You can edit the include path and order by changing the proguardFiles
5
+# directive in build.gradle.
6
+#
7
+# For more details, see
8
+#   http://developer.android.com/guide/developing/tools/proguard.html
9
+
10
+# Add any project specific keep options here:

+ 7
- 0
android/app/src/debug/AndroidManifest.xml Целия файл

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

+ 69
- 0
android/app/src/debug/java/com/budgetizr/ReactNativeFlipper.java Целия файл

@@ -0,0 +1,69 @@
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
5
+ * directory of this source tree.
6
+ */
7
+package com.budgetizr;
8
+
9
+import android.content.Context;
10
+import com.facebook.flipper.android.AndroidFlipperClient;
11
+import com.facebook.flipper.android.utils.FlipperUtils;
12
+import com.facebook.flipper.core.FlipperClient;
13
+import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14
+import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15
+import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16
+import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17
+import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18
+import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19
+import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20
+import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
21
+import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
22
+import com.facebook.react.ReactInstanceManager;
23
+import com.facebook.react.bridge.ReactContext;
24
+import com.facebook.react.modules.network.NetworkingModule;
25
+import okhttp3.OkHttpClient;
26
+
27
+public class ReactNativeFlipper {
28
+  public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
29
+    if (FlipperUtils.shouldEnableFlipper(context)) {
30
+      final FlipperClient client = AndroidFlipperClient.getInstance(context);
31
+      client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
32
+      client.addPlugin(new ReactFlipperPlugin());
33
+      client.addPlugin(new DatabasesFlipperPlugin(context));
34
+      client.addPlugin(new SharedPreferencesFlipperPlugin(context));
35
+      client.addPlugin(CrashReporterPlugin.getInstance());
36
+      NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
37
+      NetworkingModule.setCustomClientBuilder(
38
+          new NetworkingModule.CustomClientBuilder() {
39
+            @Override
40
+            public void apply(OkHttpClient.Builder builder) {
41
+              builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
42
+            }
43
+          });
44
+      client.addPlugin(networkFlipperPlugin);
45
+      client.start();
46
+      // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
47
+      // Hence we run if after all native modules have been initialized
48
+      ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
49
+      if (reactContext == null) {
50
+        reactInstanceManager.addReactInstanceEventListener(
51
+            new ReactInstanceManager.ReactInstanceEventListener() {
52
+              @Override
53
+              public void onReactContextInitialized(ReactContext reactContext) {
54
+                reactInstanceManager.removeReactInstanceEventListener(this);
55
+                reactContext.runOnNativeModulesQueueThread(
56
+                    new Runnable() {
57
+                      @Override
58
+                      public void run() {
59
+                        client.addPlugin(new FrescoFlipperPlugin());
60
+                      }
61
+                    });
62
+              }
63
+            });
64
+      } else {
65
+        client.addPlugin(new FrescoFlipperPlugin());
66
+      }
67
+    }
68
+  }
69
+}

+ 32
- 0
android/app/src/main/AndroidManifest.xml Целия файл

@@ -0,0 +1,32 @@
1
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.budgetizr">
2
+
3
+  <uses-permission android:name="android.permission.INTERNET"/>
4
+  <!-- OPTIONAL PERMISSIONS, REMOVE WHATEVER YOU DO NOT NEED -->
5
+  <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6
+  <uses-permission android:name="android.permission.VIBRATE"/>
7
+  <!-- These require runtime permissions on M -->
8
+  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
9
+  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
10
+  <!-- END OPTIONAL PERMISSIONS -->
11
+
12
+  <queries>
13
+    <!-- Support checking for http(s) links via the Linking API -->
14
+    <intent>
15
+      <action android:name="android.intent.action.VIEW" />
16
+      <category android:name="android.intent.category.BROWSABLE" />
17
+      <data android:scheme="https" />
18
+    </intent>
19
+  </queries>
20
+
21
+  <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
22
+    <meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="YOUR-APP-URL-HERE"/>
23
+    <meta-data android:name="expo.modules.updates.EXPO_SDK_VERSION" android:value="YOUR-APP-SDK-VERSION-HERE"/>
24
+    <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">
25
+      <intent-filter>
26
+        <action android:name="android.intent.action.MAIN"/>
27
+        <category android:name="android.intent.category.LAUNCHER"/>
28
+      </intent-filter>
29
+    </activity>
30
+    <activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>
31
+  </application>
32
+</manifest>

+ 42
- 0
android/app/src/main/java/com/budgetizr/MainActivity.java Целия файл

@@ -0,0 +1,42 @@
1
+package com.budgetizr;
2
+
3
+import android.os.Bundle;
4
+
5
+import com.facebook.react.ReactActivity;
6
+import com.facebook.react.ReactActivityDelegate;
7
+import com.facebook.react.ReactRootView;
8
+import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
9
+
10
+import expo.modules.ReactActivityDelegateWrapper;
11
+
12
+public class MainActivity extends ReactActivity {
13
+  @Override
14
+  protected void onCreate(Bundle savedInstanceState) {
15
+    // Set the theme to AppTheme BEFORE onCreate to support 
16
+    // coloring the background, status bar, and navigation bar.
17
+    // This is required for expo-splash-screen.
18
+    setTheme(R.style.AppTheme);
19
+    super.onCreate(null);
20
+  }
21
+
22
+  /**
23
+   * Returns the name of the main component registered from JavaScript.
24
+   * This is used to schedule rendering of the component.
25
+   */
26
+  @Override
27
+  protected String getMainComponentName() {
28
+    return "main";
29
+  }
30
+
31
+  @Override
32
+  protected ReactActivityDelegate createReactActivityDelegate() {
33
+    return new ReactActivityDelegateWrapper(
34
+      this,
35
+      new ReactActivityDelegate(this, getMainComponentName()) {
36
+      @Override
37
+      protected ReactRootView createRootView() {
38
+        return new RNGestureHandlerEnabledRootView(MainActivity.this);
39
+      }
40
+    });
41
+  }
42
+}

+ 103
- 0
android/app/src/main/java/com/budgetizr/MainApplication.java Целия файл

@@ -0,0 +1,103 @@
1
+package com.budgetizr;
2
+
3
+import android.app.Application;
4
+import android.content.Context;
5
+import android.content.res.Configuration;
6
+import androidx.annotation.NonNull;
7
+
8
+import com.facebook.react.PackageList;
9
+import com.facebook.react.ReactApplication;
10
+import com.facebook.react.ReactInstanceManager;
11
+import com.facebook.react.ReactNativeHost;
12
+import com.facebook.react.ReactPackage;
13
+import com.facebook.soloader.SoLoader;
14
+
15
+import expo.modules.ApplicationLifecycleDispatcher;
16
+import expo.modules.ReactNativeHostWrapper;
17
+
18
+import com.facebook.react.bridge.JSIModulePackage;
19
+import com.swmansion.reanimated.ReanimatedJSIModulePackage;
20
+
21
+import java.lang.reflect.InvocationTargetException;
22
+import java.util.List;
23
+
24
+public class MainApplication extends Application implements ReactApplication {
25
+  private final ReactNativeHost mReactNativeHost = new ReactNativeHostWrapper(
26
+    this,
27
+    new ReactNativeHost(this) {
28
+    @Override
29
+    public boolean getUseDeveloperSupport() {
30
+      return BuildConfig.DEBUG;
31
+    }
32
+
33
+    @Override
34
+    protected List<ReactPackage> getPackages() {
35
+      @SuppressWarnings("UnnecessaryLocalVariable")
36
+      List<ReactPackage> packages = new PackageList(this).getPackages();
37
+      // Packages that cannot be autolinked yet can be added manually here, for example:
38
+      // packages.add(new MyReactNativePackage());
39
+      return packages;
40
+    }
41
+
42
+    @Override
43
+    protected String getJSMainModuleName() {
44
+      return "index";
45
+    }
46
+
47
+    @Override
48
+    protected JSIModulePackage getJSIModulePackage() {
49
+      return new ReanimatedJSIModulePackage();
50
+    }
51
+  });
52
+
53
+  @Override
54
+  public ReactNativeHost getReactNativeHost() {
55
+    return mReactNativeHost;
56
+  }
57
+
58
+  @Override
59
+  public void onCreate() {
60
+    super.onCreate();
61
+    SoLoader.init(this, /* native exopackage */ false);
62
+
63
+    initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
64
+    ApplicationLifecycleDispatcher.onApplicationCreate(this);
65
+  }
66
+
67
+  @Override
68
+  public void onConfigurationChanged(@NonNull Configuration newConfig) {
69
+    super.onConfigurationChanged(newConfig);
70
+    ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig);
71
+  }
72
+
73
+  /**
74
+   * Loads Flipper in React Native templates. Call this in the onCreate method with something like
75
+   * initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
76
+   *
77
+   * @param context
78
+   * @param reactInstanceManager
79
+   */
80
+  private static void initializeFlipper(
81
+      Context context, ReactInstanceManager reactInstanceManager) {
82
+    if (BuildConfig.DEBUG) {
83
+      try {
84
+        /*
85
+         We use reflection here to pick up the class that initializes Flipper,
86
+        since Flipper library is not available in release mode
87
+        */
88
+        Class<?> aClass = Class.forName("com.budgetizr.ReactNativeFlipper");
89
+        aClass
90
+            .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
91
+            .invoke(null, context, reactInstanceManager);
92
+      } catch (ClassNotFoundException e) {
93
+        e.printStackTrace();
94
+      } catch (NoSuchMethodException e) {
95
+        e.printStackTrace();
96
+      } catch (IllegalAccessException e) {
97
+        e.printStackTrace();
98
+      } catch (InvocationTargetException e) {
99
+        e.printStackTrace();
100
+      }
101
+    }
102
+  }
103
+}

+ 7
- 0
android/app/src/main/res/drawable/splashscreen.xml Целия файл

@@ -0,0 +1,7 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!--
3
+  This file was created by '@expo/configure-splash-screen' and some of it's content shouldn't be modified by hand
4
+-->
5
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
6
+  <item android:drawable="@color/splashscreen_background"/>
7
+</layer-list>

Двоични данни
android/app/src/main/res/drawable/splashscreen_image.png Целия файл


Двоични данни
android/app/src/main/res/mipmap-hdpi/ic_launcher.png Целия файл


Двоични данни
android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png Целия файл


Двоични данни
android/app/src/main/res/mipmap-mdpi/ic_launcher.png Целия файл


Двоични данни
android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png Целия файл


Двоични данни
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png Целия файл


Двоични данни
android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png Целия файл


Двоични данни
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png Целия файл


Двоични данни
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png Целия файл


Двоични данни
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png Целия файл


Двоични данни
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png Целия файл


+ 5
- 0
android/app/src/main/res/values/colors.xml Целия файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<resources>
3
+  <!-- Below line is handled by '@expo/configure-splash-screen' command and it's discouraged to modify it manually -->
4
+  <color name="splashscreen_background">#FFFFFF</color>
5
+</resources>

+ 3
- 0
android/app/src/main/res/values/strings.xml Целия файл

@@ -0,0 +1,3 @@
1
+<resources>
2
+    <string name="app_name">budgetizr</string>
3
+</resources>

+ 16
- 0
android/app/src/main/res/values/styles.xml Целия файл

@@ -0,0 +1,16 @@
1
+<resources>
2
+  <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
3
+    <item name="android:textColor">@android:color/black</item>
4
+    <item name="android:editTextStyle">@style/ResetEditText</item>
5
+  </style>
6
+  <style name="ResetEditText" parent="@android:style/Widget.EditText">
7
+    <item name="android:padding">0dp</item>
8
+    <item name="android:textColorHint">#c8c8c8</item>
9
+    <item name="android:textColor">@android:color/black</item>
10
+  </style>
11
+  <style name="Theme.App.SplashScreen" parent="Theme.AppCompat.Light.NoActionBar">
12
+    <!-- Below line is handled by '@expo/configure-splash-screen' command and it's discouraged to modify it manually -->
13
+    <item name="android:windowBackground">@drawable/splashscreen</item>
14
+    <!-- Customize your splash screen theme here -->
15
+  </style>
16
+</resources>

+ 40
- 0
android/build.gradle Целия файл

@@ -0,0 +1,40 @@
1
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
+
3
+buildscript {
4
+    ext {
5
+        buildToolsVersion = "29.0.3"
6
+        minSdkVersion = 21
7
+        compileSdkVersion = 30
8
+        targetSdkVersion = 30
9
+    }
10
+    repositories {
11
+        google()
12
+        mavenCentral()
13
+        jcenter()
14
+    }
15
+    dependencies {
16
+        classpath("com.android.tools.build:gradle:4.1.0")
17
+
18
+        // NOTE: Do not place your application dependencies here; they belong
19
+        // in the individual module build.gradle files
20
+    }
21
+}
22
+
23
+allprojects {
24
+    repositories {
25
+        mavenLocal()
26
+        maven {
27
+            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
28
+            url(new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../android"))
29
+        }
30
+        maven {
31
+            // Android JSC is installed from npm
32
+            url(new File(["node", "--print", "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), "../dist"))
33
+        }
34
+
35
+        google()
36
+        mavenCentral()
37
+        jcenter()
38
+        maven { url 'https://www.jitpack.io' }
39
+    }
40
+}

+ 41
- 0
android/gradle.properties Целия файл

@@ -0,0 +1,41 @@
1
+# Project-wide Gradle settings.
2
+
3
+# IDE (e.g. Android Studio) users:
4
+# Gradle settings configured through the IDE *will override*
5
+# any settings specified in this file.
6
+
7
+# For more details on how to configure your build environment visit
8
+# http://www.gradle.org/docs/current/userguide/build_environment.html
9
+
10
+# Specifies the JVM arguments used for the daemon process.
11
+# The setting is particularly useful for tweaking memory settings.
12
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
13
+org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14
+
15
+# When configured, Gradle will run in incubating parallel mode.
16
+# This option should only be used with decoupled projects. More details, visit
17
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18
+# org.gradle.parallel=true
19
+
20
+# AndroidX package structure to make it clearer which packages are bundled with the
21
+# Android operating system, and which are packaged with your app's APK
22
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
23
+android.useAndroidX=true
24
+
25
+# Automatically convert third-party libraries to use AndroidX
26
+android.enableJetifier=true
27
+
28
+# Version of flipper SDK to use with React Native
29
+FLIPPER_VERSION=0.54.0
30
+
31
+# The hosted JavaScript engine
32
+# Supported values: expo.jsEngine = "hermes" | "jsc"
33
+expo.jsEngine=jsc
34
+
35
+# Enable GIF support in React Native images (~200 B increase)
36
+expo.gif.enabled=true
37
+# Enable webp support in React Native images (~85 KB increase)
38
+expo.webp.enabled=true
39
+# Enable animated webp support (~3.4 MB increase)
40
+# Disabled by default because iOS doesn't support animated webp
41
+expo.webp.animated=false

Двоични данни
android/gradle/wrapper/gradle-wrapper.jar Целия файл


+ 5
- 0
android/gradle/wrapper/gradle-wrapper.properties Целия файл

@@ -0,0 +1,5 @@
1
+distributionBase=GRADLE_USER_HOME
2
+distributionPath=wrapper/dists
3
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
4
+zipStoreBase=GRADLE_USER_HOME
5
+zipStorePath=wrapper/dists

+ 183
- 0
android/gradlew Целия файл

@@ -0,0 +1,183 @@
1
+#!/usr/bin/env sh
2
+
3
+#
4
+# Copyright 2015 the original author or authors.
5
+#
6
+# Licensed under the Apache License, Version 2.0 (the "License");
7
+# you may not use this file except in compliance with the License.
8
+# You may obtain a copy of the License at
9
+#
10
+#      https://www.apache.org/licenses/LICENSE-2.0
11
+#
12
+# Unless required by applicable law or agreed to in writing, software
13
+# distributed under the License is distributed on an "AS IS" BASIS,
14
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+# See the License for the specific language governing permissions and
16
+# limitations under the License.
17
+#
18
+
19
+##############################################################################
20
+##
21
+##  Gradle start up script for UN*X
22
+##
23
+##############################################################################
24
+
25
+# Attempt to set APP_HOME
26
+# Resolve links: $0 may be a link
27
+PRG="$0"
28
+# Need this for relative symlinks.
29
+while [ -h "$PRG" ] ; do
30
+    ls=`ls -ld "$PRG"`
31
+    link=`expr "$ls" : '.*-> \(.*\)$'`
32
+    if expr "$link" : '/.*' > /dev/null; then
33
+        PRG="$link"
34
+    else
35
+        PRG=`dirname "$PRG"`"/$link"
36
+    fi
37
+done
38
+SAVED="`pwd`"
39
+cd "`dirname \"$PRG\"`/" >/dev/null
40
+APP_HOME="`pwd -P`"
41
+cd "$SAVED" >/dev/null
42
+
43
+APP_NAME="Gradle"
44
+APP_BASE_NAME=`basename "$0"`
45
+
46
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48
+
49
+# Use the maximum available, or set MAX_FD != -1 to use that value.
50
+MAX_FD="maximum"
51
+
52
+warn () {
53
+    echo "$*"
54
+}
55
+
56
+die () {
57
+    echo
58
+    echo "$*"
59
+    echo
60
+    exit 1
61
+}
62
+
63
+# OS specific support (must be 'true' or 'false').
64
+cygwin=false
65
+msys=false
66
+darwin=false
67
+nonstop=false
68
+case "`uname`" in
69
+  CYGWIN* )
70
+    cygwin=true
71
+    ;;
72
+  Darwin* )
73
+    darwin=true
74
+    ;;
75
+  MINGW* )
76
+    msys=true
77
+    ;;
78
+  NONSTOP* )
79
+    nonstop=true
80
+    ;;
81
+esac
82
+
83
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84
+
85
+# Determine the Java command to use to start the JVM.
86
+if [ -n "$JAVA_HOME" ] ; then
87
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
88
+        # IBM's JDK on AIX uses strange locations for the executables
89
+        JAVACMD="$JAVA_HOME/jre/sh/java"
90
+    else
91
+        JAVACMD="$JAVA_HOME/bin/java"
92
+    fi
93
+    if [ ! -x "$JAVACMD" ] ; then
94
+        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
95
+
96
+Please set the JAVA_HOME variable in your environment to match the
97
+location of your Java installation."
98
+    fi
99
+else
100
+    JAVACMD="java"
101
+    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
102
+
103
+Please set the JAVA_HOME variable in your environment to match the
104
+location of your Java installation."
105
+fi
106
+
107
+# Increase the maximum file descriptors if we can.
108
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
109
+    MAX_FD_LIMIT=`ulimit -H -n`
110
+    if [ $? -eq 0 ] ; then
111
+        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
112
+            MAX_FD="$MAX_FD_LIMIT"
113
+        fi
114
+        ulimit -n $MAX_FD
115
+        if [ $? -ne 0 ] ; then
116
+            warn "Could not set maximum file descriptor limit: $MAX_FD"
117
+        fi
118
+    else
119
+        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
120
+    fi
121
+fi
122
+
123
+# For Darwin, add options to specify how the application appears in the dock
124
+if $darwin; then
125
+    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
126
+fi
127
+
128
+# For Cygwin or MSYS, switch paths to Windows format before running java
129
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130
+    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131
+    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
132
+    JAVACMD=`cygpath --unix "$JAVACMD"`
133
+
134
+    # We build the pattern for arguments to be converted via cygpath
135
+    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
136
+    SEP=""
137
+    for dir in $ROOTDIRSRAW ; do
138
+        ROOTDIRS="$ROOTDIRS$SEP$dir"
139
+        SEP="|"
140
+    done
141
+    OURCYGPATTERN="(^($ROOTDIRS))"
142
+    # Add a user-defined pattern to the cygpath arguments
143
+    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
144
+        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
145
+    fi
146
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
147
+    i=0
148
+    for arg in "$@" ; do
149
+        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
150
+        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
151
+
152
+        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
153
+            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
154
+        else
155
+            eval `echo args$i`="\"$arg\""
156
+        fi
157
+        i=`expr $i + 1`
158
+    done
159
+    case $i in
160
+        0) set -- ;;
161
+        1) set -- "$args0" ;;
162
+        2) set -- "$args0" "$args1" ;;
163
+        3) set -- "$args0" "$args1" "$args2" ;;
164
+        4) set -- "$args0" "$args1" "$args2" "$args3" ;;
165
+        5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
166
+        6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
167
+        7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
168
+        8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
169
+        9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
170
+    esac
171
+fi
172
+
173
+# Escape application args
174
+save () {
175
+    for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
176
+    echo " "
177
+}
178
+APP_ARGS=`save "$@"`
179
+
180
+# Collect all arguments for the java command, following the shell quoting and substitution rules
181
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
182
+
183
+exec "$JAVACMD" "$@"

+ 103
- 0
android/gradlew.bat Целия файл

@@ -0,0 +1,103 @@
1
+@rem
2
+@rem Copyright 2015 the original author or authors.
3
+@rem
4
+@rem Licensed under the Apache License, Version 2.0 (the "License");
5
+@rem you may not use this file except in compliance with the License.
6
+@rem You may obtain a copy of the License at
7
+@rem
8
+@rem      https://www.apache.org/licenses/LICENSE-2.0
9
+@rem
10
+@rem Unless required by applicable law or agreed to in writing, software
11
+@rem distributed under the License is distributed on an "AS IS" BASIS,
12
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+@rem See the License for the specific language governing permissions and
14
+@rem limitations under the License.
15
+@rem
16
+
17
+@if "%DEBUG%" == "" @echo off
18
+@rem ##########################################################################
19
+@rem
20
+@rem  Gradle startup script for Windows
21
+@rem
22
+@rem ##########################################################################
23
+
24
+@rem Set local scope for the variables with windows NT shell
25
+if "%OS%"=="Windows_NT" setlocal
26
+
27
+set DIRNAME=%~dp0
28
+if "%DIRNAME%" == "" set DIRNAME=.
29
+set APP_BASE_NAME=%~n0
30
+set APP_HOME=%DIRNAME%
31
+
32
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34
+
35
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37
+
38
+@rem Find java.exe
39
+if defined JAVA_HOME goto findJavaFromJavaHome
40
+
41
+set JAVA_EXE=java.exe
42
+%JAVA_EXE% -version >NUL 2>&1
43
+if "%ERRORLEVEL%" == "0" goto init
44
+
45
+echo.
46
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47
+echo.
48
+echo Please set the JAVA_HOME variable in your environment to match the
49
+echo location of your Java installation.
50
+
51
+goto fail
52
+
53
+:findJavaFromJavaHome
54
+set JAVA_HOME=%JAVA_HOME:"=%
55
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56
+
57
+if exist "%JAVA_EXE%" goto init
58
+
59
+echo.
60
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61
+echo.
62
+echo Please set the JAVA_HOME variable in your environment to match the
63
+echo location of your Java installation.
64
+
65
+goto fail
66
+
67
+:init
68
+@rem Get command-line arguments, handling Windows variants
69
+
70
+if not "%OS%" == "Windows_NT" goto win9xME_args
71
+
72
+:win9xME_args
73
+@rem Slurp the command line arguments.
74
+set CMD_LINE_ARGS=
75
+set _SKIP=2
76
+
77
+:win9xME_args_slurp
78
+if "x%~1" == "x" goto execute
79
+
80
+set CMD_LINE_ARGS=%*
81
+
82
+:execute
83
+@rem Setup the command line
84
+
85
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
86
+
87
+@rem Execute Gradle
88
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
89
+
90
+:end
91
+@rem End local scope for the variables with windows NT shell
92
+if "%ERRORLEVEL%"=="0" goto mainEnd
93
+
94
+:fail
95
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
96
+rem the _cmd.exe /c_ return code!
97
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
98
+exit /b 1
99
+
100
+:mainEnd
101
+if "%OS%"=="Windows_NT" endlocal
102
+
103
+:omega

+ 9
- 0
android/settings.gradle Целия файл

@@ -0,0 +1,9 @@
1
+rootProject.name = 'budgetizr'
2
+
3
+apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle");
4
+useExpoModules()
5
+
6
+apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
7
+applyNativeModulesSettingsGradle(settings)
8
+
9
+include ':app'

+ 11
- 0
app.json Целия файл

@@ -0,0 +1,11 @@
1
+{
2
+  "expo": {
3
+    "name": "budgetizr",
4
+    "slug": "budgetizr",
5
+    "version": "1.0.0",
6
+    "assetBundlePatterns": [
7
+      "**/*"
8
+    ]
9
+  },
10
+  "name": "budgetizr"
11
+}

+ 7
- 0
babel.config.js Целия файл

@@ -0,0 +1,7 @@
1
+module.exports = function(api) {
2
+  api.cache(true);
3
+  return {
4
+    presets: ['babel-preset-expo'],
5
+    plugins: ['react-native-reanimated/plugin']
6
+  };
7
+};

+ 9
- 0
index.js Целия файл

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

+ 41
- 0
ios/Podfile Целия файл

@@ -0,0 +1,41 @@
1
+require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
2
+require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
3
+require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules")
4
+
5
+platform :ios, '12.0'
6
+
7
+require 'json'
8
+podfile_properties = JSON.parse(File.read('./Podfile.properties.json')) rescue {}
9
+
10
+target 'budgetizr' do
11
+  use_expo_modules!
12
+  config = use_native_modules!
13
+
14
+  use_react_native!(
15
+    :path => config[:reactNativePath],
16
+    :hermes_enabled => podfile_properties['expo.jsEngine'] == 'hermes'
17
+  )
18
+
19
+  # Uncomment to opt-in to using Flipper
20
+  #
21
+  # if !ENV['CI']
22
+  #   use_flipper!('Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1')
23
+  # end
24
+
25
+  post_install do |installer|
26
+    react_native_post_install(installer)
27
+
28
+    # Workaround `Cycle inside FBReactNativeSpec` error for react-native 0.64
29
+    # Reference: https://github.com/software-mansion/react-native-screens/issues/842#issuecomment-812543933
30
+    installer.pods_project.targets.each do |target|
31
+      if (target.name&.eql?('FBReactNativeSpec'))
32
+        target.build_phases.each do |build_phase|
33
+          if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs'))
34
+            target.build_phases.move(build_phase, 0)
35
+          end
36
+        end
37
+      end
38
+    end
39
+  end
40
+
41
+end

+ 3
- 0
ios/Podfile.properties.json Целия файл

@@ -0,0 +1,3 @@
1
+{
2
+  "expo.jsEngine": "jsc"
3
+}

+ 477
- 0
ios/budgetizr.xcodeproj/project.pbxproj Целия файл

@@ -0,0 +1,477 @@
1
+// !$*UTF8*$!
2
+{
3
+	archiveVersion = 1;
4
+	classes = {
5
+	};
6
+	objectVersion = 46;
7
+	objects = {
8
+
9
+/* Begin PBXBuildFile section */
10
+		13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
11
+		13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
12
+		13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
13
+		3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
14
+		96905EF65AED1B983A6B3ABC /* libPods-budgetizr.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-budgetizr.a */; };
15
+		B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; };
16
+		BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
17
+/* End PBXBuildFile section */
18
+
19
+/* Begin PBXFileReference section */
20
+		008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
21
+		13B07F961A680F5B00A75B9A /* budgetizr.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = budgetizr.app; sourceTree = BUILT_PRODUCTS_DIR; };
22
+		13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = budgetizr/AppDelegate.h; sourceTree = "<group>"; };
23
+		13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = budgetizr/AppDelegate.m; sourceTree = "<group>"; };
24
+		13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = budgetizr/Images.xcassets; sourceTree = "<group>"; };
25
+		13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = budgetizr/Info.plist; sourceTree = "<group>"; };
26
+		13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = budgetizr/main.m; sourceTree = "<group>"; };
27
+		58EEBF8E8E6FB1BC6CAF49B5 /* libPods-budgetizr.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-budgetizr.a"; sourceTree = BUILT_PRODUCTS_DIR; };
28
+		6C2E3173556A471DD304B334 /* Pods-budgetizr.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-budgetizr.debug.xcconfig"; path = "Target Support Files/Pods-budgetizr/Pods-budgetizr.debug.xcconfig"; sourceTree = "<group>"; };
29
+		7A4D352CD337FB3A3BF06240 /* Pods-budgetizr.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-budgetizr.release.xcconfig"; path = "Target Support Files/Pods-budgetizr/Pods-budgetizr.release.xcconfig"; sourceTree = "<group>"; };
30
+		AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = budgetizr/SplashScreen.storyboard; sourceTree = "<group>"; };
31
+		BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
32
+		ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
33
+		FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-budgetizr/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
34
+/* End PBXFileReference section */
35
+
36
+/* Begin PBXFrameworksBuildPhase section */
37
+		13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
38
+			isa = PBXFrameworksBuildPhase;
39
+			buildActionMask = 2147483647;
40
+			files = (
41
+				96905EF65AED1B983A6B3ABC /* libPods-budgetizr.a in Frameworks */,
42
+			);
43
+			runOnlyForDeploymentPostprocessing = 0;
44
+		};
45
+/* End PBXFrameworksBuildPhase section */
46
+
47
+/* Begin PBXGroup section */
48
+		13B07FAE1A68108700A75B9A /* budgetizr */ = {
49
+			isa = PBXGroup;
50
+			children = (
51
+				BB2F792B24A3F905000567C9 /* Supporting */,
52
+				008F07F21AC5B25A0029DE68 /* main.jsbundle */,
53
+				13B07FAF1A68108700A75B9A /* AppDelegate.h */,
54
+				13B07FB01A68108700A75B9A /* AppDelegate.m */,
55
+				13B07FB51A68108700A75B9A /* Images.xcassets */,
56
+				13B07FB61A68108700A75B9A /* Info.plist */,
57
+				13B07FB71A68108700A75B9A /* main.m */,
58
+				AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
59
+			);
60
+			name = budgetizr;
61
+			sourceTree = "<group>";
62
+		};
63
+		2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
64
+			isa = PBXGroup;
65
+			children = (
66
+				ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
67
+				58EEBF8E8E6FB1BC6CAF49B5 /* libPods-budgetizr.a */,
68
+			);
69
+			name = Frameworks;
70
+			sourceTree = "<group>";
71
+		};
72
+		832341AE1AAA6A7D00B99B32 /* Libraries */ = {
73
+			isa = PBXGroup;
74
+			children = (
75
+			);
76
+			name = Libraries;
77
+			sourceTree = "<group>";
78
+		};
79
+		83CBB9F61A601CBA00E9B192 = {
80
+			isa = PBXGroup;
81
+			children = (
82
+				13B07FAE1A68108700A75B9A /* budgetizr */,
83
+				832341AE1AAA6A7D00B99B32 /* Libraries */,
84
+				83CBBA001A601CBA00E9B192 /* Products */,
85
+				2D16E6871FA4F8E400B85C8A /* Frameworks */,
86
+				D65327D7A22EEC0BE12398D9 /* Pods */,
87
+				D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */,
88
+			);
89
+			indentWidth = 2;
90
+			sourceTree = "<group>";
91
+			tabWidth = 2;
92
+			usesTabs = 0;
93
+		};
94
+		83CBBA001A601CBA00E9B192 /* Products */ = {
95
+			isa = PBXGroup;
96
+			children = (
97
+				13B07F961A680F5B00A75B9A /* budgetizr.app */,
98
+			);
99
+			name = Products;
100
+			sourceTree = "<group>";
101
+		};
102
+		92DBD88DE9BF7D494EA9DA96 /* budgetizr */ = {
103
+			isa = PBXGroup;
104
+			children = (
105
+				FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */,
106
+			);
107
+			name = budgetizr;
108
+			sourceTree = "<group>";
109
+		};
110
+		BB2F792B24A3F905000567C9 /* Supporting */ = {
111
+			isa = PBXGroup;
112
+			children = (
113
+				BB2F792C24A3F905000567C9 /* Expo.plist */,
114
+			);
115
+			name = Supporting;
116
+			path = budgetizr/Supporting;
117
+			sourceTree = "<group>";
118
+		};
119
+		D65327D7A22EEC0BE12398D9 /* Pods */ = {
120
+			isa = PBXGroup;
121
+			children = (
122
+				6C2E3173556A471DD304B334 /* Pods-budgetizr.debug.xcconfig */,
123
+				7A4D352CD337FB3A3BF06240 /* Pods-budgetizr.release.xcconfig */,
124
+			);
125
+			path = Pods;
126
+			sourceTree = "<group>";
127
+		};
128
+		D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */ = {
129
+			isa = PBXGroup;
130
+			children = (
131
+				92DBD88DE9BF7D494EA9DA96 /* budgetizr */,
132
+			);
133
+			name = ExpoModulesProviders;
134
+			sourceTree = "<group>";
135
+		};
136
+/* End PBXGroup section */
137
+
138
+/* Begin PBXNativeTarget section */
139
+		13B07F861A680F5B00A75B9A /* budgetizr */ = {
140
+			isa = PBXNativeTarget;
141
+			buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "budgetizr" */;
142
+			buildPhases = (
143
+				08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
144
+				FD10A7F022414F080027D42C /* Start Packager */,
145
+				13B07F871A680F5B00A75B9A /* Sources */,
146
+				13B07F8C1A680F5B00A75B9A /* Frameworks */,
147
+				13B07F8E1A680F5B00A75B9A /* Resources */,
148
+				00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
149
+				800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
150
+			);
151
+			buildRules = (
152
+			);
153
+			dependencies = (
154
+			);
155
+			name = budgetizr;
156
+			productName = budgetizr;
157
+			productReference = 13B07F961A680F5B00A75B9A /* budgetizr.app */;
158
+			productType = "com.apple.product-type.application";
159
+		};
160
+/* End PBXNativeTarget section */
161
+
162
+/* Begin PBXProject section */
163
+		83CBB9F71A601CBA00E9B192 /* Project object */ = {
164
+			isa = PBXProject;
165
+			attributes = {
166
+				LastUpgradeCheck = 1130;
167
+				TargetAttributes = {
168
+					13B07F861A680F5B00A75B9A = {
169
+						LastSwiftMigration = 1250;
170
+					};
171
+				};
172
+			};
173
+			buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "budgetizr" */;
174
+			compatibilityVersion = "Xcode 3.2";
175
+			developmentRegion = en;
176
+			hasScannedForEncodings = 0;
177
+			knownRegions = (
178
+				en,
179
+				Base,
180
+			);
181
+			mainGroup = 83CBB9F61A601CBA00E9B192;
182
+			productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
183
+			projectDirPath = "";
184
+			projectRoot = "";
185
+			targets = (
186
+				13B07F861A680F5B00A75B9A /* budgetizr */,
187
+			);
188
+		};
189
+/* End PBXProject section */
190
+
191
+/* Begin PBXResourcesBuildPhase section */
192
+		13B07F8E1A680F5B00A75B9A /* Resources */ = {
193
+			isa = PBXResourcesBuildPhase;
194
+			buildActionMask = 2147483647;
195
+			files = (
196
+				BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
197
+				13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
198
+				3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
199
+			);
200
+			runOnlyForDeploymentPostprocessing = 0;
201
+		};
202
+/* End PBXResourcesBuildPhase section */
203
+
204
+/* Begin PBXShellScriptBuildPhase section */
205
+		00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
206
+			isa = PBXShellScriptBuildPhase;
207
+			buildActionMask = 2147483647;
208
+			files = (
209
+			);
210
+			inputPaths = (
211
+			);
212
+			name = "Bundle React Native code and images";
213
+			outputPaths = (
214
+			);
215
+			runOnlyForDeploymentPostprocessing = 0;
216
+			shellPath = /bin/sh;
217
+			shellScript = "export NODE_BINARY=node\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\n`node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n";
218
+		};
219
+		08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
220
+			isa = PBXShellScriptBuildPhase;
221
+			buildActionMask = 2147483647;
222
+			files = (
223
+			);
224
+			inputFileListPaths = (
225
+			);
226
+			inputPaths = (
227
+				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
228
+				"${PODS_ROOT}/Manifest.lock",
229
+			);
230
+			name = "[CP] Check Pods Manifest.lock";
231
+			outputFileListPaths = (
232
+			);
233
+			outputPaths = (
234
+				"$(DERIVED_FILE_DIR)/Pods-budgetizr-checkManifestLockResult.txt",
235
+			);
236
+			runOnlyForDeploymentPostprocessing = 0;
237
+			shellPath = /bin/sh;
238
+			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
239
+			showEnvVarsInLog = 0;
240
+		};
241
+		800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
242
+			isa = PBXShellScriptBuildPhase;
243
+			buildActionMask = 2147483647;
244
+			files = (
245
+			);
246
+			inputPaths = (
247
+				"${PODS_ROOT}/Target Support Files/Pods-budgetizr/Pods-budgetizr-resources.sh",
248
+				"${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle",
249
+				"${PODS_CONFIGURATION_BUILD_DIR}/EXUpdates/EXUpdates.bundle",
250
+				"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
251
+			);
252
+			name = "[CP] Copy Pods Resources";
253
+			outputPaths = (
254
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle",
255
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXUpdates.bundle",
256
+				"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
257
+			);
258
+			runOnlyForDeploymentPostprocessing = 0;
259
+			shellPath = /bin/sh;
260
+			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-budgetizr/Pods-budgetizr-resources.sh\"\n";
261
+			showEnvVarsInLog = 0;
262
+		};
263
+		FD10A7F022414F080027D42C /* Start Packager */ = {
264
+			isa = PBXShellScriptBuildPhase;
265
+			buildActionMask = 2147483647;
266
+			files = (
267
+			);
268
+			inputFileListPaths = (
269
+			);
270
+			inputPaths = (
271
+			);
272
+			name = "Start Packager";
273
+			outputFileListPaths = (
274
+			);
275
+			outputPaths = (
276
+			);
277
+			runOnlyForDeploymentPostprocessing = 0;
278
+			shellPath = /bin/sh;
279
+			shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > `node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/.packager.env'\"`\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n  if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n    if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n      echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n      exit 2\n    fi\n  else\n    open `node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/launchPackager.command'\"` || echo \"Can't start packager automatically\"\n  fi\nfi\n";
280
+			showEnvVarsInLog = 0;
281
+		};
282
+/* End PBXShellScriptBuildPhase section */
283
+
284
+/* Begin PBXSourcesBuildPhase section */
285
+		13B07F871A680F5B00A75B9A /* Sources */ = {
286
+			isa = PBXSourcesBuildPhase;
287
+			buildActionMask = 2147483647;
288
+			files = (
289
+				13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
290
+				13B07FC11A68108700A75B9A /* main.m in Sources */,
291
+				B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */,
292
+			);
293
+			runOnlyForDeploymentPostprocessing = 0;
294
+		};
295
+/* End PBXSourcesBuildPhase section */
296
+
297
+/* Begin XCBuildConfiguration section */
298
+		13B07F941A680F5B00A75B9A /* Debug */ = {
299
+			isa = XCBuildConfiguration;
300
+			baseConfigurationReference = 6C2E3173556A471DD304B334 /* Pods-budgetizr.debug.xcconfig */;
301
+			buildSettings = {
302
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
303
+				CLANG_ENABLE_MODULES = YES;
304
+				CURRENT_PROJECT_VERSION = 1;
305
+				ENABLE_BITCODE = NO;
306
+				GCC_PREPROCESSOR_DEFINITIONS = (
307
+					"$(inherited)",
308
+					"FB_SONARKIT_ENABLED=1",
309
+				);
310
+				INFOPLIST_FILE = budgetizr/Info.plist;
311
+				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
312
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
313
+				OTHER_LDFLAGS = (
314
+					"$(inherited)",
315
+					"-ObjC",
316
+					"-lc++",
317
+				);
318
+				PRODUCT_BUNDLE_IDENTIFIER = org.name.budgetizr;
319
+				PRODUCT_NAME = budgetizr;
320
+				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
321
+				SWIFT_VERSION = 5.0;
322
+				VERSIONING_SYSTEM = "apple-generic";
323
+			};
324
+			name = Debug;
325
+		};
326
+		13B07F951A680F5B00A75B9A /* Release */ = {
327
+			isa = XCBuildConfiguration;
328
+			baseConfigurationReference = 7A4D352CD337FB3A3BF06240 /* Pods-budgetizr.release.xcconfig */;
329
+			buildSettings = {
330
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
331
+				CLANG_ENABLE_MODULES = YES;
332
+				CURRENT_PROJECT_VERSION = 1;
333
+				INFOPLIST_FILE = budgetizr/Info.plist;
334
+				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
335
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
336
+				OTHER_LDFLAGS = (
337
+					"$(inherited)",
338
+					"-ObjC",
339
+					"-lc++",
340
+				);
341
+				PRODUCT_BUNDLE_IDENTIFIER = org.name.budgetizr;
342
+				PRODUCT_NAME = budgetizr;
343
+				SWIFT_VERSION = 5.0;
344
+				VERSIONING_SYSTEM = "apple-generic";
345
+			};
346
+			name = Release;
347
+		};
348
+		83CBBA201A601CBA00E9B192 /* Debug */ = {
349
+			isa = XCBuildConfiguration;
350
+			buildSettings = {
351
+				ALWAYS_SEARCH_USER_PATHS = NO;
352
+				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
353
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
354
+				CLANG_CXX_LIBRARY = "libc++";
355
+				CLANG_ENABLE_MODULES = YES;
356
+				CLANG_ENABLE_OBJC_ARC = YES;
357
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
358
+				CLANG_WARN_BOOL_CONVERSION = YES;
359
+				CLANG_WARN_COMMA = YES;
360
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
361
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
362
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
363
+				CLANG_WARN_EMPTY_BODY = YES;
364
+				CLANG_WARN_ENUM_CONVERSION = YES;
365
+				CLANG_WARN_INFINITE_RECURSION = YES;
366
+				CLANG_WARN_INT_CONVERSION = YES;
367
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
368
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
369
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
370
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
371
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
372
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
373
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
374
+				CLANG_WARN_UNREACHABLE_CODE = YES;
375
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
376
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
377
+				COPY_PHASE_STRIP = NO;
378
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
379
+				ENABLE_TESTABILITY = YES;
380
+				GCC_C_LANGUAGE_STANDARD = gnu99;
381
+				GCC_DYNAMIC_NO_PIC = NO;
382
+				GCC_NO_COMMON_BLOCKS = YES;
383
+				GCC_OPTIMIZATION_LEVEL = 0;
384
+				GCC_PREPROCESSOR_DEFINITIONS = (
385
+					"DEBUG=1",
386
+					"$(inherited)",
387
+				);
388
+				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
389
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
390
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
391
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
392
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
393
+				GCC_WARN_UNUSED_FUNCTION = YES;
394
+				GCC_WARN_UNUSED_VARIABLE = YES;
395
+				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
396
+				LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
397
+				LIBRARY_SEARCH_PATHS = "\"$(inherited)\"";
398
+				MTL_ENABLE_DEBUG_INFO = YES;
399
+				ONLY_ACTIVE_ARCH = YES;
400
+				SDKROOT = iphoneos;
401
+			};
402
+			name = Debug;
403
+		};
404
+		83CBBA211A601CBA00E9B192 /* Release */ = {
405
+			isa = XCBuildConfiguration;
406
+			buildSettings = {
407
+				ALWAYS_SEARCH_USER_PATHS = NO;
408
+				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
409
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
410
+				CLANG_CXX_LIBRARY = "libc++";
411
+				CLANG_ENABLE_MODULES = YES;
412
+				CLANG_ENABLE_OBJC_ARC = YES;
413
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
414
+				CLANG_WARN_BOOL_CONVERSION = YES;
415
+				CLANG_WARN_COMMA = YES;
416
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
417
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
418
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
419
+				CLANG_WARN_EMPTY_BODY = YES;
420
+				CLANG_WARN_ENUM_CONVERSION = YES;
421
+				CLANG_WARN_INFINITE_RECURSION = YES;
422
+				CLANG_WARN_INT_CONVERSION = YES;
423
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
424
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
425
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
426
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
427
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
428
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
429
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
430
+				CLANG_WARN_UNREACHABLE_CODE = YES;
431
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
432
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
433
+				COPY_PHASE_STRIP = YES;
434
+				ENABLE_NS_ASSERTIONS = NO;
435
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
436
+				GCC_C_LANGUAGE_STANDARD = gnu99;
437
+				GCC_NO_COMMON_BLOCKS = YES;
438
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
439
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
440
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
441
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
442
+				GCC_WARN_UNUSED_FUNCTION = YES;
443
+				GCC_WARN_UNUSED_VARIABLE = YES;
444
+				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
445
+				LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
446
+				LIBRARY_SEARCH_PATHS = "\"$(inherited)\"";
447
+				MTL_ENABLE_DEBUG_INFO = NO;
448
+				SDKROOT = iphoneos;
449
+				VALIDATE_PRODUCT = YES;
450
+			};
451
+			name = Release;
452
+		};
453
+/* End XCBuildConfiguration section */
454
+
455
+/* Begin XCConfigurationList section */
456
+		13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "budgetizr" */ = {
457
+			isa = XCConfigurationList;
458
+			buildConfigurations = (
459
+				13B07F941A680F5B00A75B9A /* Debug */,
460
+				13B07F951A680F5B00A75B9A /* Release */,
461
+			);
462
+			defaultConfigurationIsVisible = 0;
463
+			defaultConfigurationName = Release;
464
+		};
465
+		83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "budgetizr" */ = {
466
+			isa = XCConfigurationList;
467
+			buildConfigurations = (
468
+				83CBBA201A601CBA00E9B192 /* Debug */,
469
+				83CBBA211A601CBA00E9B192 /* Release */,
470
+			);
471
+			defaultConfigurationIsVisible = 0;
472
+			defaultConfigurationName = Release;
473
+		};
474
+/* End XCConfigurationList section */
475
+	};
476
+	rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
477
+}

+ 88
- 0
ios/budgetizr.xcodeproj/xcshareddata/xcschemes/budgetizr.xcscheme Целия файл

@@ -0,0 +1,88 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Scheme
3
+   LastUpgradeVersion = "1130"
4
+   version = "1.3">
5
+   <BuildAction
6
+      parallelizeBuildables = "YES"
7
+      buildImplicitDependencies = "YES">
8
+      <BuildActionEntries>
9
+         <BuildActionEntry
10
+            buildForTesting = "YES"
11
+            buildForRunning = "YES"
12
+            buildForProfiling = "YES"
13
+            buildForArchiving = "YES"
14
+            buildForAnalyzing = "YES">
15
+            <BuildableReference
16
+               BuildableIdentifier = "primary"
17
+               BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
+               BuildableName = "budgetizr.app"
19
+               BlueprintName = "budgetizr"
20
+               ReferencedContainer = "container:budgetizr.xcodeproj">
21
+            </BuildableReference>
22
+         </BuildActionEntry>
23
+      </BuildActionEntries>
24
+   </BuildAction>
25
+   <TestAction
26
+      buildConfiguration = "Debug"
27
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
+      shouldUseLaunchSchemeArgsEnv = "YES">
30
+      <Testables>
31
+         <TestableReference
32
+            skipped = "NO">
33
+            <BuildableReference
34
+               BuildableIdentifier = "primary"
35
+               BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36
+               BuildableName = "budgetizrTests.xctest"
37
+               BlueprintName = "budgetizrTests"
38
+               ReferencedContainer = "container:budgetizr.xcodeproj">
39
+            </BuildableReference>
40
+         </TestableReference>
41
+      </Testables>
42
+   </TestAction>
43
+   <LaunchAction
44
+      buildConfiguration = "Debug"
45
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47
+      launchStyle = "0"
48
+      useCustomWorkingDirectory = "NO"
49
+      ignoresPersistentStateOnLaunch = "NO"
50
+      debugDocumentVersioning = "YES"
51
+      debugServiceExtension = "internal"
52
+      allowLocationSimulation = "YES">
53
+      <BuildableProductRunnable
54
+         runnableDebuggingMode = "0">
55
+         <BuildableReference
56
+            BuildableIdentifier = "primary"
57
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
58
+            BuildableName = "budgetizr.app"
59
+            BlueprintName = "budgetizr"
60
+            ReferencedContainer = "container:budgetizr.xcodeproj">
61
+         </BuildableReference>
62
+      </BuildableProductRunnable>
63
+   </LaunchAction>
64
+   <ProfileAction
65
+      buildConfiguration = "Release"
66
+      shouldUseLaunchSchemeArgsEnv = "YES"
67
+      savedToolIdentifier = ""
68
+      useCustomWorkingDirectory = "NO"
69
+      debugDocumentVersioning = "YES">
70
+      <BuildableProductRunnable
71
+         runnableDebuggingMode = "0">
72
+         <BuildableReference
73
+            BuildableIdentifier = "primary"
74
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
75
+            BuildableName = "budgetizr.app"
76
+            BlueprintName = "budgetizr"
77
+            ReferencedContainer = "container:budgetizr.xcodeproj">
78
+         </BuildableReference>
79
+      </BuildableProductRunnable>
80
+   </ProfileAction>
81
+   <AnalyzeAction
82
+      buildConfiguration = "Debug">
83
+   </AnalyzeAction>
84
+   <ArchiveAction
85
+      buildConfiguration = "Release"
86
+      revealArchiveInOrganizer = "YES">
87
+   </ArchiveAction>
88
+</Scheme>

+ 9
- 0
ios/budgetizr/AppDelegate.h Целия файл

@@ -0,0 +1,9 @@
1
+#import <Foundation/Foundation.h>
2
+#import <React/RCTBridgeDelegate.h>
3
+#import <UIKit/UIKit.h>
4
+
5
+#import <Expo/Expo.h>
6
+
7
+@interface AppDelegate : EXAppDelegateWrapper <RCTBridgeDelegate>
8
+
9
+@end

+ 82
- 0
ios/budgetizr/AppDelegate.m Целия файл

@@ -0,0 +1,82 @@
1
+#import "AppDelegate.h"
2
+
3
+#import <React/RCTBridge.h>
4
+#import <React/RCTBundleURLProvider.h>
5
+#import <React/RCTRootView.h>
6
+#import <React/RCTLinkingManager.h>
7
+#import <React/RCTConvert.h>
8
+
9
+#if defined(FB_SONARKIT_ENABLED) && __has_include(<FlipperKit/FlipperClient.h>)
10
+#import <FlipperKit/FlipperClient.h>
11
+#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
12
+#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
13
+#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
14
+#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
15
+#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
16
+
17
+static void InitializeFlipper(UIApplication *application) {
18
+  FlipperClient *client = [FlipperClient sharedClient];
19
+  SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
20
+  [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
21
+  [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
22
+  [client addPlugin:[FlipperKitReactPlugin new]];
23
+  [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
24
+  [client start];
25
+}
26
+#endif
27
+
28
+@implementation AppDelegate
29
+
30
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
31
+{
32
+#if defined(FB_SONARKIT_ENABLED) && __has_include(<FlipperKit/FlipperClient.h>)
33
+  InitializeFlipper(application);
34
+#endif
35
+  
36
+  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
37
+  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"main" initialProperties:nil];
38
+  id rootViewBackgroundColor = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"RCTRootViewBackgroundColor"];
39
+  if (rootViewBackgroundColor != nil) {
40
+    rootView.backgroundColor = [RCTConvert UIColor:rootViewBackgroundColor];
41
+  } else {
42
+    rootView.backgroundColor = [UIColor whiteColor];
43
+  }
44
+
45
+  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
46
+  UIViewController *rootViewController = [UIViewController new];
47
+  rootViewController.view = rootView;
48
+  self.window.rootViewController = rootViewController;
49
+  [self.window makeKeyAndVisible];
50
+
51
+  [super application:application didFinishLaunchingWithOptions:launchOptions];
52
+
53
+  return YES;
54
+ }
55
+
56
+- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
57
+{
58
+  // If you'd like to export some custom RCTBridgeModules, add them here!
59
+  return @[];
60
+}
61
+
62
+- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
63
+ #ifdef DEBUG
64
+  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
65
+ #else
66
+  return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
67
+ #endif
68
+}
69
+
70
+// Linking API
71
+- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
72
+  return [RCTLinkingManager application:application openURL:url options:options];
73
+}
74
+
75
+// Universal Links
76
+- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
77
+  return [RCTLinkingManager application:application
78
+                   continueUserActivity:userActivity
79
+                     restorationHandler:restorationHandler];
80
+}
81
+
82
+@end

+ 38
- 0
ios/budgetizr/Images.xcassets/AppIcon.appiconset/Contents.json Целия файл

@@ -0,0 +1,38 @@
1
+{
2
+  "images" : [
3
+    {
4
+      "idiom" : "iphone",
5
+      "size" : "29x29",
6
+      "scale" : "2x"
7
+    },
8
+    {
9
+      "idiom" : "iphone",
10
+      "size" : "29x29",
11
+      "scale" : "3x"
12
+    },
13
+    {
14
+      "idiom" : "iphone",
15
+      "size" : "40x40",
16
+      "scale" : "2x"
17
+    },
18
+    {
19
+      "idiom" : "iphone",
20
+      "size" : "40x40",
21
+      "scale" : "3x"
22
+    },
23
+    {
24
+      "idiom" : "iphone",
25
+      "size" : "60x60",
26
+      "scale" : "2x"
27
+    },
28
+    {
29
+      "idiom" : "iphone",
30
+      "size" : "60x60",
31
+      "scale" : "3x"
32
+    }
33
+  ],
34
+  "info" : {
35
+    "version" : 1,
36
+    "author" : "expo"
37
+  }
38
+}

+ 6
- 0
ios/budgetizr/Images.xcassets/Contents.json Целия файл

@@ -0,0 +1,6 @@
1
+{
2
+  "info" : {
3
+    "version" : 1,
4
+    "author" : "expo"
5
+  }
6
+}

+ 21
- 0
ios/budgetizr/Images.xcassets/SplashScreen.imageset/Contents.json Целия файл

@@ -0,0 +1,21 @@
1
+{
2
+  "images": [
3
+    {
4
+      "idiom": "universal",
5
+      "filename": "splashscreen.png",
6
+      "scale": "1x"
7
+    },
8
+    {
9
+      "idiom": "universal",
10
+      "scale": "2x"
11
+    },
12
+    {
13
+      "idiom": "universal",
14
+      "scale": "3x"
15
+    }
16
+  ],
17
+  "info": {
18
+    "version": 1,
19
+    "author": "expo"
20
+  }
21
+}

Двоични данни
ios/budgetizr/Images.xcassets/SplashScreen.imageset/splashscreen.png Целия файл


+ 21
- 0
ios/budgetizr/Images.xcassets/SplashScreenBackground.imageset/Contents.json Целия файл

@@ -0,0 +1,21 @@
1
+{
2
+  "images": [
3
+    {
4
+      "idiom": "universal",
5
+      "filename": "background.png",
6
+      "scale": "1x"
7
+    },
8
+    {
9
+      "idiom": "universal",
10
+      "scale": "2x"
11
+    },
12
+    {
13
+      "idiom": "universal",
14
+      "scale": "3x"
15
+    }
16
+  ],
17
+  "info": {
18
+    "version": 1,
19
+    "author": "expo"
20
+  }
21
+}

Двоични данни
ios/budgetizr/Images.xcassets/SplashScreenBackground.imageset/background.png Целия файл


+ 55
- 0
ios/budgetizr/Info.plist Целия файл

@@ -0,0 +1,55 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>CFBundleDevelopmentRegion</key>
6
+	<string>$(DEVELOPMENT_LANGUAGE)</string>
7
+	<key>CFBundleExecutable</key>
8
+	<string>$(EXECUTABLE_NAME)</string>
9
+	<key>CFBundleIdentifier</key>
10
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
+	<key>CFBundleInfoDictionaryVersion</key>
12
+	<string>6.0</string>
13
+	<key>CFBundleName</key>
14
+	<string>$(PRODUCT_NAME)</string>
15
+	<key>CFBundlePackageType</key>
16
+	<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
17
+	<key>CFBundleSignature</key>
18
+	<string>????</string>
19
+	<key>CFBundleShortVersionString</key>
20
+	<string>1.0</string>
21
+	<key>CFBundleVersion</key>
22
+	<string>1</string>
23
+	<key>LSRequiresIPhoneOS</key>
24
+	<true/>
25
+	<key>NSAppTransportSecurity</key>
26
+	<dict>
27
+		<key>NSAllowsArbitraryLoads</key>
28
+		<true/>
29
+		<key>NSExceptionDomains</key>
30
+		<dict>
31
+			<key>localhost</key>
32
+			<dict>
33
+				<key>NSExceptionAllowsInsecureHTTPLoads</key>
34
+				<true/>
35
+			</dict>
36
+		</dict>
37
+	</dict>
38
+	<key>UILaunchStoryboardName</key>
39
+	<string>SplashScreen</string>
40
+	<key>UIRequiredDeviceCapabilities</key>
41
+	<array>
42
+		<string>armv7</string>
43
+	</array>
44
+	<key>UISupportedInterfaceOrientations</key>
45
+	<array>
46
+		<string>UIInterfaceOrientationPortrait</string>
47
+		<string>UIInterfaceOrientationLandscapeLeft</string>
48
+		<string>UIInterfaceOrientationLandscapeRight</string>
49
+	</array>
50
+	<key>UIViewControllerBasedStatusBarAppearance</key>
51
+	<false/>
52
+  <key>UIStatusBarStyle</key>
53
+  <string>UIStatusBarStyleDefault</string>
54
+</dict>
55
+</plist>

+ 91
- 0
ios/budgetizr/SplashScreen.storyboard Целия файл

@@ -0,0 +1,91 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document
3
+  type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
4
+  version="3.0"
5
+  toolsVersion="16096"
6
+  targetRuntime="iOS.CocoaTouch"
7
+  propertyAccessControl="none"
8
+  useAutolayout="YES"
9
+  launchScreen="YES"
10
+  useTraitCollections="YES"
11
+  useSafeAreas="YES"
12
+  colorMatched="YES"
13
+  initialViewController="EXPO-VIEWCONTROLLER-1"
14
+>
15
+  <device id="retina5_5" orientation="portrait" appearance="light"/>
16
+  <dependencies>
17
+    <deployment identifier="iOS"/>
18
+    <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
19
+    <capability name="Safe area layout guides" minToolsVersion="9.0"/>
20
+    <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
21
+  </dependencies>
22
+  <scenes>
23
+    <!--View Controller-->
24
+    <scene sceneID="EXPO-SCENE-1">
25
+      <objects>
26
+        <viewController
27
+          storyboardIdentifier="SplashScreenViewController"
28
+          id="EXPO-VIEWCONTROLLER-1"
29
+          sceneMemberID="viewController"
30
+        >
31
+          <view
32
+            key="view"
33
+            userInteractionEnabled="NO"
34
+            contentMode="scaleToFill"
35
+            insetsLayoutMarginsFromSafeArea="NO"
36
+            id="EXPO-ContainerView"
37
+            userLabel="ContainerView"
38
+          >
39
+            <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
40
+            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
41
+            <subviews>
42
+              <imageView
43
+                userInteractionEnabled="NO"
44
+                contentMode="scaleAspectFill"
45
+                horizontalHuggingPriority="251"
46
+                verticalHuggingPriority="251"
47
+                insetsLayoutMarginsFromSafeArea="NO"
48
+                image="SplashScreenBackground"
49
+                translatesAutoresizingMaskIntoConstraints="NO"
50
+                id="EXPO-SplashScreenBackground"
51
+                userLabel="SplashScreenBackground"
52
+              >
53
+                <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
54
+              </imageView>
55
+              <imageView
56
+                clipsSubviews="YES"
57
+                userInteractionEnabled="NO"
58
+                contentMode="scaleAspectFit"
59
+                horizontalHuggingPriority="251"
60
+                verticalHuggingPriority="251"
61
+                translatesAutoresizingMaskIntoConstraints="NO"
62
+                image="SplashScreen"
63
+                id="EXPO-SplashScreen"
64
+                userLabel="SplashScreen"
65
+              >
66
+                <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
67
+              </imageView>
68
+            </subviews>
69
+            <constraints>
70
+              <constraint firstItem="EXPO-SplashScreenBackground" firstAttribute="top" secondItem="EXPO-ContainerView" secondAttribute="top" id="1gX-mQ-vu6"/>
71
+              <constraint firstItem="EXPO-SplashScreenBackground" firstAttribute="leading" secondItem="EXPO-ContainerView" secondAttribute="leading" id="6tX-OG-Sck"/>
72
+              <constraint firstItem="EXPO-SplashScreenBackground" firstAttribute="trailing" secondItem="EXPO-ContainerView" secondAttribute="trailing" id="ABX-8g-7v4"/>
73
+              <constraint firstItem="EXPO-SplashScreenBackground" firstAttribute="bottom" secondItem="EXPO-ContainerView" secondAttribute="bottom" id="jkI-2V-eW5"/>
74
+              <constraint firstItem="EXPO-SplashScreen" firstAttribute="top" secondItem="EXPO-ContainerView" secondAttribute="top" id="2VS-Uz-0LU"/>
75
+              <constraint firstItem="EXPO-SplashScreen" firstAttribute="leading" secondItem="EXPO-ContainerView" secondAttribute="leading" id="LhH-Ei-DKo"/>
76
+              <constraint firstItem="EXPO-SplashScreen" firstAttribute="trailing" secondItem="EXPO-ContainerView" secondAttribute="trailing" id="I6l-TP-6fn"/>
77
+              <constraint firstItem="EXPO-SplashScreen" firstAttribute="bottom" secondItem="EXPO-ContainerView" secondAttribute="bottom" id="nbp-HC-eaG"/>
78
+            </constraints>
79
+            <viewLayoutGuide key="safeArea" id="Rmq-lb-GrQ"/>
80
+          </view>
81
+        </viewController>
82
+        <placeholder placeholderIdentifier="IBFirstResponder" id="EXPO-PLACEHOLDER-1" userLabel="First Responder" sceneMemberID="firstResponder"/>
83
+      </objects>
84
+      <point key="canvasLocation" x="140.625" y="129.4921875"/>
85
+    </scene>
86
+  </scenes>
87
+  <resources>
88
+    <image name="SplashScreen" width="414" height="736"/>
89
+    <image name="SplashScreenBackground" width="1" height="1"/>
90
+  </resources>
91
+</document>

+ 10
- 0
ios/budgetizr/Supporting/Expo.plist Целия файл

@@ -0,0 +1,10 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+        <key>EXUpdatesSDKVersion</key>
6
+        <string>YOUR-APP-SDK-VERSION-HERE</string>
7
+        <key>EXUpdatesURL</key>
8
+        <string>YOUR-APP-URL-HERE</string>
9
+</dict>
10
+</plist>

+ 10
- 0
ios/budgetizr/main.m Целия файл

@@ -0,0 +1,10 @@
1
+#import <UIKit/UIKit.h>
2
+
3
+#import "AppDelegate.h"
4
+
5
+int main(int argc, char * argv[]) {
6
+  @autoreleasepool {
7
+    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8
+  }
9
+}
10
+

+ 4
- 0
metro.config.js Целия файл

@@ -0,0 +1,4 @@
1
+// Learn more https://docs.expo.io/guides/customizing-metro
2
+const { getDefaultConfig } = require('expo/metro-config');
3
+
4
+module.exports = getDefaultConfig(__dirname);

+ 7602
- 0
package-lock.json
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 27
- 0
package.json Целия файл

@@ -0,0 +1,27 @@
1
+{
2
+  "main": "index.js",
3
+  "scripts": {
4
+    "android": "expo run:android",
5
+    "ios": "expo run:ios",
6
+    "web": "expo start --web",
7
+    "start": "react-native start"
8
+  },
9
+  "dependencies": {
10
+    "expo": "~43.0.2",
11
+    "expo-splash-screen": "~0.13.5",
12
+    "expo-status-bar": "~1.1.0",
13
+    "expo-updates": "~0.10.13",
14
+    "react": "17.0.1",
15
+    "react-dom": "17.0.1",
16
+    "react-native": "0.64.3",
17
+    "react-native-gesture-handler": "~1.10.2",
18
+    "react-native-reanimated": "~2.2.0",
19
+    "react-native-safe-area-context": "3.3.2",
20
+    "react-native-screens": "~3.8.0",
21
+    "react-native-web": "0.17.1"
22
+  },
23
+  "devDependencies": {
24
+    "@babel/core": "^7.12.9"
25
+  },
26
+  "private": true
27
+}

Loading…
Отказ
Запис