diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c1b68fd..efe0576 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @RampNetwork/team-rocket-eng @quezak \ No newline at end of file +* @RampNetwork/team-brocket-eng @quezak \ No newline at end of file diff --git a/README.md b/README.md index da01f93..aaf2720 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Ramp Network Android SDK is a library that allows you to easily integrate the Ra ## Documentation -Docs for the SDK package can be found here - [https://docs.ramp.network/](https://docs.ramp.network/). +Docs for the SDK package can be found here - [https://docs.rampnetwork.com/](https://docs.rampnetwork.com/). ## Contact us diff --git a/demo/src/main/java/ramp/network/demo/MainActivity.kt b/demo/src/main/java/ramp/network/demo/MainActivity.kt index a671538..662a83e 100644 --- a/demo/src/main/java/ramp/network/demo/MainActivity.kt +++ b/demo/src/main/java/ramp/network/demo/MainActivity.kt @@ -32,9 +32,9 @@ class MainActivity : AppCompatActivity() { binding.button.setOnClickListener { // 3. Fill configuration object with your data val config = Config( - hostLogoUrl = "https://ramp.network/assets/images/Logo.svg", + hostLogoUrl = "https://assets.rampnetwork.com/misc/ramp-network-logo.svg", hostAppName = "My App", - url = "https://app.demo.ramp.network", + url = "https://app.demo.rampnetwork.com", hostApiKey = "your host api key", enabledFlows = setOf(Flow.OFFRAMP, Flow.ONRAMP) ) diff --git a/rampsdk/build.gradle b/rampsdk/build.gradle index 2f11ea0..5173c55 100644 --- a/rampsdk/build.gradle +++ b/rampsdk/build.gradle @@ -22,8 +22,8 @@ android { defaultConfig { minSdkVersion 21 targetSdkVersion 32 - versionCode 20 - versionName "4.0.1" + versionCode 21 + versionName "4.0.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles 'consumer-rules.pro' buildConfigField 'String', 'VERSION', "\"${defaultConfig.versionName}\"" @@ -84,7 +84,7 @@ afterEvaluate { from components.release groupId = 'com.github.RampNetwork' artifactId = 'ramp-sdk-android' - version = '4.0.1' + version = '4.0.2' } } } diff --git a/rampsdk/src/main/java/network/ramp/sdk/facade/Config.kt b/rampsdk/src/main/java/network/ramp/sdk/facade/Config.kt index 0c2c071..f3d97f0 100644 --- a/rampsdk/src/main/java/network/ramp/sdk/facade/Config.kt +++ b/rampsdk/src/main/java/network/ramp/sdk/facade/Config.kt @@ -22,7 +22,7 @@ data class Config( /** * An optional string parameter that allows you to use a non-production version of our widget. - * Example: "https://app.demo.ramp.network" + * Example: "https://app.demo.rampnetwork.com" */ var url: String = DEFAULT_URL, @@ -31,7 +31,7 @@ data class Config( * If passed with a single asset, this parameter pre-sets the given asset for the user as the only option. * If passed as a list (for example, swapAsset="DAI,ETH,USDC"), it sets the available assets to the user with the first asset as the default selection. * If left blank, the user will choose an asset on their own from all available assets. - * The list of all available assets can be accessed with GET /host-api/assets endpoint. [https://docs.ramp.network/rest-api-reference/#available-assets-and-prices] + * The list of all available assets can be accessed with GET /host-api/assets endpoint. [https://docs.rampnetwork.com/rest-api-reference/#available-assets-and-prices] * Example: "ETH" */ var swapAsset: String = "", @@ -90,7 +90,7 @@ data class Config( /** - * An optional string parameter that allows you to subscribe to events via webhooks [https://docs.ramp.network/webhooks]. + * An optional string parameter that allows you to subscribe to events via webhooks [https://docs.rampnetwork.com/webhooks]. * Example: "https://example.com/webhook/" */ var webhookStatusUrl: String = "", @@ -119,6 +119,6 @@ data class Config( companion object { const val SEND_CRYPTO_CALLBACK_VERSION = 1 - const val DEFAULT_URL = "https://app.ramp.network" + const val DEFAULT_URL = "https://app.rampnetwork.com" } } \ No newline at end of file diff --git a/rampsdk/src/main/java/network/ramp/sdk/utils/UrlSafeChecker.kt b/rampsdk/src/main/java/network/ramp/sdk/utils/UrlSafeChecker.kt index 2074ca2..70a0ed1 100644 --- a/rampsdk/src/main/java/network/ramp/sdk/utils/UrlSafeChecker.kt +++ b/rampsdk/src/main/java/network/ramp/sdk/utils/UrlSafeChecker.kt @@ -6,9 +6,10 @@ object UrlSafeChecker { "https://ri-widget-dev2.firebaseapp.com", "https://ri-widget-staging.firebaseapp.com", "https://app.ramp.network", + "https://app.rampnetwork.com", "https://app.dev.ramp-network.org", "https://app.demo.ramp.network", - "https://app.ramp.network", + "https://app.demo.rampnetwork.com", "https://app.pepe.ramp-network.org" ) private val listOfSafeRegex = listOf("^https://ri-widget-dev-(\\d+)\\.firebaseapp\\.com$", "^https://app.(\\d+)\\.dev\\.ramp-network\\.org")