-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1870 from HedvigInsurance/cleanup/octopus_redeed_…
…campaign Use octopus for redeeming a campaign code
- Loading branch information
Showing
11 changed files
with
48 additions
and
43 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
...lic/src/main/graphql/com/hedvig/android/apollo/giraffe/graphql/redeemReferralCode.graphql
This file was deleted.
Oops, something went wrong.
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,17 +1,25 @@ | ||
plugins { | ||
id("hedvig.android.ktlint") | ||
id("hedvig.android.library") | ||
alias(libs.plugins.apollo) | ||
alias(libs.plugins.squareSortDependencies) | ||
} | ||
|
||
dependencies { | ||
apolloMetadata(projects.apolloOctopusPublic) | ||
|
||
implementation(libs.apollo.normalizedCache) | ||
implementation(libs.arrow.core) | ||
implementation(libs.koin.core) | ||
implementation(projects.apolloCore) | ||
implementation(projects.apolloGiraffePublic) | ||
implementation(projects.apolloOctopusPublic) | ||
implementation(projects.coreCommonPublic) | ||
implementation(projects.coreDemoMode) | ||
implementation(projects.languageCore) | ||
} | ||
|
||
apollo { | ||
service("octopus") { | ||
packageName.set("octopus") | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
app/data/data-forever/src/main/graphql/MutationRedeemCampaignCode.graphql
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,10 @@ | ||
mutation RedeemCampaignCode($campaignCode: String!) { | ||
memberCampaignsRedeem(code: $campaignCode) { | ||
member { | ||
id | ||
} | ||
userError { | ||
message | ||
} | ||
} | ||
} |
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
3 changes: 1 addition & 2 deletions
3
...a/forever/di/ForeverRepositoryProvider.kt → ...data/forever/ForeverRepositoryProvider.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
9 changes: 2 additions & 7 deletions
9
...data/data-forever/src/main/kotlin/com/hedvig/android/data/forever/di/ForeverDataModule.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
2 changes: 1 addition & 1 deletion
2
...re/feature-forever/src/main/kotlin/com/hedvig/android/feature/forever/di/ForeverModule.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
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