Skip to content

Instantly share code, notes, and snippets.

View cortinico's full-sized avatar
♦️
Reticulating splines...

Nicola Corti cortinico

♦️
Reticulating splines...
View GitHub Profile
@cortinico
cortinico / default.generated.config
Created January 18, 2019 00:22
Jetifier default config file
# Copyright (C) 2018 The Android Open Source Project
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@cortinico
cortinico / PrintRule.kt
Created November 27, 2018 15:16
Just a stupid JUnit rule that prints before and after executing a statement
import org.junit.rules.TestRule
import org.junit.runner.Description
import org.junit.runners.model.Statement
class PrintRule(val label: String) : TestRule {
override fun apply(statement: Statement, description: Description): Statement {
return object : Statement() {
override fun evaluate() {
println("$label before statement")
try {
@cortinico
cortinico / README.md
Created June 6, 2017 09:39 — forked from lopspower/README.md
Publish AAR to jCenter and Maven Central

Publish AAR to jCenter and Maven Central

Twitter

Now I'm going to list how to publish an Android libray to jCenter and then syncronize it with Maven Central:

  1. I use "Android Studio" and I have this simple android lib that I would like to be available on maven: CircularImageView

  2. In the library folder(module) I have the lib code abovementioned. And applying in the build.gradle of this folder apply plugin: 'com.android.library' I got as output an .aar in the build/outputs/aar/ directory of the module's directory

@cortinico
cortinico / android-learning-material.md
Last active May 11, 2017 21:28
A short list of useful books/libraries/newsletters for every android developer (EN/IT)

Here I collect all the useful material related to Android world, probably useful for newbies and people that have never developed on Android.

Feel free to suggest any other source to add in this list :)

Nic :D - corti.nico@gmail.com

English