Skip to content

Commit

Permalink
!wip
Browse files Browse the repository at this point in the history
  • Loading branch information
uniumuniu committed Oct 18, 2023
1 parent 9ecf32d commit 4a164ba
Show file tree
Hide file tree
Showing 13 changed files with 962 additions and 51 deletions.
15 changes: 0 additions & 15 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,3 @@ tasks.named<Test>("test") {
showStandardStreams = true
}
}

// TODO: Remove excludes when Instance.kt is ready
sourceSets {
main {
kotlin {
exclude("com/featurevisor/sdk/Instance.kt")
exclude("com/featurevisor/sdk/InstanceOptions.kt")
}
}
test {
kotlin {
exclude("com/featurevisor/sdk/InstanceTest.kt")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.featurevisor.types.FeatureKey
import com.featurevisor.types.Segment
import com.featurevisor.types.SegmentKey

class DataFileReader constructor(
class DatafileReader constructor(
datafileJson: DatafileContent,
) {
private val schemaVersion: String = datafileJson.schemaVersion
Expand Down
6 changes: 6 additions & 0 deletions src/main/kotlin/com/featurevisor/sdk/FeaturevisorError.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.featurevisor.sdk

sealed class FeaturevisorError(message: String, result: String? = null) : Throwable(message = message) {
object MissingDatafileOptions : FeaturevisorError("Missing data file options")
class FetchingDataFileFailed(result: String) : FeaturevisorError("Fetching data file failed", result)
}
Loading

0 comments on commit 4a164ba

Please sign in to comment.