https://github.com/erdo/amazon-iap-clean
some sample code for a clean architecture integration of amazon in app payments
https://github.com/erdo/amazon-iap-clean
Last synced: 9 months ago
JSON representation
some sample code for a clean architecture integration of amazon in app payments
- Host: GitHub
- URL: https://github.com/erdo/amazon-iap-clean
- Owner: erdo
- License: apache-2.0
- Created: 2022-05-04T13:08:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-01T10:57:39.000Z (almost 4 years ago)
- Last Synced: 2025-03-31T09:35:44.453Z (about 1 year ago)
- Language: Kotlin
- Size: 1.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Some sample code for a clean architecture integration of amazon in app payments
## to run sample
- install the amazon app store and amazon app tester on device [click this link from your device](https://www.amazon.com/Amazon-App-Tester/dp/B00BN3YZM2/)
- push the product definitions to the device: `adb push consumable-iap.json /sdcard/amazon.sdktester.json`
- set the device to sandbox mode: `adb shell setprop debug.amazon.sandboxmode debug`
- for testing, use debug variant only
## module structure

- domain is implemented as a pure kotlin module
- domain can see no other modules
- app module is used for DI and that's about it
- app module is the only module that can see all other modules
## logs
logs are visible under the filter: "amzn_"
## License
Copyright 2015-2022 early.co
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.