-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_env
56 lines (44 loc) · 1.42 KB
/
install_env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#installation ionic and cordova
sudo apt install npm
sudo npm install -g cordova
sudo npm install -g ionic
#configure platform in project
ionic cordova platform add android
# Java jdk
sudo apt install openjdk-8-jdk
# Android sdk
# https://www.androidcentral.com/installing-android-sdk-windows-mac-and-linux-tutorial
# https://ionicframework.com/docs/installation/android#java
# Rename sdk to Android and put in Home folder.
sudo apt-get install lib32ncurses5 lib32stdc++6
# Add to ~/.bash_profile
export ANDROID_SDK_ROOT=$HOME/Android/sdk
export PATH=$PATH:$ANDROID_SDK_ROOT/tools/bin
# Android SDK build tools
https://developer.android.com/studio/command-line/sdkmanager
./sdkmanager "build-tools;28.0.3"
./sdkmanager --update
# Platform tools
# https://developer.android.com/studio/command-line/sdkmanager.html
./sdkmanager "platform-tools" "platforms;android-28"
# Add to ~/.bash_profile
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
# Gradle - used for installing app on android
curl -s "https://get.sdkman.io" | bash
sdk install gradle 5.1.1
# Install plugins in project folder
npm install
# Run in browser
ionic cordova run browser -l
# Install on device
ionic cordova run android
# IOS
sudo gem install cocoapods
# Step into dir platform/ios
pod install
pod update
# IOS privacy settings in Xcode
# /platform/ios/Finedr/Finedr-Info.plist
# Info
# Key: Privacy - Camera Usage Description
# Value: "Whatever the camera is used for."