Skip to content

Commit

Permalink
Refactored 2867 code to match 2866 and Common Code
Browse files Browse the repository at this point in the history
Former-commit-id: af6f47a
  • Loading branch information
magneticflux- committed May 10, 2016
1 parent 94fec36 commit 3c24956
Show file tree
Hide file tree
Showing 289 changed files with 57,145 additions and 64,592 deletions.
10 changes: 0 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@

# Ignore all directories except FTCRobotContoller

/*
!/FTCRobotController

# Ignore all but src folder
/FTCRobotController/*
!/FTCRobotController/src

# built application files
*.apk
*.ap_
Expand Down
27 changes: 17 additions & 10 deletions FtcRobotController/FtcRobotController.iml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
Expand Down Expand Up @@ -79,20 +79,27 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/reports" />
<excludeFolder url="file://$MODULE_DIR$/build/test-results" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
<orderEntry type="jdk" jdkName="Android API 23 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="android-support-v4" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-21.0.3" level="project" />
<orderEntry type="library" exported="" name="support-v4-23.2.0" level="project" />
<orderEntry type="library" exported="" name="ModernRobotics-release-" level="project" />
<orderEntry type="library" exported="" name="Analytics-release-" level="project" />
<orderEntry type="library" exported="" name="FtcCommon-release-" level="project" />
<orderEntry type="library" exported="" name="WirelessP2p-release-" level="project" />
<orderEntry type="library" exported="" name="support-annotations-21.0.3" level="project" />
<orderEntry type="library" exported="" name="support-v4-21.0.3" level="project" />
<orderEntry type="library" exported="" name="Hardware-release-" level="project" />
<orderEntry type="library" exported="" name="commons-math3-3.6.1" level="project" />
<orderEntry type="library" exported="" name="RobotCore-release-" level="project" />
<orderEntry type="library" exported="" name="animated-vector-drawable-23.2.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-23.2.0" level="project" />
<orderEntry type="library" exported="" name="streamsupport-1.4.3" level="project" />
<orderEntry type="library" exported="" name="FtcCommon-release-" level="project" />
<orderEntry type="library" exported="" name="Analytics-release-" level="project" />
<orderEntry type="library" exported="" name="classindex-3.4" level="project" />
<orderEntry type="library" exported="" name="support-vector-drawable-23.2.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-23.2.0" level="project" />
<orderEntry type="library" exported="" name="Hardware-release-" level="project" />
<orderEntry type="module" module-name="Common-Code" exported="" />
</component>
</module>

31 changes: 3 additions & 28 deletions FtcRobotController/LICENSE
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
License information

================================================================================
FtcDriverStation, FtcRobotController, FtcCommon, Hardware, and RobotCore have
the following license:
FtcDriverStation, FtcRobotController, FtcCommon, Hardware, RobotCore
ModernRobotics, Analytics, and WirelessP2p have the following license:

Copyright (c) 2014, 2015 Qualcomm Technologies Inc
Copyright (c) 2014-2016 Qualcomm Technologies Inc

All rights reserved.

Expand Down Expand Up @@ -38,29 +38,4 @@ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright (c) 2014, 2015 Qualcomm Technologies Inc

================================================================================
ModernRobotics, Analitics, and WirelessP2p have the following license:

Copyright (c) 2014, 2015 Qualcomm Technologies, Inc. All rights reserved.
Confidential & Proprietary - Qualcomm Technologies, Inc. ("QTI")

The party receiving this software directly from QTI (the "Recipient") may use
this software as reasonably necessary solely for the purposes set forth in the
agreement between the Recipient and QTI (the "Agreement"). The software may be
used in source code form solely by the Recipient's employees (if any) authorized
by the Agreement. Unless expressly authorized in the Agreement, the Recipient
may not sublicense, assign, transfer or otherwise provide the source code to any
third party. Qualcomm Technologies, Inc. retains all ownership rights in and to
the software

Qualcomm Technologies Inc., will periodically collect anonymous information
about the device this software is installed on such as the make, model, and
software versions, but no information that identifies you.

This notice supersedes any other QTI notices contained within the software
except copyright notices indicating different years of publication for different
portions of the software. This notice does not supersede the application of any
third party copyright notice to that third party's code

34 changes: 28 additions & 6 deletions FtcRobotController/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,22 @@ apply plugin: 'com.android.application'
android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 19
targetSdkVersion 23
}
compileSdkVersion 23
buildToolsVersion '23.0.2'

lintOptions {
disable 'InvalidPackage'
}
compileSdkVersion 21
buildToolsVersion '21.1.2'
}

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.android.tools.build:gradle:2.1.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -37,12 +41,30 @@ allprojects {
}

dependencies {
compile files('libs/android-support-v4.jar')
//compile files('libs/android-support-v4.jar')
compile 'com.android.support:appcompat-v7:23.2.0'

compile(name: 'RobotCore-release', ext: 'aar')
compile(name: 'Hardware-release', ext: 'aar')
compile(name: 'FtcCommon-release', ext: 'aar')
compile(name: 'ModernRobotics-release', ext: 'aar')
compile(name: 'Analytics-release', ext: 'aar')
compile(name: 'WirelessP2p-release', ext: 'aar')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'net.sourceforge.streamsupport:streamsupport:1.4.3'
compile 'org.atteo.classindex:classindex:3.4'
compile 'org.apache.commons:commons-math3:3.6.1'
//compile 'com.github.Pattonville-Robotics:Common-Code:7e10b3c@aar'
compile project(':Common-Code')
}

/*
project.android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def pkgTask = output.packageApplication
def String variantName = variant.getName().capitalize()
if (pkgTask.getName().indexOf(variantName) != -1) {
pkgTask.setJavaResourceDir(new File(buildDir, "intermediates/classes/$variant.dirName"))
}
}
}
*/
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-all.zip
Binary file modified FtcRobotController/libs/Analytics-release.aar
100644 → 100755
Binary file not shown.
Binary file modified FtcRobotController/libs/FtcCommon-release.aar
100644 → 100755
Binary file not shown.
Binary file modified FtcRobotController/libs/Hardware-release.aar
100644 → 100755
Binary file not shown.
Binary file modified FtcRobotController/libs/ModernRobotics-release.aar
100644 → 100755
Binary file not shown.
Empty file modified FtcRobotController/libs/README.txt
100644 → 100755
Empty file.
Binary file modified FtcRobotController/libs/RobotCore-release.aar
100644 → 100755
Binary file not shown.
Binary file modified FtcRobotController/libs/WirelessP2p-release.aar
100644 → 100755
Binary file not shown.
168 changes: 88 additions & 80 deletions FtcRobotController/src/main/AndroidManifest.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,90 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.qualcomm.ftcrobotcontroller"
android:versionCode="4"
android:versionName="1.2">
<manifest
package="com.qualcomm.ftcrobotcontroller"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:versionCode="7"
android:versionName="1.6">


<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.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.ACCESS_WIFI_STATE"
android:required="true"/>
<uses-permission
android:name="android.permission.CHANGE_WIFI_STATE"
android:required="true"/>
<uses-permission
android:name="android.permission.WAKE_LOCK"
android:required="true"/>
<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-feature android:name="android.hardware.usb.accessory" />
<uses-feature android:name="android.hardware.usb.accessory"/>

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".FtcRobotControllerActivity"
android:configChanges="orientation|screenSize"
android:label="@string/app_name"
android:launchMode="singleTask" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".FtcRobotControllerActivity"
android:configChanges="orientation|screenSize"
android:label="@string/app_name"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>

<category android:name="android.intent.category.LAUNCHER" />
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/>
</intent-filter>

<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter"/>
</activity>
<activity
android:name="com.qualcomm.ftccommon.FtcRobotControllerSettingsActivity"
android:label="@string/settings_activity">
</activity>

<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
</activity>
<activity
android:name="com.qualcomm.ftccommon.FtcRobotControllerSettingsActivity"
android:label="@string/settings_activity" >
</activity>
<service
android:name="com.qualcomm.ftccommon.FtcRobotControllerService"
android:enabled="true" />
<activity
android:name="com.qualcomm.ftccommon.configuration.FtcLoadFileActivity"
android:label="@string/configure_activity"
tools:replace="android:label">
</activity>
<activity
android:name="com.qualcomm.ftccommon.FtcWifiChannelSelectorActivity"
android:label="@string/title_activity_wifi_channel_selector"
tools:replace="android:label">
</activity>
<activity
android:name="com.qualcomm.ftccommon.ConfigWifiDirectActivity"
android:label="@string/title_activity_config_wifi_direct" />
<activity
android:name="com.qualcomm.ftccommon.ViewLogsActivity"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_view_logs"
tools:replace="android:label">
<intent-filter>
<action android:name="com.qualcomm.ftcrobotcontroller.VIEW_LOGS"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
<service
android:name="com.qualcomm.ftccommon.FtcRobotControllerService"
android:enabled="true"/>

<activity
android:name="com.qualcomm.ftccommon.configuration.FtcLoadFileActivity"
android:label="@string/configure_activity"
tools:replace="android:label">
</activity>
<activity
android:name="com.qualcomm.ftccommon.FtcWifiChannelSelectorActivity"
android:label="@string/title_activity_wifi_channel_selector"
tools:replace="android:label">
</activity>
<activity
android:name="com.qualcomm.ftccommon.ConfigWifiDirectActivity"
android:label="@string/title_activity_config_wifi_direct"/>
<activity
android:name="com.qualcomm.ftccommon.ViewLogsActivity"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_view_logs"
tools:replace="android:label">
<intent-filter>
<action android:name="com.qualcomm.ftcrobotcontroller.VIEW_LOGS"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
</application>

</manifest>
22 changes: 0 additions & 22 deletions FtcRobotController/src/main/assets/robot_config.xml

This file was deleted.

Loading

0 comments on commit 3c24956

Please sign in to comment.