Skip to content

Instantly share code, notes, and snippets.

View jakeouellette's full-sized avatar

Jake Ouellette jakeouellette

View GitHub Profile
@jakeouellette
jakeouellette / resourceinjection.gradle
Last active August 29, 2015 14:15
Inject XML resources after variants are merged
// Here's a trick to get XML injected into the APK.
// Be careful not to merge-conflict with existing parameters, as this occurs after the mergeResources step, and the behavior is likely undefined.
// was added to app/build.gradle after applying android plugin.
android.applicationVariants.all { variant ->
// Supports both 0.12.+ and 1.+ of Android gradle plugin by getting all processResourceTasks:
def tasks = []
// Multidex has multiple process resource tasks
if (variant.hasProperty('outputs')) {
for (output in variant.outputs) {
@jakeouellette
jakeouellette / index.jade
Created August 25, 2015 13:15
Cohesive Software Engineering Talk
extends ./layout.jade
// This talk requires a combination of reveal.js, Jade, and some style sheets I made to support it.
block slides
section
strong Highly Cohesive Software Programming
section
p let's pretend you're a software engineer
// Fragments are revealed on slide next
@jakeouellette
jakeouellette / fabric-android-shell.sh
Last active April 3, 2017 21:12
Example shell script to pull Crashlytics Gradle plugin and call it
#!/bin/sh
# Copyright 2017 Google Inc.
# 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
# https://www.apache.org/licenses/LICENSE-2.0

Fabric Android shell

Overview

This is the doc for fabric-android-shell.sh

Invoking the Fabric plugin by standalone (non-jvm) processes So our plugin has 3 responsibilities:

  • (pre-build) Enable your app on our backend
@jakeouellette
jakeouellette / gist:fb09393b2e6355403876f0c358928cb9
Created September 20, 2023 12:52
FTL Android Device list 09/20/23
┌─────────────────────┬────────────────────┬──────────────────────────────────────────┬──────────┬─────────────┬─────────────────────────┬──────────────────────┐
│ MODEL_ID │ MAKE │ MODEL_NAME │ FORM │ RESOLUTION │ OS_VERSION_IDS │ TAGS │
├─────────────────────┼────────────────────┼──────────────────────────────────────────┼──────────┼─────────────┼─────────────────────────┼──────────────────────┤
│ 1610 │ Vivo │ vivo 1610 │ PHYSICAL │ 1280 x 720 │ 23 │ reduced_stability=23 │
│ AmatiTvEmulator │ Google │ Google TV Amati │ VIRTUAL │ 1080 x 1920 │ 29 │ beta=29 │
│ AndroidTablet270dpi │ Generic │ Generic 720x1600 Android tablet @ 270dpi │ VIRTUAL │ 1600 x 720 │ 30 │ │
│ F01L │ FUJITSU │ F-01L