Skip to content

Commit b304b0d

Browse files
jamesarichCopilot
andcommitted
ci: remove core:api from workflow lint and publish steps
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 721fa3e commit b304b0d

4 files changed

Lines changed: 3 additions & 21 deletions

File tree

.github/workflows/publish-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
fi
4646
4747
- name: Publish to GitHub Packages
48-
run: ./gradlew :core:api:publish :core:model:publish :core:proto:publish
48+
run: ./gradlew :core:model:publish :core:proto:publish
4949
env:
5050
GITHUB_ACTOR: ${{ github.actor }}
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/reusable-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112

113113
- name: Lint, Analysis & KMP Smoke Compile
114114
if: inputs.run_lint == true
115-
run: ./gradlew spotlessCheck detekt androidApp:lintFdroidDebug androidApp:lintGoogleDebug core:barcode:lintFdroidDebug core:barcode:lintGoogleDebug core:api:lintDebug kmpSmokeCompile -Pci=true --continue
115+
run: ./gradlew spotlessCheck detekt androidApp:lintFdroidDebug androidApp:lintGoogleDebug core:barcode:lintFdroidDebug core:barcode:lintGoogleDebug kmpSmokeCompile -Pci=true --continue
116116

117117
- name: KMP Smoke Compile (lint skipped)
118118
if: inputs.run_lint == false

core/common/src/androidMain/kotlin/org/meshtastic/core/common/util/CompatExtensions.kt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,14 @@ import android.content.BroadcastReceiver
2020
import android.content.Context
2121
import android.content.Intent
2222
import android.content.IntentFilter
23-
import android.content.pm.PackageInfo
24-
import android.content.pm.PackageManager
25-
import android.os.Build
26-
import android.os.Parcel
2723
import android.os.Parcelable
2824
import androidx.core.content.ContextCompat
2925
import androidx.core.content.IntentCompat
30-
import androidx.core.os.ParcelCompat
31-
32-
/** Reads a [Parcelable] from a [Parcel] in a backward-compatible way. */
33-
inline fun <reified T : Parcelable> Parcel.readParcelableCompat(loader: ClassLoader?): T? =
34-
ParcelCompat.readParcelable(this, loader, T::class.java)
3526

3627
/** Retrieves a [Parcelable] extra from an [Intent] in a backward-compatible way. */
3728
inline fun <reified T : Parcelable> Intent.getParcelableExtraCompat(key: String?): T? =
3829
IntentCompat.getParcelableExtra(this, key, T::class.java)
3930

40-
/** Retrieves [PackageInfo] for a given package name in a backward-compatible way. */
41-
fun PackageManager.getPackageInfoCompat(packageName: String, flags: Int = 0): PackageInfo =
42-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
43-
getPackageInfo(packageName, PackageManager.PackageInfoFlags.of(flags.toLong()))
44-
} else {
45-
@Suppress("DEPRECATION")
46-
getPackageInfo(packageName, flags)
47-
}
48-
4931
/** Registers a [BroadcastReceiver] using [ContextCompat] to ensure consistent behavior across Android versions. */
5032
fun Context.registerReceiverCompat(
5133
receiver: BroadcastReceiver,

core/data/src/commonTest/kotlin/org/meshtastic/core/data/manager/MeshDataHandlerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class MeshDataHandlerTest {
152152

153153
handler.handleReceivedData(packet, myNodeNum)
154154

155-
// Position from local node: shouldBroadcast stays as !fromUs = false
155+
// Position from local node — no further action expected
156156
}
157157

158158
@Test

0 commit comments

Comments
 (0)