Slide 1

Slide 1 text

Picture by Automate the Mobile @AlexeyBuzdin

Slide 2

Slide 2 text

@AlexeyBuzdin Developer / Trainer at GDGRiga.lv RigaDevDay.lv

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Next 40 minutes of your time 1. Landscape Overview 2. Building Stuff 3. Extra Spicy Recipes

Slide 10

Slide 10 text

1. Landscape Overview

Slide 11

Slide 11 text

1. Landscape Overview First-thing-first: We need a PC!

Slide 12

Slide 12 text

1. Landscape Overview And here is where the first problem appears… First-thing-first: We need a PC!

Slide 13

Slide 13 text

How can this be a problem?

Slide 14

Slide 14 text

needs a

Slide 15

Slide 15 text

needs a needs a

Slide 16

Slide 16 text

needs a needs a only needs your

Slide 17

Slide 17 text

The easiest solution:

Slide 18

Slide 18 text

Ok…ok…just kidding :) 2. 1.

Slide 19

Slide 19 text

Ok…ok…just kidding :) 1. 2. +

Slide 20

Slide 20 text

Ok…ok…just kidding :) 1. 2. + + Build Server

Slide 21

Slide 21 text

1. Landscape Overview ->> Second: Version Control System ✪

Slide 22

Slide 22 text

1. Landscape Overview Nothing to add here :) Second: Version Control System ->>

Slide 23

Slide 23 text

1. Landscape Overview Continuous Integration Tool <<- ->> ✪

Slide 24

Slide 24 text

https: //jenkins.io/

Slide 25

Slide 25 text

https: //jenkins.io/ https: // www.jetbrains.com/teamcity/

Slide 26

Slide 26 text

https: //jenkins.io/ https: // www.jetbrains.com/teamcity/ https: // www.atlassian.com/software/bamboo

Slide 27

Slide 27 text

https: //jenkins.io/ https: // www.jetbrains.com/teamcity/ https: // www.atlassian.com/software/bamboo https: //concourse.ci/

Slide 28

Slide 28 text

Could be a thing for Product Companies

Slide 29

Slide 29 text

1. Landscape Overview Continuous Integration Tool <<- ->>

Slide 30

Slide 30 text

1. Landscape Overview Universal Artifact Repository <<- ->> <<- <<- ✪

Slide 31

Slide 31 text

->> ->> ->> ->> ->>

Slide 32

Slide 32 text

->>

Slide 33

Slide 33 text

->> ->> ->> https: //github.com/Carthage/Carthage https: //cocoapods.org/

Slide 34

Slide 34 text

->> ->> ->> ->>

Slide 35

Slide 35 text

->> ->> ->> ->> ->>

Slide 36

Slide 36 text

Repository for Hundred Providers https: // www.jfrog.com/artifactory/

Slide 37

Slide 37 text

Repository for Hundred Providers https: // www.jfrog.com/artifactory/

Slide 38

Slide 38 text

DISTRIBUTION MADE EASY! Powering the Distribution of Supporting https: //bintray.com/

Slide 39

Slide 39 text

allprojects { repositories { maven { url "https: //jitpack.io" } } } dependencies { compile 'com.github.User:Repo:Tag' }

Slide 40

Slide 40 text

1. Landscape Overview Universal Artifact Repository <<- ->> <<- <<-

Slide 41

Slide 41 text

1. Landscape Overview Mobile App Management <<- ->> <<- <<- <<- ✪

Slide 42

Slide 42 text

https: //github.com/sparcedge/knappsack

Slide 43

Slide 43 text

https: //github.com/sparcedge/knappsack https: //github.com/wso2

Slide 44

Slide 44 text

https: //github.com/sparcedge/knappsack https: // www.mobileiron.com/ https: //github.com/wso2

Slide 45

Slide 45 text

1. Landscape Overview Mobile App Management <<- ->> <<- <<- <<-

Slide 46

Slide 46 text

- Upload screenshots, metadata, apps to the App Store - Automate screenshots provisioning on different devices - Quickly put your screenshots into the right device frames - Automatically generate push notification profiles - Automatically maintain iOS code signing certificates https: //github.com/fastlane/fastlane

Slide 47

Slide 47 text

1. Landscape Overview Mobile App Management <<- ->> <<- <<- <<- <<-

Slide 48

Slide 48 text

https: // www.hockeyapp.net/

Slide 49

Slide 49 text

1. Landscape Overview Static Analysis <<- ->> <<- <<- <<- <<- <<- <<- ✪

Slide 50

Slide 50 text

https: //github.com/SonarQubeCommunity/sonar-android https: //github.com/octo-technology/sonar-objective-c https: //github.com/Backelite/sonar-swift https: //github.com/SonarSource/sonar-csharp https: //github.com/SonarSource/sonar-javascript

Slide 51

Slide 51 text

1. Landscape Overview Static Analysis <<- ->> <<- <<- <<- <<- <<- <<-

Slide 52

Slide 52 text

1. Landscape Overview Analytics <<- ->> <<- <<- <<- <<- <<- <<- ✪

Slide 53

Slide 53 text

https://get.fabric.io/

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

https://piwik.org/ Self-hosted Web supported

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

1. Landscape Overview Analytics <<- ->> <<- <<- <<- <<- <<- <<-

Slide 58

Slide 58 text

1. Landscape Overview Summary <<- ->> <<- <<- <<- <<- <<- <<-

Slide 59

Slide 59 text

Developer must be able to build an app from scratch on an empty environment with a single console command Big Good Rule of Goodness 1.

Slide 60

Slide 60 text

->> ->> ->> ->> 2. Building Stuff

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

One Gradle to Rule them All!

Slide 63

Slide 63 text

https://github.com/ctco/gradle-mobile-plugin

Slide 64

Slide 64 text

Big Good Rule of Goodness 1. ctcoMobile { 2. platform = 'xcode' 3. xcode { 4. // Configuration for all environments 5. automaticConfiguration = false 6. sdk = 'iphoneos' 7. configuration = 'Release' 8. } 9. } build - Runs builds for all project's target environments buildIos - Runs builds for all project's Ios target environments restoreDependencies - Restores project's dependencies

Slide 65

Slide 65 text

1. ctcoMobile { 2. platform = 'xamarin' 3. xamarin { 4. solutionFile = file(‘App.sln’) 5. projectFile = file(‘App.iOS/App.iOS.csproj') 6. projectName = ‘App.iOS' 7. assemblyName = 'AppiOS' 8. } 9. xandroid { 10. solutionFile = file('App.sln') 11. projectFile = file('App.Android/App.Android.csproj') 12. projectName = 'App.Android' 13. assemblyName = 'AppAndroid' 14. } 15. }

Slide 66

Slide 66 text

Multi-Profile Build Key-Value Configs Builds for Different Vendors Builds for Different Environments

Slide 67

Slide 67 text

Dependency Management for iOS Using compiled .zip files and Artifactory

Slide 68

Slide 68 text

Summary: as glue <<- ->> <<- <<- <<- <<- 2. Building Stuff

Slide 69

Slide 69 text

3. Extra Spicy Recipes

Slide 70

Slide 70 text

Problems with managing android build tool version on CI?

Slide 71

Slide 71 text

Problems with managing android build tool version on CI? 1. # Experimental flag, new in 2.2.0-alpha 2. android.builder.sdkDownload=true

Slide 72

Slide 72 text

Looking into Cross-platform UI Test Automation?

Slide 73

Slide 73 text

Looking into Cross-platform UI Test Automation?

Slide 74

Slide 74 text

https://www.youtube.com/watch?v=iwvueGzwVyk

Slide 75

Slide 75 text

How to get cheap on premise device farm?

Slide 76

Slide 76 text

https: //github.com/Genymobile/genymotion-gradle-plugin 1. genymotion { 2. devices { 3. nexus5 { 4. template "Google Nexus 5 - 4.4.4 - API 19 - 1080x1920" 5. } 6. } 7. }

Slide 77

Slide 77 text

Tired of creating separate Retina/non Retina Images and Android -dpi?

Slide 78

Slide 78 text

Tired of creating separate Retina/non Retina Images and Android -dpi? https: //github.com/redwarp/9-Patch-Resizer

Slide 79

Slide 79 text

How to distinguish app for different environments, vendors?

Slide 80

Slide 80 text

How to distinguish app for different environments, vendors? https: //github.com/coobird/thumbnailator

Slide 81

Slide 81 text

https: //github.com/coobird/thumbnailator 1. Thumbnails.of(new File("original.jpg")) 2. .size(160, 160) 3. .rotate(90) 4. .watermark(Positions.BOTTOM_RIGHT, 5. ImageIO.read(new File("wtrmrk.png")), 0.5f) 6. .outputQuality(0.8) 7. .toFile(new File("image-with-watermark.jpg"));

Slide 82

Slide 82 text

Localizations?

Slide 83

Slide 83 text

https://github.com/evernote/serge

Slide 84

Slide 84 text

1. Landscape Overview <<- ->> <<- <<- <<- <<- <<- <<-

Slide 85

Slide 85 text

Q&A Thank You!