From 8f9d7cd573374138af22084694169e9300e67c2c Mon Sep 17 00:00:00 2001 From: InfinityDevTech Date: Mon, 10 Jul 2023 13:15:15 -0400 Subject: [PATCH 1/2] Kotlin! Clean repo and code --- PhotonCore/consumer-rules.pro => .gitignore | 0 .idea/compiler.xml | 6 ++++++ .idea/gradle.xml | 17 +++++++++++++++++ .idea/misc.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ PhotonCore/.gitignore | 1 - PhotonCore/proguard-rules.pro | 21 --------------------- 7 files changed, 37 insertions(+), 22 deletions(-) rename PhotonCore/consumer-rules.pro => .gitignore (100%) create mode 100644 .idea/compiler.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml delete mode 100644 PhotonCore/.gitignore delete mode 100644 PhotonCore/proguard-rules.pro diff --git a/PhotonCore/consumer-rules.pro b/.gitignore similarity index 100% rename from PhotonCore/consumer-rules.pro rename to .gitignore diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..659bf43 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..abca41b --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..370437b --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PhotonCore/.gitignore b/PhotonCore/.gitignore deleted file mode 100644 index 42afabf..0000000 --- a/PhotonCore/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build \ No newline at end of file diff --git a/PhotonCore/proguard-rules.pro b/PhotonCore/proguard-rules.pro deleted file mode 100644 index 481bb43..0000000 --- a/PhotonCore/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file From 298b1994b0b1bb70c3d8e0d36eb700217890b6b2 Mon Sep 17 00:00:00 2001 From: InfinityDevTech Date: Mon, 10 Jul 2023 15:00:06 -0400 Subject: [PATCH 2/2] Actually added kotlin code this time :) --- .gitignore | 4 + .idea/gradle.xml | 1 - .idea/misc.xml | 2 +- PhotonCore/build.gradle | 14 +- .../photoncore/Neutrino/MB1242/MB1242Ex.java | 253 ----------- .../photoncore/Neutrino/MB1242/MB1242Ex.kt | 185 ++++++++ .../Rev2MSensor/Rev2mDistanceSensorEx.java | 70 --- .../Rev2MSensor/Rev2mDistanceSensorEx.kt | 56 +++ .../BroadcomColorSensorImplEx.java | 429 ------------------ .../BroadcomColorSensorImplEx.kt | 412 +++++++++++++++++ .../RevColorSensor/RevColorSensorV3Ex.java | 169 ------- .../RevColorSensor/RevColorSensorV3Ex.kt | 161 +++++++ .../photoncore/PhotonCore.java | 426 ----------------- .../photoncore/PhotonCore.kt | 340 ++++++++++++++ .../photoncore/PhotonLynxModule.java | 83 ---- .../photoncore/PhotonLynxModule.kt | 68 +++ .../photoncore/ReflectionUtils.java | 50 -- .../photoncore/ReflectionUtils.kt | 51 +++ build.gradle | 4 + 19 files changed, 1290 insertions(+), 1488 deletions(-) delete mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/Neutrino/MB1242/MB1242Ex.java create mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/Neutrino/MB1242/MB1242Ex.kt delete mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/Neutrino/Rev2MSensor/Rev2mDistanceSensorEx.java create mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/Neutrino/Rev2MSensor/Rev2mDistanceSensorEx.kt delete mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/Neutrino/RevColorSensor/BroadcomColorSensorImplEx.java create mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/Neutrino/RevColorSensor/BroadcomColorSensorImplEx.kt delete mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/Neutrino/RevColorSensor/RevColorSensorV3Ex.java create mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/Neutrino/RevColorSensor/RevColorSensorV3Ex.kt delete mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/PhotonCore.java create mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/PhotonCore.kt delete mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/PhotonLynxModule.java create mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/PhotonLynxModule.kt delete mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/ReflectionUtils.java create mode 100644 PhotonCore/src/main/java/com/outoftheboxrobotics/photoncore/ReflectionUtils.kt diff --git a/.gitignore b/.gitignore index e69de29..989a4d5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +.gradle +.idea + +PhotonCore/build \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index abca41b..2f72e47 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,7 +4,6 @@