confetti 0.9.17 → 0.9.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confetti (0.9.16)
4
+ confetti (0.9.17)
5
5
  mustache (~> 0.11.2)
6
6
 
7
7
  GEM
@@ -19,6 +19,9 @@
19
19
  {{# permissions }}
20
20
  <uses-permission android:name="android.permission.{{ name }}" />
21
21
  {{/ permissions }}
22
+ {{# features }}
23
+ <uses-feature android:name="android.hardware.{{ name }}" android:required="false"/>
24
+ {{/ features }}
22
25
 
23
26
  <application android:icon="@drawable/icon" android:label="@string/app_name"
24
27
  android:debuggable="true" android:hardwareAccelerated="true">
@@ -22,6 +22,10 @@ module Confetti
22
22
  "battery" => %w{BROADCAST_STICKY}
23
23
  }
24
24
 
25
+ GAP_FEATURES_MAP = {
26
+ "camera" => %w{camera}
27
+ }
28
+
25
29
  ORIENTATIONS_MAP = {
26
30
  :default => "unspecified",
27
31
  :landscape => "landscape",
@@ -58,20 +62,28 @@ module Confetti
58
62
  end
59
63
 
60
64
  def permissions
61
- permissions = []
65
+ translate_feature GAP_PERMISSIONS_MAP
66
+ end
67
+
68
+ def features
69
+ translate_feature GAP_FEATURES_MAP
70
+ end
71
+
72
+ def translate_feature map
73
+ features = []
62
74
  phonegap_api = /http\:\/\/api.phonegap.com\/1[.]0\/(\w+)/
63
75
  feature_names = @config.feature_set.map { |f| f.name }
64
76
  feature_names.sort
65
77
 
66
78
  feature_names.each do |f|
67
79
  feature_name = f.match(phonegap_api)[1] if f.match(phonegap_api)
68
- associated_permissions = GAP_PERMISSIONS_MAP[feature_name]
80
+ associated_features = map[feature_name]
69
81
 
70
- permissions.concat(associated_permissions) if associated_permissions
82
+ features.concat(associated_features) if associated_features
71
83
  end
72
84
 
73
- permissions.sort!
74
- permissions.map { |f| { :name => f } }
85
+ features.sort!
86
+ features.map { |f| { :name => f } }
75
87
  end
76
88
 
77
89
  def install_location
@@ -1,3 +1,3 @@
1
1
  module Confetti
2
- VERSION = "0.9.17"
2
+ VERSION = "0.9.18"
3
3
  end
@@ -20,7 +20,7 @@
20
20
  android:debuggable="true" android:hardwareAccelerated="true">
21
21
  <activity android:name=".ConfettiBareApp"
22
22
  android:screenOrientation="unspecified"
23
- android:label="@string/app_name" android:configChanges="orientation|keyboardHidden">
23
+ android:label="@string/app_name" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale">
24
24
  <intent-filter>
25
25
  <action android:name="android.intent.action.MAIN" />
26
26
  <category android:name="android.intent.category.LAUNCHER" />
@@ -21,11 +21,12 @@
21
21
  <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
22
22
  <uses-permission android:name="android.permission.CAMERA" />
23
23
  <uses-permission android:name="android.permission.VIBRATE" />
24
+ <uses-feature android:name="android.hardware.camera" android:required="false"/>
24
25
  <application android:icon="@drawable/icon" android:label="@string/app_name"
25
26
  android:debuggable="true" android:hardwareAccelerated="true">
26
27
  <activity android:name=".ConfettiSampleApp"
27
28
  android:screenOrientation="unspecified"
28
- android:label="@string/app_name" android:configChanges="orientation|keyboardHidden">
29
+ android:label="@string/app_name" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale">
29
30
  <intent-filter>
30
31
  <action android:name="android.intent.action.MAIN" />
31
32
  <category android:name="android.intent.category.LAUNCHER" />
@@ -24,7 +24,7 @@
24
24
  android:debuggable="true" android:hardwareAccelerated="true">
25
25
  <activity android:name=".AwesomeApp"
26
26
  android:screenOrientation="unspecified"
27
- android:label="@string/app_name" android:configChanges="orientation|keyboardHidden">
27
+ android:label="@string/app_name" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale">
28
28
  <intent-filter>
29
29
  <action android:name="android.intent.action.MAIN" />
30
30
  <category android:name="android.intent.category.LAUNCHER" />
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confetti
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 17
10
- version: 0.9.17
9
+ - 18
10
+ version: 0.9.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew Lunny
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2013-08-09 00:00:00 Z
20
+ date: 2013-09-09 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: mustache