Skip to content

Commit

Permalink
strip proprietary libs & create release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
regulad committed Oct 20, 2024
1 parent fb630ee commit 69ad509
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 388 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Gradle Tasks"

on:
push:
branches:
- master
pull_request:
branches:
- master
tags:
- "v*.*.*"
schedule:
# ensures that workflow runs AT LEAST every 60 days to keep artifacts downloadable
- cron: "0 3 15 */2 *"
workflow_dispatch:

permissions:
contents: write

jobs:
build:
# - setup java
# - setup gradle cache
# - setup android sdk
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
# we don't need to declare any additional cache paths, the cache already catches everything
- uses: android-actions/setup-android@v3
- run: "chmod +x ./gradlew" # this project is used from windows, so it can be messed up
- run: "./gradlew build --no-daemon"
- uses: actions/upload-artifact@v4
with:
name: "gradle-artifacts"
path: |
app/build/outputs/apk/debug/app-debug.apk
- if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: app/build/outputs/apk/release/app-release-unsigned.apk
2 changes: 1 addition & 1 deletion .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ android {

buildTypes {
release {
isMinifyEnabled = false
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
Expand Down Expand Up @@ -71,7 +71,4 @@ dependencies {
implementation(libs.regulib.compose)

implementation(libs.androidx.material.icons.extended)

// HTC & LG support
compileOnly(files("./lib/HTCIR.jar", "./lib/QRemoteSDK.jar"))
}
Binary file removed app/lib/HTCIR.jar
Binary file not shown.
Binary file removed app/lib/QRemoteSDK.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.obd.infrared.detection.concrete.ActualDetector;
import com.obd.infrared.detection.concrete.HtcDetector;
import com.obd.infrared.detection.concrete.LeDetector;
import com.obd.infrared.detection.concrete.LgDetector;
import com.obd.infrared.detection.concrete.ObsoleteSamsungDetector;
import com.obd.infrared.transmit.TransmitterType;

Expand Down Expand Up @@ -48,7 +47,6 @@ public InfraRedDetector(Context context) {
this.detectorUtils = new DetectorUtils(context);

this.detectors.add(new ActualDetector());
this.detectors.add(new LgDetector());
this.detectors.add(new HtcDetector());
this.detectors.add(new LeDetector());
this.detectors.add(new ObsoleteSamsungDetector());
Expand Down

This file was deleted.

9 changes: 0 additions & 9 deletions app/src/main/java/com/obd/infrared/transmit/Transmitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import androidx.annotation.Nullable;
import com.obd.infrared.detection.InfraRedDetector;
import com.obd.infrared.transmit.concrete.ActualTransmitter;
import com.obd.infrared.transmit.concrete.HtcTransmitter;
import com.obd.infrared.transmit.concrete.LeTransmitter;
import com.obd.infrared.transmit.concrete.LgWithDeviceTransmitter;
import com.obd.infrared.transmit.concrete.LgWithoutDeviceTransmitter;
import com.obd.infrared.transmit.concrete.ObsoleteSamsungTransmitter;

public abstract class Transmitter {
Expand All @@ -29,14 +26,8 @@ public abstract class Transmitter {
return new ActualTransmitter(context);
case OBSOLETE_SAMSUNG:
return new ObsoleteSamsungTransmitter(context);
case HTC:
return new HtcTransmitter(context);
case LG:
return new LgWithDeviceTransmitter(context);
case LE_COOLPAD:
return new LeTransmitter(context);
case LG_WITHOUT_DEVICE:
return new LgWithoutDeviceTransmitter(context);
default:
return null;
}
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 69ad509

Please sign in to comment.