Skip to content

Instantly share code, notes, and snippets.

View dextorer's full-sized avatar

Sebastiano Gottardo dextorer

  • Staff Android Engineer @blinkist, Android GDE
  • Italy
View GitHub Profile
@dextorer
dextorer / Configuration
Last active December 3, 2021 20:24
CustomCircularProgressIndicator
AS: 2020.3.1 p3 (Arctic Fox)
AGP: 7.0.3
Kotlin: 1.5.31
Compose: 1.0.5

Keybase proof

I hereby claim:

  • I am dextorer on github.
  • I am sgotti (https://keybase.io/sgotti) on keybase.
  • I have a public key whose fingerprint is FAF7 A754 6354 5DD3 FA88 2DAD B627 1D42 5F4F 4071

To claim this, I am signing this object:

fun getDatabase(context: Context) =
Room
.databaseBuilder(context, RoomDatabase::class.java, DB_NAME)
.openHelperFactory(AssetSQLiteOpenHelperFactory())
.fallbackToDestructiveMigrationFrom(*IntArray(68) { it + 1 }) // destroy everything before version 68 (included)
.addMigrations(
Migration69to70(),
Migration70to71(),
Migration71to72(),
Migration72to73(),
@dextorer
dextorer / diff.patch
Created March 3, 2019 21:09
what_are_you_keeping_from_me/diff
- proguardFile 'proguard-rules-release.txt'
- testProguardFile 'proguard-rules-test.txt'
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-release.txt'
+ testProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-test.txt'
@dextorer
dextorer / equation.kt
Created March 2, 2019 09:17
what_are_you_keeping_from_me/proguard
app_works_in_debug_but_crashes_in_release +
some_classes_are_nowhere_to_be_found =
PROGUARD
@dextorer
dextorer / ripple_runtime.kt
Last active December 24, 2018 12:02
ripples_pie_regression_2
private fun updateButtonView(button: View) {
val radius = // ...
val color = // ...
val contentOuterRadii = floatArrayOf(radius, radius, radius, radius, radius, radius, radius, radius)
val buttonShape = RoundRectShape(contentOuterRadii, null, null)
if (button.background != null) {
@dextorer
dextorer / activity_main.xml
Last active December 24, 2018 10:55
ripples_pie_regression_1
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
...
>
<FrameLayout
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="55dp"
android:elevation="3dp"
@dextorer
dextorer / hot_start.py
Last active November 2, 2015 11:17
monkeyrunner - hot start measuring
#! /usr/bin/env monkeyrunner
# hot start: not opening the app for the first time. still, previous processes are killed.
import time
import subprocess
import commands
import sys
import datetime
import re
@dextorer
dextorer / strip.conf
Created July 6, 2014 13:01
google-play-services-strip-script
actions=true
ads=true
analytics=true
appindexing=true
appstate=true
auth=true
cast=true
common=true
drive=false
dynamic=true

Keybase proof

I hereby claim:

  • I am dextorer on github.
  • I am sebastianogottar (https://keybase.io/sebastianogottar) on keybase.
  • I have a public key whose fingerprint is 2830 1438 6E08 B686 56AE 437C 5BA7 FC16 5E64 6788

To claim this, I am signing this object: