@@ -8,178 +8,11 @@ edition = "2021"
8
8
[dependencies ]
9
9
log = " 0.4"
10
10
android_logger = " 0.11.0"
11
- android-activity = { version = " 0.4" , features = [ " native-activity" ] }
11
+ android-activity = { version = " 0.4" , features = [" native-activity" ] }
12
12
# android-activity = { path = "../../android-activity/android-activity", features = [ "native-activity" ] }
13
13
ndk-sys = " 0.4"
14
14
ndk = " 0.7"
15
15
16
16
[lib ]
17
17
# name="na_mainloop"
18
- crate_type =[" cdylib" ]
19
-
20
-
21
- # ###################
22
- # cargo apk config #
23
- # ###################
24
-
25
- [package .metadata .android ]
26
- # Specifies the package property of the manifest.
27
- package = " com.foo.bar"
28
-
29
- # Specifies the array of targets to build for.
30
- build_targets = [ " aarch64-linux-android" ]
31
-
32
- # Path to your application's resources folder.
33
- # If not specified, resources will not be included in the APK.
34
- # resources = "path/to/resources_folder"
35
-
36
- # Path to the folder containing your application's assets.
37
- # If not specified, assets will not be included in the APK.
38
- # assets = "path/to/assets_folder"
39
-
40
- # Name for final APK file.
41
- # Defaults to package name.
42
- # apk_name = "myapp"
43
-
44
- # Folder containing extra shared libraries intended to be dynamically loaded at runtime.
45
- # Files matching `libs_folder/${android_abi}/*.so` are added to the apk
46
- # according to the specified build_targets.
47
- # runtime_libs = "path/to/libs_folder"
48
-
49
- # See https://developer.android.com/guide/topics/manifest/uses-sdk-element
50
- #
51
- # Defaults to a `min_sdk_version` of 23 and `target_sdk_version` of 30 (or lower if the detected NDK doesn't support this).
52
- [package .metadata .android .sdk ]
53
- min_sdk_version = 28
54
- target_sdk_version = 31
55
- # max_sdk_version = 31
56
-
57
- # See https://developer.android.com/guide/topics/manifest/uses-feature-element
58
- #
59
- # Note: there can be multiple .uses_feature entries.
60
- [[package .metadata .android .uses_feature ]]
61
- name = " android.hardware.vulkan.level"
62
- required = true
63
- version = 1
64
-
65
- # See https://developer.android.com/guide/topics/manifest/uses-permission-element
66
- #
67
- # Note: there can be multiple .uses_permission entries.
68
- # [[package.metadata.android.uses_permission]]
69
- # name = "android.permission.WRITE_EXTERNAL_STORAGE"
70
- # max_sdk_version = 18
71
-
72
- # See https://developer.android.com/guide/topics/manifest/queries-element#provider
73
- # [[package.metadata.android.queries.provider]]
74
- # authorities = "org.khronos.openxr.runtime_broker;org.khronos.openxr.system_runtime_broker"
75
- # Note: The `name` attribute is normally not required for a queries provider, but is non-optional
76
- # as a workaround for aapt throwing errors about missing `android:name` attribute.
77
- # This will be made optional if/when cargo-apk migrates to aapt2.
78
- # name = "org.khronos.openxr"
79
-
80
- # See https://developer.android.com/guide/topics/manifest/queries-element#intent
81
- # [[package.metadata.android.queries.intent]]
82
- # actions = ["android.intent.action.SEND"]
83
-
84
- # See https://developer.android.com/guide/topics/manifest/queries-element#intent
85
- # Note: there can be several .data entries.
86
- # [[package.metadata.android.queries.intent.data]]
87
- # mime_type = "image/jpeg"
88
-
89
- # See https://developer.android.com/guide/topics/manifest/queries-element#package
90
- # [[package.metadata.android.queries.package]]
91
- # name = "org.freedesktop.monado.openxr_runtime.in_process"
92
-
93
- # See https://developer.android.com/guide/topics/manifest/application-element
94
- # [package.metadata.android.application]
95
-
96
- # See https://developer.android.com/guide/topics/manifest/application-element#debug
97
- #
98
- # Defaults to false.
99
- # debuggable = false
100
-
101
- # See https://developer.android.com/guide/topics/manifest/application-element#theme
102
- #
103
- # Example shows setting the theme of an application to fullscreen.
104
- # theme = "@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen"
105
-
106
- # Virtual path your application's icon for any mipmap level.
107
- # If not specified, an icon will not be included in the APK.
108
- # icon = "@mipmap/ic_launcher"
109
-
110
- # See https://developer.android.com/guide/topics/manifest/application-element#label
111
- #
112
- # Defaults to the compiled artifact's name.
113
- label = " Application Name"
114
-
115
- # See https://developer.android.com/guide/topics/manifest/meta-data-element
116
- #
117
- # Note: there can be several .meta_data entries.
118
- # Note: the `resource` attribute is currently not supported.
119
- # [[package.metadata.android.application.meta_data]]
120
- # name = "com.samsung.android.vr.application.mode"
121
- # value = "vr_only"
122
-
123
- # See https://developer.android.com/guide/topics/manifest/activity-element
124
- [package .metadata .android .application .activity ]
125
-
126
- # See https://developer.android.com/guide/topics/manifest/activity-element#nm
127
- #
128
- # The name of the class that implements the activity, a subclass of Activity
129
- #
130
- # Defaults to "android.app.NativeActivity"
131
- # name = "android.app.MyActivity"
132
-
133
- # See https://developer.android.com/guide/topics/manifest/activity-element#config
134
- #
135
- # Defaults to "orientation|keyboardHidden|screenSize".
136
- # config_changes = "orientation"
137
-
138
- # See https://developer.android.com/guide/topics/manifest/activity-element#label
139
- #
140
- # Defaults to the application's label.
141
- # label = "Activity Name"
142
-
143
- # See https://developer.android.com/guide/topics/manifest/activity-element#lmode
144
- #
145
- # Defaults to "standard".
146
- # launch_mode = "singleTop"
147
-
148
- # See https://developer.android.com/guide/topics/manifest/activity-element#screen
149
- #
150
- # Defaults to "unspecified".
151
- # orientation = "landscape"
152
-
153
- # See https://developer.android.com/guide/topics/manifest/activity-element#exported
154
- #
155
- # Unset by default, or "true" when targeting Android >= 31 (S and up).
156
- # exported = "true"
157
-
158
- # See https://developer.android.com/guide/topics/manifest/meta-data-element
159
- #
160
- # Note: there can be several .meta_data entries.
161
- # Note: the `resource` attribute is currently not supported.
162
- # [[package.metadata.android.application.activity.meta_data]]
163
- # name = "com.oculus.vr.focusaware"
164
- # value = "true"
165
-
166
- # See https://developer.android.com/guide/topics/manifest/intent-filter-element
167
- #
168
- # Note: there can be several .intent_filter entries.
169
- # [[package.metadata.android.application.activity.intent_filter]]
170
- # See https://developer.android.com/guide/topics/manifest/action-element
171
- # actions = ["android.intent.action.VIEW", "android.intent.action.WEB_SEARCH"]
172
- # See https://developer.android.com/guide/topics/manifest/category-element
173
- # categories = ["android.intent.category.DEFAULT", "android.intent.category.BROWSABLE"]
174
-
175
- # See https://developer.android.com/guide/topics/manifest/data-element
176
- #
177
- # Note: there can be several .data entries.
178
- # Note: not specifying an attribute excludes it from the final data specification.
179
- # [[package.metadata.android.application.activity.intent_filter.data]]
180
- # scheme = "https"
181
- # host = "github.com"
182
- # port = "8080"
183
- # path = "/rust-windowing/android-ndk-rs/tree/master/cargo-apk"
184
- # path_prefix = "/rust-windowing/"
185
- # mime_type = "image/jpeg"
18
+ crate_type = [" cdylib" ]
0 commit comments