View amazon_appstore_submission.py
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
import requests | |
import sys | |
from pathlib import Path | |
# Arguments you need to provide: | |
# 1.- client_id = Amazon client API id | |
# 2.- client_secret = Amazon client API secret | |
# 3.- app_id = Amazon app id | |
# 4.- local_apk_path = Path for the apk file to submit | |
arguments = sys.argv |
View ExceptionParser.java
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
public static class ExceptionParser { | |
private final ResponseBody body; | |
private final String bodyString; | |
private final Converter.Factory converterFactory; | |
public ExceptionParser(Response response, Converter.Factory converterFactory) { | |
this.converterFactory = converterFactory; | |
this.body = cloneResponseBody(response.errorBody()); | |
this.bodyString = getBodyAsString(body); | |
} |
View build.gradle
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
//append code below to existing build.gradle | |
def appModuleRootFolder = '.' | |
def srcDir = 'src' | |
def googleServicesJson = 'google-services.json' | |
task switchToDebug(type: Copy) { | |
def buildType = 'debug' | |
description = 'Switches to DEBUG google-services.json' | |
from "${srcDir}/${buildType}" |