Tools | Name | Version |
---|---|---|
Platform | Android | OS 4.4 KitKat Level 19 or higher |
Programming Language | Kotlin | JDK 8.x |
Architecture | Model View ViewModel | |
Rest Response | JSON | |
Local Database | SQLite | |
View Injection | ViewBinding | |
Obfuscation | Proguard |
This file contains 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
const val DEVELOPMENT = 1 | |
const val STAGING = 2 | |
const val PRODUCTION = 3 | |
@IntDef(DEVELOPMENT, STAGING, PRODUCTION) | |
@Retention(AnnotationRetention.SOURCE) | |
annotation class Environment |
This file contains 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 EnvironmentInterceptor : Interceptor { | |
override fun intercept(chain: Interceptor.Chain) = chain.proceed(chain.request()) | |
fun setEnvironment(ctx: Context, action: () -> Unit) { | |
action.invoke() | |
} | |
} |
This file contains 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
abstract class BaseAnalytics { | |
abstract fun logEvent(eventName: String, params: Bundle?) | |
abstract fun setUserProperty(name: String, value: String) | |
abstract fun setUserId(id: String) | |
abstract fun clearData() |
This file contains 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
/** | |
* A group of *members*. | |
* | |
* This class has no useful logic; it's just a documentation example. | |
* | |
* @param T the type of a member in this group. | |
* @property name the name of this group. | |
* @constructor Creates an empty group. | |
*/ | |
class Group<T>(val name: String) { |
This file contains 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
// In your root build.gradle.kts | |
buildscript { | |
repositories { | |
.. | |
} | |
dependencies { | |
... | |
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.6.10") | |
classpath("org.jetbrains.dokka:dokka-base:1.6.10") |
This file contains 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
val okHttpClient = OkHttpClient.Builder() | |
.certificatePinner(CertificatePinner.Builder() | |
.add( | |
"www.example.com", | |
"sha256/ZC3lTYTDBJQVf1P2V7+fibTqbIsWNR/X7CWNVW+CEEA=" | |
).build() | |
) | |
.build() |
This file contains 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
data class Message(val sender : String, val content : String) | |
@Composable | |
fun MessageList() { | |
val viewModel : SampleViewModel = viewModel() | |
val messages = viewModel.messages.observeAsState() | |
LazyColumn { items(items = messages, key = { it }) { message -> MessageLayout(message) } } | |
} |
Otomatisasi proses pengerjaan desain berdasarkan referensi dari Figma menjadi layout dalam aplikasi yang bisa dijalankan dan digunakan
Mempercepat proses pengembangan aplikasi dengan menyediakan alat untuk menterjemahkan design dari figma menjadi halaman yang dapat digunakan dalam aplikasi end-user
This file contains 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 b1 implements c { | |
private final String h = "someUserCredential"; | |
public void a(String j) { | |
if (h==j) { | |
vh(); | |
}else { | |
we(); | |
} | |
} |