Skip to content

Instantly share code, notes, and snippets.

View halysongoncalves's full-sized avatar

Halyson Lima Gonçalves halysongoncalves

View GitHub Profile
@JesusM
JesusM / amazon_appstore_submission.py
Created April 24, 2022 20:24
Python script to submit apps to Amazon AppStore
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
@ZakTaccardi
ZakTaccardi / build.gradle
Created August 26, 2015 01:24
Automatic per-variant google_services.json configurations with Gradle
//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}"
@felipecsl
felipecsl / ExceptionParser.java
Last active January 28, 2019 12:42
Helper class to parse error response body on Retrofit 2
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);
}