Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit f53bbf0

Browse files
authored
Merge pull request #7 from NoahAndrews/extreme-turbo-webserver
Reduce RobotServer module size and add it to the Extreme Turbo build config
2 parents 1f13e79 + 897fec4 commit f53bbf0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+27
-18909
lines changed

Blocks/src/main/AndroidManifest.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,4 @@
88
<uses-permission
99
android:name="android.permission.READ_EXTERNAL_STORAGE"
1010
android:required="true" />
11-
12-
<application>
13-
<activity
14-
android:name="org.firstinspires.ftc.ftccommon.internal.ProgramAndManageActivity"
15-
android:configChanges="orientation|screenSize"
16-
android:label="@string/program_and_manage_activity" >
17-
</activity>
18-
</application>
19-
2011
</manifest>

Blocks/src/main/res/values/values.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<string name="network_not_ok">Network not OK.</string>
1212
<string name="not_available">&lt;NOT AVAILABLE></string>
1313
<string name="passphrase_label">Use the following passphrase to gain access to the network:</string>
14-
<string name="program_and_manage_activity">Program &amp; Manage</string>
1514
<string name="server_not_ok">Server not OK.</string>
1615
<string name="server_ok">Server OK (Running since %1$s)</string>
1716
<string name="server_status_label">Server status:</string>

FtcCommon/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ dependencies {
2020
implementation project(':Hardware')
2121
implementation project(':Inspection')
2222
implementation project(':RobotCore')
23+
implementation project(':RobotServer')
2324

24-
turboImplementation project(':RobotServer')
2525
//turboImplementation project(':OpenRC')
2626

2727
//extremeTurboImplementation project(':OpenRC')

FtcCommon/src/extremeTurbo/java/org/firstinspires/ftc/ftccommon/internal/ProgramAndManageActivity.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

FtcCommon/src/extremeTurbo/java/org/firstinspires/ftc/robotserver/internal/webserver/CoreRobotWebServer.java

Lines changed: 0 additions & 44 deletions
This file was deleted.

FtcCommon/src/main/AndroidManifest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@
205205
android:label="@string/edit_analog_output_devices_activity"
206206
android:windowSoftInputMode="stateHidden|adjustResize" >
207207
</activity>
208+
<activity
209+
android:name="org.firstinspires.ftc.ftccommon.internal.ProgramAndManageActivity"
210+
android:configChanges="orientation|screenSize"
211+
android:label="@string/program_and_manage_activity" >
212+
</activity>
208213

209214
<!-- Assistant that autostarts the robot controller on android boot (if it's supposed to) -->
210215
<receiver

FtcCommon/src/main/java/com/qualcomm/ftccommon/FtcRobotControllerService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,13 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5555
import com.qualcomm.robotcore.robot.RobotState;
5656
import com.qualcomm.robotcore.robot.RobotStatus;
5757
import com.qualcomm.robotcore.util.Device;
58-
import com.qualcomm.robotcore.util.Intents;
5958
import com.qualcomm.robotcore.util.RobotLog;
6059
import com.qualcomm.robotcore.util.ThreadPool;
6160
import com.qualcomm.robotcore.util.WebServer;
6261
import com.qualcomm.robotcore.wifi.NetworkConnection;
6362
import com.qualcomm.robotcore.wifi.NetworkConnectionFactory;
6463
import com.qualcomm.robotcore.wifi.NetworkType;
6564

66-
import org.firstinspires.ftc.robotcore.internal.hardware.android.AndroidBoard;
6765
import org.firstinspires.ftc.robotcore.internal.hardware.android.DragonboardIndicatorLED;
6866
import org.firstinspires.ftc.robotcore.internal.network.CallbackResult;
6967
import org.firstinspires.ftc.robotcore.internal.network.NetworkConnectionHandler;

FtcCommon/src/main/res/values/values.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@
221221
<string name="pref_wifi_automute">Wifi Auto Mute</string>
222222
<string name="prefedit_wifi_automute">Wifi Auto Mute</string>
223223
<string name="prefedit_wifi_automute_summary">Turn wifi off automatically after a period of inactivity.</string>
224+
<string name="program_and_manage_activity">Program &amp; Manage</string>
224225
<string name="readOnlyConfigFeedback">read-only</string>
225226
<string name="readOnlyExplanation">Read-only configurations can be edited, but must be saved under a new name.</string>
226227
<string name="readXML_text">Select an XML file to instantiate a Robot from that file</string>

FtcRobotController/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ dependencies {
4141
extremeTurboApi project(':Inspection')
4242
extremeTurboApi project(':Hardware')
4343
extremeTurboApi project(':OpenRC')
44+
extremeTurboApi project(':RobotServer')
4445

4546
stockApi 'org.firstinspires.ftc:Inspection:5.5'
4647
stockApi 'org.firstinspires.ftc:Blocks:5.5'

0 commit comments

Comments
 (0)