Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android開発における自動化のすゝめ

ayatk
December 24, 2016

 Android開発における自動化のすゝめ

KIT LT #1で発表したスライドです

ayatk

December 24, 2016
Tweet

More Decks by ayatk

Other Decks in Programming

Transcript

  1. versionCodeͷࣗಈੜ੒ def VERSION = ‘1.2.3’ android { defaultConfig { versionName

    VERSION versionCode buildVersionCode() // => 1020300 } } def buildVersionCode() { def (major, minor, patch) = VERSION.tokenize(‘.’) (major*1000000) + (minor*10000) + (patch*100) } https://blog.jayway.com/2015/03/11/automatic-versioncode-generation-in-android-gradle/
  2. Triple-T/gradle-play-publisher • Gradle͔ΒGoogle Play Developer Consoleʹ
 ௚઀apkΛσϓϩΠͰ͖ΔΑ • Ϗϧυ ->

    Developer ConsoleΛ։͘ -> Ξοϓ ϩʔυͱ͍͏ྲྀΕΛίϚϯυΆͪʔͰऴΘΔ ʔʼ खಈΑΓ΋ѹ౗తʹਃ੥ָ͕!!
  3. ͓·͚ • Android StudioͷϏϧυͰ͸Φϓγϣϯʹ
 “-Pandroid.injected.invoked.from.ide=true”
 ͕౉͞ΕΔͷͰɺίϚϯυϥΠϯͱAndroid StudioͷϏϧυͷॲཧ͕෼͚ΕΔ def isIdeBuild =

    project.properties[‘android.injected.invoked.from.ide'] if (isIdeBuild == null || isIdeBuild.equalsIgnoreCase("true")) { // do something for ide build }