19
Signature @KeithYokoma - Drivemode, Inc. Shibuya.apk #1

Signature

Embed Size (px)

Citation preview

Page 1: Signature

Signature@KeithYokoma - Drivemode, Inc.

Shibuya.apk #1

Page 2: Signature

KeithYokoma

Keishin Yokomaku Drivemode, Inc. Android Engineer GitHub: https://github.com/KeithYokoma Qiita: http://qiita.com/KeithYokoma e-Book: http://amzn.to/1mZNydv

Page 3: Signature
Page 4: Signature

Keystore

• Containing “Key” and “Certification”

• Every applications are signed with keystore

• The same applications are signed with the same keystore

Page 5: Signature

• Valid until …

• Store password: …

• Key alias: …

• Key password: …

• Owner informations …

Keystore

Page 6: Signature

debug.keystore

release.keystore

Signing

app-debug.apk

app-release.apk

Page 7: Signature

The problem

Page 8: Signature

The problem

Where should we put the keystore?

Page 9: Signature
Page 10: Signature

• Possibility to lost keystore files

• Who remembers password?

• Manual operation to share keystore files

• Dull to copy them by hand

Shared drive?

Page 11: Signature

Shared drive?

Yuck!

Page 12: Signature

Put keystores in the repository

Page 13: Signature

Repository

• No chance to lost(we have a history!)

• Quick set up build env with just cloning

• Note: Safe to share them in PRIVATE repo

Page 14: Signature
Page 15: Signature

Wait, how do we share keystore password?

Page 16: Signature

Keystore password

• Use `echo something_seed_value | md5`

• Set it as ENV value‘export KSTOREPWD=…’

• Read ENV value from build.gradle

Page 17: Signature

build.gradle

android { signingConfigs { release { storePassword System.getenv("KSTOREPWD") keyPassword System.getenv(“KEYPWD”) } }}

Page 18: Signature

Looks Good To Me

Page 19: Signature

Signature@KeithYokoma - Drivemode, Inc.

Shibuya.apk #1