-
Notifications
You must be signed in to change notification settings - Fork 0
/
AndroidManifest.erb
88 lines (74 loc) · 4.23 KB
/
AndroidManifest.erb
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version='1.0' encoding='UTF-8'?>
<manifest xmlns:android='http://schemas.android.com/apk/res/android'
package='<%= @appPackageName %>'
android:versionName='<%= @versionName %>'
android:versionCode='<%= @versionCode %>'
android:installLocation='<%= @installLocation %>'>
<!-- Android SDK -->
<uses-sdk android:minSdkVersion='<%= @minSdkVer %>' android:targetSdkVersion='12'
<% if @maxSdkVer %>
android:maxSdkVersion='<%= @maxSdkVer %>'
<% end %>
/>
<!-- Permission declarations -->
<% @permissions.each do |name, protectionLevel| %>
<permission android:name='<%=name%>' android:protectionLevel='<%=protectionLevel%>'/>
<% end %>
<!-- Uses permissions -->
<% @usesPermissions.each do |name| %>
<uses-permission android:name='<%=name%>'/>
<% end %>
<uses-permission android:name='android.permission.CALL_PHONE' />
<supports-screens android:normalScreens='true' android:largeScreens='true' android:xlargeScreens='true'/>
<application android:name='com.rhomobile.rhodes.RhodesApplication'
android:label='@string/app_name'
android:icon='@drawable/icon'
android:debuggable='<%= @debuggable %>'>
<!-- Uses libraries -->
<% @usesLibraries.each do |name, isrequired| %>
<uses-library android:name='<%=name%>'
<% unless isrequired %>
android:required='<%=isrequired%>'
<% end %>
/>
<% end %>
<!-- Main activity -->
<activity android:name='com.rhomobile.rhodes.RhodesActivity'
android:label='@string/app_name'
android:launchMode='singleTask'
android:configChanges='orientation|screenSize|smallestScreenSize|keyboard|keyboardHidden'
android:screenOrientation='<%= @screenOrientation %>'
<% if @hardwareAcceleration %>
android:hardwareAccelerated='true'
<% end %> >
<% @rhodesActivityIntentFilters.each do |filter| %>
<%= makeIntentFilter(filter) %>
<% end %>
</activity>
<activity android:name='com.rhomobile.rhodes.alert.PopupActivity' android:windowSoftInputMode='stateAlwaysHidden' android:theme='@style/PopupTheme' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
<activity android:name='com.rhomobile.rhodes.ui.FileList' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
<activity android:name='com.rhomobile.rhodes.camera.ImageCapture' android:windowSoftInputMode='stateAlwaysHidden' android:screenOrientation='landscape'/>
<activity android:name='com.rhomobile.rhodes.signature.ImageCapture' android:windowSoftInputMode='stateAlwaysHidden' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
<activity android:name='com.rhomobile.rhodes.datetime.DateTimePickerScreen' android:windowSoftInputMode='stateAlwaysHidden' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
<activity android:name='com.rhomobile.rhodes.mapview.MapView' android:windowSoftInputMode='stateAlwaysHidden' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
<activity android:name='com.rhomobile.rhodes.bluetooth.RhoBluetoothDeviceListActivity' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
<service android:name='com.rhomobile.rhodes.RhodesService' android:exported='true'/>
<provider android:name='com.rhomobile.rhodes.LocalFileProvider' android:authorities='<%=@appPackageName%>' android:grantUriPermissions='false'>
<grant-uri-permission android:pathPrefix='/rhodes/apps/'/>
</provider>
<receiver android:name='com.rho.intent.IntentReceiver'>
<intent-filter>
<action android:name="com.rhomobile.BROADCAST" />
<category android:name="<%=@appPackageName%>" />
</intent-filter>
</receiver>
<!-- application tag addon templates from extensions -->
<% @applicationManifestAdds.each do |extAdd| %>
<%=render extAdd%>
<% end %>
</application>
<!-- manifest tag addon templates from extensions-->
<% @manifestManifestAdds.each do |extAdd| %>
<%=render extAdd%>
<% end %>
</manifest>