|
@@ -1,83 +0,0 @@
|
1
|
|
-#!/bin/bash
|
2
|
|
-
|
3
|
|
-base_dir=$(pwd)
|
4
|
|
-
|
5
|
|
-function ios_install {
|
6
|
|
- cd "$base_dir"/ios || exit 1
|
7
|
|
- rm Podfile.lock
|
8
|
|
- pod install
|
9
|
|
-}
|
10
|
|
-
|
11
|
|
-function android_install {
|
12
|
|
- echo "Creating debug android keystore..."
|
13
|
|
- cd "$base_dir"/android/app && keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
|
14
|
|
- echo -e "Done\n"
|
15
|
|
-
|
16
|
|
- cd ..
|
17
|
|
- echo "Creating gradle.properties file..."
|
18
|
|
- echo "# Project-wide Gradle settings.
|
19
|
|
-
|
20
|
|
-# IDE (e.g. Android Studio) users:
|
21
|
|
-# Gradle settings configured through the IDE *will override*
|
22
|
|
-# any settings specified in this file.
|
23
|
|
-
|
24
|
|
-# For more details on how to configure your build environment visit
|
25
|
|
-# http://www.gradle.org/docs/current/userguide/build_environment.html
|
26
|
|
-
|
27
|
|
-# Specifies the JVM arguments used for the daemon process.
|
28
|
|
-# The setting is particularly useful for tweaking memory settings.
|
29
|
|
-# Default value: -Xmx10248m -XX:MaxPermSize=256m
|
30
|
|
-# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
31
|
|
-
|
32
|
|
-# When configured, Gradle will run in incubating parallel mode.
|
33
|
|
-# This option should only be used with decoupled projects. More details, visit
|
34
|
|
-# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
35
|
|
-# org.gradle.parallel=true
|
36
|
|
-
|
37
|
|
-# AndroidX package structure to make it clearer which packages are bundled with the
|
38
|
|
-# Android operating system, and which are packaged with your app's APK
|
39
|
|
-# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
40
|
|
-android.useAndroidX=true
|
41
|
|
-# Automatically convert third-party libraries to use AndroidX
|
42
|
|
-android.enableJetifier=true
|
43
|
|
-# Version of flipper SDK to use with React Native
|
44
|
|
-FLIPPER_VERSION=0.37.0
|
45
|
|
-# This file is not included in git because it may contain secrets concerning the release key.
|
46
|
|
-# To get those secrets, please contact the author at vergnet@etud.insa-toulouse.fr
|
47
|
|
-" > gradle.properties
|
48
|
|
- echo -e "Done\n"
|
49
|
|
-}
|
50
|
|
-
|
51
|
|
-function node_install {
|
52
|
|
- cd "$base_dir" || exit 1
|
53
|
|
- ./clear-node-cache.sh
|
54
|
|
-}
|
55
|
|
-
|
56
|
|
-if [[ $1 == "--android" ]]
|
57
|
|
-then
|
58
|
|
- echo "Installing for Android only"
|
59
|
|
- node_install
|
60
|
|
- android_install
|
61
|
|
-elif [[ $1 == "--ios" ]]
|
62
|
|
-then
|
63
|
|
- echo "Installing for iOS only"
|
64
|
|
- node_install
|
65
|
|
- ios_install
|
66
|
|
-elif [[ $1 == "--all" ]]
|
67
|
|
-then
|
68
|
|
- echo "Installing for Android and iOS"
|
69
|
|
- node_install
|
70
|
|
- android_install
|
71
|
|
- ios_install
|
72
|
|
-else
|
73
|
|
- echo "Usage: ./install.sh [mode]"
|
74
|
|
- echo " [mode]: --android Installs only Android dependencies"
|
75
|
|
- echo " [mode]: --ios Installs only iOS dependencies"
|
76
|
|
- echo " [mode]: --all Installs Android and iOS dependencies"
|
77
|
|
-fi
|
78
|
|
-exit
|
79
|
|
-
|
80
|
|
-
|
81
|
|
-
|
82
|
|
-
|
83
|
|
-
|