-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: Explicit API - Strict mode in Kotlin
Helps in preventing internal API being published as public API.
- Loading branch information
Showing
25 changed files
with
199 additions
and
194 deletions.
There are no files selected for viewing
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
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,22 +1,22 @@ | ||
package com.featurevisor.sdk | ||
|
||
sealed class FeaturevisorError(message: String) : Throwable(message = message) { | ||
public sealed class FeaturevisorError(message: String) : Throwable(message = message) { | ||
|
||
/// Thrown when attempting to init Featurevisor instance without passing datafile and datafileUrl. | ||
/// At least one of them is required to init the SDK correctly | ||
object MissingDatafileOptions : FeaturevisorError("Missing data file options") | ||
public object MissingDatafileOptions : FeaturevisorError("Missing data file options") | ||
|
||
class FetchingDataFileFailed(val result: String) : FeaturevisorError("Fetching data file failed") | ||
public class FetchingDataFileFailed(public val result: String) : FeaturevisorError("Fetching data file failed") | ||
|
||
/// Thrown when receiving unparseable Datafile JSON responses. | ||
/// - Parameters: | ||
/// - data: The data being parsed. | ||
/// - errorMessage: The message from the error which occured during parsing. | ||
class UnparsableJson(val data: String?, errorMessage: String) : FeaturevisorError(errorMessage) | ||
public class UnparsableJson(public val data: String?, errorMessage: String) : FeaturevisorError(errorMessage) | ||
|
||
/// Thrown when attempting to construct an invalid URL. | ||
/// - Parameter string: The invalid URL string. | ||
class InvalidUrl(val url: String?) : FeaturevisorError("Invalid URL") | ||
public class InvalidUrl(public val url: String?) : FeaturevisorError("Invalid URL") | ||
|
||
object MissingDatafileUrlWhileRefreshing : FeaturevisorError("Missing datafile url need to refresh") | ||
public object MissingDatafileUrlWhileRefreshing : FeaturevisorError("Missing datafile url need to refresh") | ||
} |
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
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.