Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Kotlin/NativeでAndroidのNativeメソッドを実装してみた

514 views

Published on

2019/1/23に開催されたLINE Developer Meetup #49 in Kyotoでの登壇資料です

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Kotlin/NativeでAndroidのNativeメソッドを実装してみた

  1. 1. / 1 3 D 2 ( 0E E # ( A E A9 )4) 1 3 ,
  2. 2. : : 1 1 IG F , ( 1 E @ E H E C ) . 1 : :
  3. 3. JA / / AN • / • / • K I • •
  4. 4. + . + n J t n J + K s I C v • i f . Na lK = . + C + N Ke I • N C N K c oC N r
  5. 5. C KU IP nac l e b i do g L t C KU _y wr wrM nac l 13 b m • 2 6A 6A ( 6C A )( ( • 68 2 )( ( • A 6A 6A ( • 4 )( ( • . )( ( 6A /,12 /,12 CC 6 • 4 6 ! A S6A O6A ( doWu sx
  6. 6. ) ( /2 3 • / 2 : 2 iJ • 33 : / 3iJ V 1: A: : / 3 ) G ad N hIe M 33 : / 3 / : : . gb c K hIe
  7. 7. $ " ( , ) )) .) ,, .)
  8. 8. ( . " ) (
  9. 9. • .)( ) • ) • N
  10. 10. ) .- ( 2. 4 26 2. 3 4 6 4 4 3 426 , / / / / / ,6. 2. , 2 /( 24, 2 6 ,26 )26. - 6 / / / / ,6. 2. , 2 /( ' 24, 2 6 ,26 )26. - 6 A
  11. 11. )+(Njs ) *n h + Mo`E r g J .) . Vr r r . . VrN . . . .M c ibG 3 : : 3 : ) 3 : : 3 : _ M aN I e • )+( • • + N_
  12. 12. JNIEXPORT jstring JNICALL Java_io_github_tsuyosh_jni_Greeting_say( JNIEnv *env, jobject obj, jstring name )
  13. 13. O JC@E J@ < P @ >@J?K JIKN I? E@ JC@E :@EJ< G GC J= D E @ * D< ! E@ . <<J@E> I N OOT _ V <E @EJ< / E () <:J) E D< IJ @E>) IJ @E>) , "
  14. 14. ?CG@=BI =BG:EC @ G CE B EC= *, : " " " " " " ! B= .E::G=B< J :B , C=BG:E B E() C > >C >: G) B : > GE=B<) ! > GE=B<) >B= E= <: B= E= <: :B ! ?G : >B= E= <: GC GE=B< B :! ?G :) @:G ?G.E::G=B< G= :.E::G=B< ! J ! >B= E= <: GC GE=B< ?G.E::G=B<! ! > GE=B<N GE=B< SV P
  15. 15. FC F ?B= F ?B= F ?B=( F ?B=( I F ?B= ( :> C?BF ) F C?BF FC . , F F ?B= > <GB:F?CB F ?B= ( F ?B= :> FC/ F ?B= C?BF ) F K O N C?BF FC . F ?B= > <GB:F?CB F ?B= :> F ?B= J
  16. 16. C F =B F =B / > =B ( >F =B ( F =B / > C < F C=B ) F =B / > F F < F C=B C ., . I =B : B =CB < ? J =CB < ? F
  17. 17. • +8 / P 8 A ? • C () fAb ? • +8 / 8 E LK D A K • / 8 6 / N d ? • eDI a A iD ?
  18. 18. /
  19. 19. !

×