android-sdk-installer 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/android-sdk-installer.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e65bcb4daf01baabce3b792658917bd78c996bb
|
|
4
|
+
data.tar.gz: d98fefd2f7f53042f5a7e08e980f6f9c7b1bd24d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e77c0dc738ec2f96839f78564cc65dfe6545e1dc97b470835879f510b808129aa15edc2d792635e498455238e2baed02eddf72e4b389d44ad4fe1f2c2884e6d
|
|
7
|
+
data.tar.gz: a6578b55af64f8a76fbf49bd3cf8aa0185424187252d28143d88c7806ad66950cd7e9738cebe1214eb33372d95c8d0d5c87368d189e4bd2377e6a5dc97467d81
|
|
@@ -24,7 +24,6 @@ module AndroidInstaller
|
|
|
24
24
|
url = SDK_URL + sdk_path
|
|
25
25
|
@@logger.debug('Downloading version ' + version + ' for platform ' + platform + ' with url ' + url)
|
|
26
26
|
`wget --quiet --output-document=android-sdk.zip #{url}`
|
|
27
|
-
# TODO: error out here if file not found
|
|
28
27
|
unless File.file?('android-sdk.zip')
|
|
29
28
|
puts "\nAndroid SDK not found at url #{url}. Make sure you have the right values in your #{CONFIG_FILE}\n"
|
|
30
29
|
exit(1)
|
|
@@ -33,6 +32,10 @@ module AndroidInstaller
|
|
|
33
32
|
`unzip -q android-sdk.zip -d $PWD/android-sdk`
|
|
34
33
|
`rm android-sdk.zip`
|
|
35
34
|
`export ANDROID_HOME=$PWD/android-sdk`
|
|
35
|
+
# Gets rid of a warning
|
|
36
|
+
# https://askubuntu.com/questions/885658/android-sdk-repositories-cfg-could-not-be-loaded
|
|
37
|
+
`touch ~/.android/repositories.cfg`
|
|
38
|
+
@@logger.debug('SDK base installed to ' + Dir.pwd + 'android-sdk')
|
|
36
39
|
end
|
|
37
40
|
|
|
38
41
|
def install
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: android-sdk-installer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Commit 451
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|