--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platform+unsubscribe@googlegroups.com.
To post to this group, send email to android-platform@googlegroups.com.
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.
Kotlin is not supported in Android.mk, and will likely never be. It is supported by the build system in java_library and android_app modules defined in Android.bp files, but both kotlin support and Android.bp support for java is still relatively rudimentary. We are not yet accepting any Kotlin code that gets installed on the device, but we have used it in a few places for tools on the host, e.g. https://android-review.googlesource.com/c/platform/frameworks/base/+/570862 and https://android-review.googlesource.com/c/platform/system/tools/hidl/+/516520.
--On Thu, Jan 4, 2018 at 7:10 AM, <mykola.nikolayev@motorolasolutions.com> wrote:I am also interested in this question. Is it possible to use a kotlin in aosp development?Can I compile kotlin sources with Android.mk? How?
On Monday, January 1, 2018 at 10:40:34 AM UTC-5, Jonathan Marsaud wrote:Hi,
I would like to know if AOSP is planning to accept Kotlin contribution for the framework API classes.
I'm not talking about rewritting, but just profits of the interoperability of Kotlin to write new AOSP classes in this language.
If not, what are the cons?
Have a nice day and a happy new year!--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platform+unsubscribe@googlegroups.com.
To post to this group, send email to android-platform@googlegroups.com.
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platform+unsubscribe@googlegroups.com.
To post to this group, send email to android-platform@googlegroups.com.
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.
android_app { name: "AmpKotlinTest", certificate: "platform", manifest: "app/src/main/AndroidManifest.xml", srcs: [ "app/src/main/java/**/*.kt" ], android_resource_dirs: [ "app/src/main/res" ], enabled: true}
class MainActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) }}
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -b out/soong -d
out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
error: packages/apps/AmpKotlinTest/Android.bp:4:1: "AmpKotlinTest" depends on undefined module "core-libart"
error: packages/apps/AmpKotlinTest/Android.bp:4:1: "AmpKotlinTest" depends on undefined module "core-oj"
error: packages/apps/AmpKotlinTest/Android.bp:4:1: "AmpKotlinTest" depends on undefined module "core-libart"
error: packages/apps/AmpKotlinTest/Android.bp:4:1: "AmpKotlinTest" depends on undefined module "ext"
error: packages/apps/AmpKotlinTest/Android.bp:4:1: "AmpKotlinTest" depends on undefined module "framework"
error: packages/apps/AmpKotlinTest/Android.bp:4:1: "AmpKotlinTest" depends on undefined module "okhttp"
error: packages/apps/AmpKotlinTest/Android.bp:4:1: "AmpKotlinTest" depends on undefined module "framework-res"
ninja: build stopped: subcommand failed.
This will eventually work using an android_app module in an Android.bp file for your system app with Kotlin sources, and may work today, but should not be considered fully supported yet. If your system app has any dependencies, especially android-support-*, you will likely find that those do not yet work in Android.bp files.
On Tue, Jan 16, 2018 at 1:31 AM, Himanshu Mistri <mistrih...@gmail.com> wrote:
Hello ,I understand that currently we can not able to write kotlin code for android framework, But what about putting my own developed kotlin app into path like this (https://android.googlesource.com/platform/packages/apps/Contacts/) and get build it within android os so that my all will come as a system app.Where app source code will be written in kotlin and include it as system app.Any advice or help will be great to move ahead.Thanks,Himanshu
On 5 January 2018 at 03:34, Colin Cross <ccr...@android.com> wrote:
Kotlin is not supported in Android.mk, and will likely never be. It is supported by the build system in java_library and android_app modules defined in Android.bp files, but both kotlin support and Android.bp support for java is still relatively rudimentary. We are not yet accepting any Kotlin code that gets installed on the device, but we have used it in a few places for tools on the host, e.g. https://android-review.googlesource.com/c/platform/frameworks/base/+/570862 and https://android-review.googlesource.com/c/platform/system/tools/hidl/+/516520.
On Thu, Jan 4, 2018 at 7:10 AM, <mykola.n...@motorolasolutions.com> wrote:
I am also interested in this question. Is it possible to use a kotlin in aosp development?Can I compile kotlin sources with Android.mk? How?
On Monday, January 1, 2018 at 10:40:34 AM UTC-5, Jonathan Marsaud wrote:Hi,
I would like to know if AOSP is planning to accept Kotlin contribution for the framework API classes.
I'm not talking about rewritting, but just profits of the interoperability of Kotlin to write new AOSP classes in this language.
If not, what are the cons?
Have a nice day and a happy new year!
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.