-
Notifications
You must be signed in to change notification settings - Fork 0
Добавление функции оплаты и подготовка к релизу в AppStore #77
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
Closed
Closed
Changes from 6 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5172f8e
build: измена конфигурация ios проекта в связи с изменением аккаунта …
neekeetuh 4584621
feat: добавлена тестовая версия логики покупки про версии через аппстор
neekeetuh 12f85bb
fix: удаление возможности пользователя со статусом про попадать на эк…
neekeetuh 0c4e4d4
refactor: вынесение констант
neekeetuh 384b694
fix: вынесение цены про версии в локализацию + исправление ошибок лок…
neekeetuh ad3d1f5
refactor: удаление ненужного метода в инициализации провайдера про ве…
neekeetuh c324429
style: добавление параметра для использования non-nullable локализации
neekeetuh 92475a8
style: вынесение переменной с апи ключом в класс, где она используется
neekeetuh e8d8362
refactor: вынесение ассетов в отдельные классы
neekeetuh fc0cb7b
fix: вынесение добавления listener'a на обновление пользовательской и…
neekeetuh 4218d04
fix: улучшение читабельности методов + добавление обработки ошибки по…
neekeetuh ac28497
feat: добавление обработки ошибки покупки товара на ui
neekeetuh baad32b
fix: удаление лишнего consumer'а
neekeetuh 5a94522
fix: изменение логики взаимодействия модулей
neekeetuh 26e1f19
fix: изменение способа инъекции зависимостей для репозитория
neekeetuh 6c882f7
fix: отказ от реактивного спобоса обновления статуса пользователя в п…
neekeetuh 30ba166
Merge branch 'develop' of https://github.com/Student-Labs-2024/aurora…
neekeetuh 30bd629
fix: удаление константных строк, которые должны использоваться через …
neekeetuh 502be15
fix: исправление ошибки, при которой в локальную бд записывались лока…
neekeetuh 9e52e4e
feat + refactor: добавление возможности восстановления покупок пользо…
neekeetuh c468439
refactor: вынесение данных, хранящихся в провайдере в классы состояни…
neekeetuh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,4 +1,3 @@ | ||
| export "colors.dart"; | ||
| export "text_styles.dart"; | ||
| export "string_constants.dart"; | ||
| export 'gradient_consts.dart'; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,4 @@ | ||
| abstract interface class IInAppPurchaseDataSource { | ||
| Future<bool> buyProduct(String productId); | ||
| Future<bool> checkStatus(String productId); | ||
| } |
This file contains hidden or 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,19 @@ | ||
| import 'package:frontend/data_sources/in_app_purchase_data_source.dart'; | ||
| import 'package:purchases_flutter/purchases_flutter.dart'; | ||
|
|
||
| class RevenueCatDataSource implements IInAppPurchaseDataSource { | ||
| @override | ||
| Future<bool> buyProduct(String productId) async { | ||
| final product = (await Purchases.getProducts([productId])).first; | ||
| return (await Purchases.purchaseStoreProduct(product)) | ||
| .entitlements | ||
| .active[productId] != | ||
| null; | ||
| } | ||
|
|
||
| @override | ||
| Future<bool> checkStatus(String productId) async { | ||
| final customerInfo = await Purchases.getCustomerInfo(); | ||
| return customerInfo.entitlements.active.containsKey(productId); | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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
|
neekeetuh marked this conversation as resolved.
|
This file contains hidden or 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 hidden or 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,15 @@ | ||
| import 'package:frontend/data_sources/in_app_purchase_data_source.dart'; | ||
|
|
||
| class InAppPurchaseRepository { | ||
| final IInAppPurchaseDataSource dataSource; | ||
|
|
||
| InAppPurchaseRepository({required this.dataSource}); | ||
|
|
||
| Future<bool> buyProduct(String productId) async { | ||
| return dataSource.buyProduct(productId); | ||
| } | ||
|
|
||
| Future<bool> checkStatus(String productId) { | ||
| return dataSource.checkStatus(productId); | ||
| } | ||
|
neekeetuh marked this conversation as resolved.
Outdated
|
||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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: 0 additions & 3 deletions
3
frontend/lib/views/menu_view/constants/menu_page_string_const.dart
This file contains hidden or 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,6 +1,3 @@ | ||
| class MenuPageStringConst { | ||
| static String slogan = "Побеждать\nв шахматах — \nпобеждать\nв жизни"; | ||
| static String sloganWide = "Побеждать в шахматах — \nпобеждать в жизни"; | ||
| static String localButton = "Начать игру"; | ||
| static String pathToIcon = "assets/images/icons/"; | ||
| } |
|
neekeetuh marked this conversation as resolved.
|
This file contains hidden or 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 was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
frontend/lib/views/promo_view/constants/promo_page_constants.dart
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.