Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-notifications
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
冷佳娟
react-native-notifications
Commits
75da8996
Commit
75da8996
authored
Jul 29, 2019
by
yogevbd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install android
parent
e7fb74b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
.circleci/config.yml
.circleci/config.yml
+3
-0
scripts/install.android.sh
scripts/install.android.sh
+40
-0
No files found.
.circleci/config.yml
View file @
75da8996
...
@@ -9,6 +9,9 @@ jobs:
...
@@ -9,6 +9,9 @@ jobs:
-
run
:
-
run
:
name
:
Install Dependencies
name
:
Install Dependencies
command
:
scripts/install.ios.sh
command
:
scripts/install.ios.sh
-
run
:
name
:
Install Android
command
:
scripts/install.android.sh
-
run
:
-
run
:
name
:
npm install
name
:
npm install
command
:
npm install
command
:
npm install
...
...
scripts/install.android.sh
0 → 100755
View file @
75da8996
#!/bin/bash -e
echo
node
-v
$(
node
-v
)
$(
dirname
"
$0
"
)
/install.sh
if
[
-z
"
$ZZ_BITRISE
"
]
;
then
ANDROID_API
=
28
ANDROID_HOME
=
"/usr/local/share/android-sdk"
echo
"export ANDROID_API=
${
ANDROID_API
}
"
>>
$BASH_ENV
echo
"export ANDROID_HOME=
${
ANDROID_HOME
}
"
>>
$BASH_ENV
cat
$BASH_ENV
# jdk
HOMEBREW_NO_INSTALL_CLEANUP
=
1
HOMEBREW_NO_AUTO_UPDATE
=
1 brew untap adoptopenjdk/openjdk
HOMEBREW_NO_INSTALL_CLEANUP
=
1
HOMEBREW_NO_AUTO_UPDATE
=
1 brew cask
install
adoptopenjdk8
export
PATH
=
"
$PATH
:
$ANDROID_HOME
/tools/bin"
# set variables
ANDROID_SDK_URL
=
"https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip"
TMP_DIR
=
$(
mktemp
-d
)
# download and install sdk
cd
"
$TMP_DIR
"
curl
"
$ANDROID_SDK_URL
"
>
"sdk.zip"
unzip
"sdk.zip"
-d
"
$ANDROID_HOME
"
# install what you need
yes
| sdkmanager
--licenses
||
:
echo
y | sdkmanager
"platforms;android-
${
ANDROID_API
}
"
echo
y | sdkmanager
"platform-tools"
echo
y | sdkmanager
"build-tools;28.0.3"
echo
y | sdkmanager
"extras;android;m2repository"
echo
y | sdkmanager
"extras;google;m2repository"
echo
y | sdkmanager
"system-images;android-
${
ANDROID_API
}
;google_apis;x86_64"
echo
y | sdkmanager
"extras;intel;Hardware_Accelerated_Execution_Manager"
echo
y | sdkmanager
"extras;google;google_play_services"
echo
no | avdmanager create avd
--force
--name
Nexus_5X_API_
${
ANDROID_API
}
--abi
x86_64
--device
"Nexus 5X"
-k
"system-images;android-
${
ANDROID_API
}
;google_apis;x86_64"
fi
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment