mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-09-19 23:21:34 +02:00
Dev (#14)
* Allow file access * Log all to phone * Rework billing logic * Simplify travis process * More logging
This commit is contained in:
parent
8edd98fcee
commit
bde1c74e57
@ -18,12 +18,10 @@ before_install:
|
||||
- tar xvf frost.tar
|
||||
- chmod +x gradlew
|
||||
after_success:
|
||||
- chmod +x ./generate-apk-release.sh
|
||||
# Do one or the other
|
||||
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then ./gradlew app:publishApkRelease; else ./generate-apk-release.sh; fi
|
||||
- if [[ "$TRAVIS_BRANCH" != "master" ]]; then chmod +x ./generate-apk-release.sh; ./generate-apk-release.sh; fi
|
||||
script:
|
||||
- cd $TRAVIS_BUILD_DIR/
|
||||
- "./gradlew assembleReleaseTest"
|
||||
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then ./gradlew app:publishApkRelease; else ./gradlew assembleReleaseTest; fi
|
||||
notifications:
|
||||
email: false
|
||||
slack:
|
||||
|
@ -43,6 +43,7 @@ object IAB {
|
||||
helper!!.enableDebugLogging(BuildConfig.DEBUG, "Frost:")
|
||||
helper!!.startSetup {
|
||||
result ->
|
||||
L.d("IAB setup finished; ${result.isSuccess}")
|
||||
if (result.isSuccess) {
|
||||
if (onStart(helper!!))
|
||||
helper!!.disposeWhenFinished()
|
||||
@ -142,6 +143,7 @@ fun Activity.getInventory(
|
||||
helper ->
|
||||
helper.queryInventoryAsync {
|
||||
res, inv ->
|
||||
L.d("Inventory query finished")
|
||||
if (res.isFailure || inv == null) onFailed()
|
||||
else onSuccess(inv, helper)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user