Slide 1

Slide 1 text

Memories of a remote and lonely Android developer

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

The development

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

Your main goal is to ship a product

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Naming http://arlobelshee.com/good-naming-is-a-process-not-a-single-step/ https://overflow.buffer.com/2016/09/26/android-rethinking-package-structure/

Slide 8

Slide 8 text

Static analysis

Slide 9

Slide 9 text

The process

Slide 10

Slide 10 text

Who is going to review my code?

Slide 11

Slide 11 text

Page heading Open Pull Request !rst, the old way

Slide 12

Slide 12 text

Page heading Pull Requests now

Slide 13

Slide 13 text

The planning

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Github integration in Android Studio

Slide 20

Slide 20 text

The shipping

Slide 21

Slide 21 text

Jenkins DSL plugin https://github.com/jenkinsci/job-dsl-plugin def gitUrl = 'git://github.com/jenkinsci/job-dsl-plugin.git' job('PROJ-unit-tests') { scm { git(gitUrl) } triggers { scm('*/15 * * * *') } steps { maven('-e clean test') } }

Slide 22

Slide 22 text

Plugin con!guration androidLint('**/outputs/lint-results.xml') { thresholdLimit('low') useStableBuildAsReference(false) useDeltaValues(false) shouldDetectModules(false) thresholds( unstableTotal: [all: 3, high: 3, normal: 3, low: 3], failedTotal: [all: 3, high: 3, normal: 3, low: 3], unstableNew: [all: 0, high: 0, normal: 0, low: 0], failedNew: [all: 0, high: 0, normal: 0, low: 0] ) }

Slide 23

Slide 23 text

Plugin con!guration checkstyle('**/checkstyle/*.xml') { thresholdLimit('low') useStableBuildAsReference(false) useDeltaValues(false) shouldDetectModules(false) thresholds( unstableTotal: [all: 2, high: 2, normal: 2, low: 2], failedTotal: [all: 2, high: 2, normal: 2, low: 2], unstableNew: [all: 0, high: 0, normal: 0, low: 0], failedNew: [all: 0, high: 0, normal: 0, low: 0] ) }

Slide 24

Slide 24 text

Conditional actions flexiblePublish { conditionalAction { condition { and { status('SUCCESS', 'SUCCESS') } { not { stringsMatch('$ON_MAINLINE', 'true', false) } } }

Slide 25

Slide 25 text

The pipeline

Slide 26

Slide 26 text

Amazon Device Farm and Jenkins

Slide 27

Slide 27 text

Publish to Beta apply plugin: 'com.github.triplet.play' def playstoreServiceAccount = System.env.PLAYSTORE_SERVICE_ACCOUNT def playstorePk12File = System.env.PLAYSTORE_PK12_FILE if (playstoreServiceAccount && playstorePk12File) { play { track = 'beta' serviceAccountEmail = playstoreServiceAccount pk12File = rootProject.file(playstorePk12File) } } project.afterEvaluate { def publishApkRelease = project.tasks.getByName("publishApkRelease") def incrementVersionForRelease = project.tasks.getByName("incrementVersionForRelease") publishApkRelease.dependsOn incrementVersionForRelease

Slide 28

Slide 28 text

Questions? David González @dggonzalez [email protected]