buck, okbuck そして okbazel

Dbab5e5a1fd54531e1119ede6b3b9e65?s=47 Ryosuke Horie
March 23, 2017
380

buck, okbuck そして okbazel

Dbab5e5a1fd54531e1119ede6b3b9e65?s=128

Ryosuke Horie

March 23, 2017
Tweet

Transcript

  1. 2.

    About Me • Ryosuke Horie @Horie1024 • VASILY,Inc. AndroidΤϯδχΞ •

    ࡢ೥11݄ʹޒ൓ా΁ • !ͱࣗಈԽ͕޷͖ • ࠷ۙࢠڙ͕ੜ·Ε·ͨ͠" 2
  2. 4.

    AndroidͷϏϧυπʔϧ • 2017/3/23ݱࡏ Android StudioͰͷ։ൃ͕Ұൠత • Android Gradle Plugin •

    Android StudioͷϏϧυγεςϜ͸Gradleϕʔε • Ϗϧυπʔϧͱͯ͠Gradle͕ඪ४ 4
  3. 7.

    ઃఆͷௐ੔ • ϓϩδΣΫτʹ߹Θͤͯνϡʔχϯά • How to decrease your Gradle build

    time by 65%? • 10 Tips to Improve Your Gradle Build Time 7
  4. 13.

    Buck features • Speed up your builds • Add reproducibility

    to your builds • Get correct incremental builds • Understand your dependencies • Integrate with your IDE 13
  5. 15.

    Bazel android_library rule sample android_library( name = "activities", srcs =

    glob(["src/activities/*.java"]), custom_package = "com.google.bazel.example", manifest = "src/example/AndroidManifest.xml", resource_files = glob(["src/example/res/**"]), ) 15
  6. 16.

    Buck android_library rule sample android_library( name = 'lib', srcs =

    glob(['*.java']), deps = [ '//android/resources:res', '//android/cxx:jni', ], visibility = [ '//android:demo-app', ], ) 16
  7. 21.

    okbuck tasks • buckWrapper - Create buck wrapper • okbuck

    - Generate BUCK files • okbuckClean - Delete configuration files generated by OkBuck • setupOkbuck - Setup okbuck cache and dependencies 21
  8. 27.

    okbazel • okbuckͷrepositoryʹPull Request͕ग़͍ͯΔ • Experimental okbazel support #251 •

    PRग़ͯ͠Δͷ͸BazelͷதͷਓΒ͍͠ • Ϛʔδ͸͞Ε͍ͯͳ͍ 27
  9. 28.

    okbazelͷ੍໿ • Bazelͷ੍໿Λͦͷ··ड͚Δ • DataBindingαϙʔτ͸PR͕ग़͍ͯΔ • Add Android data binding

    support • Kotlinαϙʔτ͸ݱঢ়Ͳ͏ͳΔ͔Θ͔Βͳ͍ • Google͕։ൃ͍ͯ͠Δͷ͸େ͖͍ 28