This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
val textView: TextView = findViewById(R.id.tv_hello) | |
val text = "Hello World!" | |
val purple = getColor(R.color.purple_200) | |
val teal = getColor(R.color.teal_200) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transifexLocalization { | |
auth = 'your-api-key' | |
resourceSlug = 'your-resource-path-here' | |
projectSlug = 'your-project-name-here' | |
localesMap = [:] | |
// example localization matchings | |
localesMap['main/res/values'] = 'en' | |
localesMap['greece/res/values'] = 'el_GR' | |
localesMap['colombia/res/values'] = 'es_CO' | |
localesMap['chile/res/values'] = 'es_CL' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Usage: | |
* Download kotlin as per instructions: | |
* https://kotlinlang.org/docs/tutorials/command-line.html#using-the-command-line-to-run-scripts | |
* | |
* $> kotlinc -script diff-lint.kts <file with all issues> <lint.xml with your configuration> <optional: outpuf filename, defaults to "output"> | |
*/ | |
import java.io.File | |
data class Issue(val title: String, val lines: MutableList<String>? = null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache License | |
Version 2.0, January 2004 | |
http://www.apache.org/licenses/ | |
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
1. Definitions. | |
"License" shall mean the terms and conditions for use, reproduction, | |
and distribution as defined by Sections 1 through 9 of this document. |