Skip to content

Commit

Permalink
Added correct manifest data to include RobotApplication and metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
magneticflux- committed Nov 3, 2017
1 parent 0fabad1 commit 081d27b
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 5 deletions.
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 19
versionCode 4
versionName "3.5.1"
versionCode 5
versionName "3.5.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

ndk {
Expand Down
78 changes: 75 additions & 3 deletions library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,81 @@
<manifest xmlns:android="http:https://schemas.android.com/apk/res/android"
package="com.qualcomm.robotcore">

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission
android:name="android.permission.ACCESS_WIFI_STATE"
android:required="true" />
<uses-permission
android:name="android.permission.CHANGE_WIFI_STATE"
android:required="true" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE"
android:required="true" />
<uses-permission
android:name="android.permission.CHANGE_NETWORK_STATE"
android:required="true" />
<uses-permission
android:name="android.permission.INTERNET"
android:required="true" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:required="true" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:required="true" />
<uses-permission
android:name="android.permission.WRITE_SETTINGS"
android:required="true" />
<uses-permission
android:name="android.permission.SERIAL_PORT"
android:required="true" />

<!--
Note: we suspect that this (android.permission.WAKE_LOCK) is no
longer needed, but haven't yet found the time necessary to verify
that assertion before removing it
-->
<uses-permission
android:name="android.permission.WAKE_LOCK"
android:required="true" />
<uses-permission android:name="android.permission.CAMERA" />

<uses-feature android:name="android.hardware.usb.accessory" />
<uses-feature android:glEsVersion="0x00020000" />

<!--
NOTE: Any application that requests the CAMERA permission but does not
declare any camera features with the <uses-feature> element will be
assumed to use all camera features (auto-focus and flash). Thus, the
application will not be compatible with devices that do not support
all camera features. We use <uses-feature> to declare only the
camera features that our application does need. For instance, if you
request the CAMERA permission, but you do not need auto-focus or
flash, then declare only the android.hardware.camera feature. The
other camera features that you do not request will no longer be
assumed as required.
-->
<uses-feature android:name="android.hardware.camera" />

<application android:name="org.firstinspires.ftc.robotcore.internal.system.RobotApplication">

<!-- Service that keeps desktop folders up to date with respect to actual phone file system contents -->
<service
android:name="org.firstinspires.ftc.robotcore.internal.files.MediaTransferProtocolMonitorService"
android:enabled="true" />

<meta-data
android:name="autoStartService.org.firstinspires.ftc.robotcore.internal.files.MediaTransferProtocolMonitorService"
android:value="BOTH|1000" />

<!-- Service that provides build services for OnBotJava -->
<service
android:name="org.firstinspires.ftc.robotcore.internal.opmode.OnBotJavaService"
android:enabled="true" />

<meta-data
android:name="autoStartService.org.firstinspires.ftc.robotcore.internal.opmode.OnBotJavaService"
android:value="RC|2000" />
</application>

<application />
</manifest>

0 comments on commit 081d27b

Please sign in to comment.