Browse Source

Update install instructions

Arnaud Vergnet 3 years ago
parent
commit
4199a8700c
2 changed files with 5 additions and 117 deletions
  1. 5
    34
      INSTALL.md
  2. 0
    83
      install.sh

+ 5
- 34
INSTALL.md View File

@@ -66,43 +66,14 @@ git checkout master
66 66
 
67 67
 ## Installation du projet
68 68
 
69
-Une fois le dépôt sur votre machine et git sur la branche de votre choix, ouvrez le terminal dans le dossier du dépôt cloné et lancez le script d'installation avec la commande suivante : 
69
+Une fois le dépôt sur votre machine et git sur la branche de votre choix, ouvrez le terminal dans le dossier du dépôt cloné et installez les dépendances commande suivante : 
70 70
 ````shell script
71
-./install.sh [mode]
71
+npm install
72 72
 ````
73
-En remplaçant `[mode]` par le mode d'installation de votre choix. Les valeurs valides sont :
74
-````
75
-  --android     Installation juste pour Android
76
-  --ios         Installation juste pour iOS
77
-  --all         Installation pour Android et iOS
78
-````
79
-
80
-Lors de l'installation pour Android, vous serez amenés à créer un keystore (permettant d'authentifier l'appli sur votre tel). Plusieurs informations vous seront demandées, mais ce keystore n'est utile que pour le debug, donc vous pouvez laisser tous les champs vides, et taper `y` lors de la confirmation pour valider comme dans l'exemple ci-dessous :
81 73
 
82
-````
83
-Creating debug android keystore...
84
-What is your first and last name?
85
-  [Unknown]:  
86
-What is the name of your organizational unit?
87
-  [Unknown]:  
88
-What is the name of your organization?
89
-  [Unknown]:  
90
-What is the name of your City or Locality?
91
-  [Unknown]:  
92
-What is the name of your State or Province?
93
-  [Unknown]:  
94
-What is the two-letter country code for this unit?
95
-  [Unknown]:  
96
-Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?
97
-  [no]:  y
98
-
99
-Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 10,000 days
100
-        for: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown
101
-[Storing debug.keystore]
102
-Done
103
-
104
-Creating gradle.properties file...
105
-Done
74
+Si vous êtes sur macOS, vous devrez aussi lancez la commande suivant pour terminer l'installation :
75
+````shell script
76
+cd ios && pod install
106 77
 ````
107 78
 
108 79
 En cas de problème d'installation (notamment lors du changement de branche), lancez la commande suivante pour réinstaller seulement les modules node :

+ 0
- 83
install.sh View File

@@ -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
-

Loading…
Cancel
Save