1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-09-19 23:21:34 +02:00
* Allow file access

* Log all to phone

* Rework billing logic

* Simplify travis process

* More logging
This commit is contained in:
Allan Wang 2017-07-03 21:07:12 -04:00 committed by GitHub
parent 8edd98fcee
commit bde1c74e57
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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)
}