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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/android-sdk-installer.rb +4 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e6654c7b4199d51418f607ca400b0c082ffc1ba
4
- data.tar.gz: 6e0497e6361a82b2a129254cb2b79e8b2158962d
3
+ metadata.gz: 9e65bcb4daf01baabce3b792658917bd78c996bb
4
+ data.tar.gz: d98fefd2f7f53042f5a7e08e980f6f9c7b1bd24d
5
5
  SHA512:
6
- metadata.gz: c4af3f2ffb368eda9922c198286cd1b3bd229e28868997c64b2b24d95f1179036d7c72031781643df389652296f00c3d8964ffc770f32c7c3bd2fdc8672f9793
7
- data.tar.gz: 1aba18b716e752ea611e34fdfb6699c5b4810638dab551a12f2d9bb6437bd377aa91774ee68e478d7b407c64b714cee809ba3257124f7781d252f489938e5366
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.5
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-23 00:00:00.000000000 Z
11
+ date: 2017-05-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: