Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds management URL #41

Merged
merged 5 commits into from
Jun 12, 2020
Merged

Adds management URL #41

merged 5 commits into from
Jun 12, 2020

Conversation

vegaro
Copy link
Contributor

@vegaro vegaro commented Jun 8, 2020

Changes

  • Adds management URL to the mappers

TODO

  • Update Android version when released

@@ -98,4 +98,7 @@ dependencies {
repositories {
google()
jcenter()
maven {
url "http://oss.sonatype.org/content/repositories/snapshots/"
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added these to be able to test, we should remove it before merging

val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.revenuecat.purchases.common.test", appContext.packageName)
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed it since it's an example and we are not doing instrumented tests

context("with a non null managementURL") {
it("should map to a null managementURL") {
val expected = "https://www.url.com/"
val mockkUri = mockk<Uri>(relaxed = true)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uri is an Android class, so it's easier to create a relaxed mock

@vegaro vegaro requested a review from aboedo June 8, 2020 18:24
@vegaro
Copy link
Contributor Author

vegaro commented Jun 8, 2020

@aboedo don't review it yet, sorry I requested review. I will add the iOS changes here too

@aboedo aboedo force-pushed the cesar/feature/managment_url branch from 665fb41 to 3044772 Compare June 10, 2020 13:20
@aboedo
Copy link
Member

aboedo commented Jun 11, 2020

@vegaro heads up that I added the iOS side on this one. I can't request a review because you opened the PR, but take a look!

Copy link
Contributor Author

@vegaro vegaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't approve it either because it's mine. LGTM!

@vegaro vegaro merged commit 0a9fe6e into master Jun 12, 2020
@vegaro vegaro deleted the cesar/feature/managment_url branch June 12, 2020 19:52
@aboedo aboedo mentioned this pull request Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants