-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added in "ExtraMetadata" for CodeReferences and changed CollectedStat…
…Type -> StatDataType. More
- Loading branch information
1 parent
ce6ebca
commit eceb27a
Showing
17 changed files
with
199 additions
and
142 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
invert-gradle-plugin/src/main/kotlin/com/squareup/invert/ReportOutputConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.squareup.invert | ||
|
||
import java.io.File | ||
|
||
data class ReportOutputConfig( | ||
val invertReportDirectory: File | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
plugins { | ||
kotlin("multiplatform") | ||
kotlin("plugin.serialization") | ||
alias(libs.plugins.dokka) | ||
alias(libs.plugins.vanniktech.maven.publish) | ||
kotlin("multiplatform") | ||
kotlin("plugin.serialization") | ||
alias(libs.plugins.dokka) | ||
alias(libs.plugins.vanniktech.maven.publish) | ||
} | ||
|
||
kotlin { | ||
js { | ||
browser() | ||
} | ||
jvm { | ||
withSourcesJar() | ||
} | ||
js { | ||
browser() | ||
} | ||
jvm { | ||
withSourcesJar() | ||
} | ||
|
||
sourceSets { | ||
val commonMain by getting { | ||
dependencies { | ||
api(libs.kotlinx.serialization.core) | ||
api(libs.kotlinx.serialization.json) | ||
} | ||
} | ||
sourceSets { | ||
val commonMain by getting { | ||
dependencies { | ||
api(libs.kotlinx.serialization.core) | ||
api(libs.kotlinx.serialization.json) | ||
} | ||
} | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
invert-models/src/commonMain/kotlin/com/squareup/invert/models/CollectedStatType.kt
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
invert-models/src/commonMain/kotlin/com/squareup/invert/models/ExtraDataType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.squareup.invert.models | ||
|
||
enum class ExtraDataType { | ||
BOOLEAN, NUMERIC, STRING | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
invert-models/src/commonMain/kotlin/com/squareup/invert/models/StatDataType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.squareup.invert.models | ||
|
||
import kotlinx.serialization.Transient | ||
import kotlin.reflect.KClass | ||
|
||
enum class StatDataType( | ||
@Transient val backingType: KClass<*> | ||
) { | ||
BOOLEAN(Boolean::class), | ||
NUMERIC(Long::class), | ||
STRING(String::class), | ||
CODE_REFERENCES(Stat.CodeReferencesStat.CodeReference::class), // EXPLORE (CUSTOM) | ||
DI_PROVIDES_AND_INJECTS(Stat.DiProvidesAndInjectsStat::class); // EXPLORE (CUSTOM) | ||
|
||
companion object { | ||
fun fromString(type: String?): StatDataType? { | ||
return StatDataType.entries.firstOrNull { it.name == type } | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.