From d57de5d4f2758f5a5bc0b84672156ca157525afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20Ib=C3=A1=C3=B1ez=20S=C3=A1nchez?= Date: Thu, 28 Dec 2023 15:32:26 +0100 Subject: [PATCH] Update Dokka config to exclude some packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jacob Ibáñez Sánchez --- plugin/build.gradle.kts | 2 +- .../plugin/android/godotplaygameservices/games/GameMapper.kt | 1 - .../android/godotplaygameservices/snapshots/SnapshotMapper.kt | 3 --- .../android/godotplaygameservices/snapshots/SnapshotsProxy.kt | 2 -- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index e4b299b..49919de 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -88,7 +88,7 @@ tasks.dokkaHtmlPartial { dokkaSourceSets.configureEach { perPackageOption { - matchingRegex.set(".*signin|.*utils") + matchingRegex.set(".*signin|.*utils|.*snapshots|.*games") suppress.set(true) } } diff --git a/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/games/GameMapper.kt b/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/games/GameMapper.kt index bd5daed..572f6a8 100644 --- a/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/games/GameMapper.kt +++ b/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/games/GameMapper.kt @@ -5,7 +5,6 @@ import com.jacobibanez.plugin.android.godotplaygameservices.utils.toStringAndSav import org.godotengine.godot.Dictionary import org.godotengine.godot.Godot -/** @suppress */ fun fromGame(godot: Godot, game: Game) = Dictionary().apply { put("areSnapshotsEnabled", game.areSnapshotsEnabled()) put("achievementTotalCount", game.achievementTotalCount) diff --git a/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/snapshots/SnapshotMapper.kt b/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/snapshots/SnapshotMapper.kt index 3ec4214..a16d619 100644 --- a/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/snapshots/SnapshotMapper.kt +++ b/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/snapshots/SnapshotMapper.kt @@ -9,20 +9,17 @@ import com.jacobibanez.plugin.android.godotplaygameservices.utils.toStringAndSav import org.godotengine.godot.Dictionary import org.godotengine.godot.Godot -/** @suppress */ fun fromConflict(godot: Godot, conflict: SnapshotConflict) = Dictionary().apply { put("conflictId", conflict.conflictId) put("conflictingSnapshot", fromSnapshot(godot, conflict.conflictingSnapshot)) put("serverSnapshot", fromSnapshot(godot, conflict.snapshot)) } -/** @suppress */ fun fromSnapshot(godot: Godot, snapshot: Snapshot) = Dictionary().apply { put("content", snapshot.snapshotContents.readFully()) put("metadata", fromSnapshotMetadata(godot, snapshot.metadata)) } -/** @suppress */ fun fromSnapshotMetadata(godot: Godot, metadata: SnapshotMetadata) = Dictionary().apply { put("snapshotId", metadata.snapshotId) put("uniqueName", metadata.uniqueName) diff --git a/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/snapshots/SnapshotsProxy.kt b/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/snapshots/SnapshotsProxy.kt index 5b0f8e4..79c8b49 100644 --- a/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/snapshots/SnapshotsProxy.kt +++ b/plugin/src/main/java/com/jacobibanez/plugin/android/godotplaygameservices/snapshots/SnapshotsProxy.kt @@ -19,8 +19,6 @@ import com.jacobibanez.plugin.android.godotplaygameservices.signals.SnapshotSign import org.godotengine.godot.Godot import org.godotengine.godot.plugin.GodotPlugin.emitSignal - -/** @suppress */ class SnapshotsProxy( private val godot: Godot, private val snapshotsClient: SnapshotsClient = PlayGames.getSnapshotsClient(godot.getActivity()!!)