Skip to content

Commit

Permalink
Update Dokka config to exclude some packages
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Ibáñez Sánchez <jacobibanez@jacobibanez.com>
  • Loading branch information
Iakobs committed Dec 28, 2023
1 parent aa53c30 commit d57de5d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ tasks.dokkaHtmlPartial {

dokkaSourceSets.configureEach {
perPackageOption {
matchingRegex.set(".*signin|.*utils")
matchingRegex.set(".*signin|.*utils|.*snapshots|.*games")
suppress.set(true)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()!!)
Expand Down

0 comments on commit d57de5d

Please sign in to comment.