Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1K
Visualizações
What's the difference between .kt and .kts files in Kotlin. When should we use .kts file over .kt file?

What is the purpose of using .kts files in Kotlin? Are these files included in the app bundle when releasing the app?

enter image description here

over 4 years ago · Hanz Gallego
2 Respostas
Responde à pergunta

0

.kt — normal source files, .kts — script files

The .kts files are those that run as script files, without a need for separate compilation. it is run using the following command:

kotlinc -script <filename>.kts

You don't need main function in a .kts file, It will be executed line by line just like a bash/python script.

over 4 years ago · Hanz Gallego Relatório

0

.Kt and .Kts

  • They are all kotlin files that contain kotlin source code.
  • .kt file are assumed to be compiled by the kotlin compiler.
  • .Kts files are assumed to be executed by kotlin scriting support.

As Explained in kolinConf18

over 4 years ago · Hanz Gallego Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda