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

Feb988227afc260a31c195105ab9c55d?s=47 ayatk
December 24, 2016

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

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

Feb988227afc260a31c195105ab9c55d?s=128

ayatk

December 24, 2016
Tweet

Transcript

  1. 4.
  2. 12.
  3. 20.

    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/
  4. 24.

    Triple-T/gradle-play-publisher • Gradle͔ΒGoogle Play Developer Consoleʹ
 ௚઀apkΛσϓϩΠͰ͖ΔΑ • Ϗϧυ ->

    Developer ConsoleΛ։͘ -> Ξοϓ ϩʔυͱ͍͏ྲྀΕΛίϚϯυΆͪʔͰऴΘΔ ʔʼ खಈΑΓ΋ѹ౗తʹਃ੥ָ͕!!
  5. 26.

    ͓·͚ • 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 }