-
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 -> DataType.
- Loading branch information
1 parent
ce6ebca
commit a1da1e1
Showing
16 changed files
with
194 additions
and
136 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.
25 changes: 25 additions & 0 deletions
25
invert-models/src/commonMain/kotlin/com/squareup/invert/models/DataType.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,25 @@ | ||
package com.squareup.invert.models | ||
|
||
import kotlinx.serialization.Transient | ||
import kotlin.reflect.KClass | ||
|
||
enum class DataType( | ||
@Transient val basicType: Basic?, | ||
@Transient val backingType: KClass<*> | ||
) { | ||
BOOLEAN(Basic.BOOLEAN, Boolean::class), | ||
NUMERIC(Basic.NUMERIC, Long::class), | ||
STRING(Basic.STRING, String::class), | ||
CODE_REFERENCES(null, Stat.CodeReferencesStat.CodeReference::class), // EXPLORE (CUSTOM) | ||
DI_PROVIDES_AND_INJECTS(null, Stat.DiProvidesAndInjectsStat::class); // EXPLORE (CUSTOM) | ||
|
||
companion object { | ||
fun fromString(type: String?): DataType? { | ||
return DataType.entries.firstOrNull { it.name == type } | ||
} | ||
} | ||
|
||
enum class Basic { | ||
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
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.