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
| package com.hse.parkingapp.ui.beta.screens.components.material3 | |
| /* | |
| * Copyright 2020 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
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
| plugins { | |
| `kotlin-dsl` | |
| id("com.jfrog.artifactory") version "5.1.11" | |
| java | |
| `java-gradle-plugin` | |
| `maven-publish` | |
| } | |
| group = "org.example.gradle.publishing" |
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
| enum class Sport { HIKE, RUN, TOURING_BICYCLE, E_TOURING_BICYCLE } | |
| data class Summary(val sport: Sport, val distance: Int) | |
| fun main() { | |
| val sportStats = listOf( | |
| Summary(Sport.HIKE, 92), | |
| Summary(Sport.RUN, 77), | |
| Summary(Sport.TOURING_BICYCLE, 322), | |
| Summary(Sport.E_TOURING_BICYCLE, 656) |
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
| // You can use maven-publish-helper.gradle script without changes and even share it between multiple | |
| // modules. Just place the maven-publish-helper.gradle file in the root directory of your project, | |
| // then apply it at the bottom of your module's build.gradle file like this: | |
| // ...content of module's build.gradle file... | |
| apply from: '../maven-publish-helper.gradle' | |
| publishing { | |
| publications { |
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
| // AssistedInject and Hilt working together in v2.28-alpha times | |
| // Example of a ViewModel using AssistedInject injected in a Fragment by Hilt | |
| // As AssistedInject isn't part of Dagger yet, we cannot use in | |
| // conjuction with @ViewModelInject | |
| data class MyInitParams(private val neededId: String) | |
| class MyViewModel @AssistedInject constructor( | |
| ... // Other dependencies injected by Hilt | |
| // com.squareup.inject.assisted.Assisted annotation |
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
| plugins { | |
| `android-base-app` | |
| `android-base` | |
| id("io.fabric") | |
| } | |
| android { | |
| defaultConfig { | |
| versionCode = 20 | |
| versionName = "1.6.3" |
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
| /** | |
| * Kotlin Extensions for simpler, easier and funw way | |
| * of launching of Activities | |
| */ | |
| inline fun <reified T : Any> Activity.launchActivity ( | |
| requestCode: Int = -1, | |
| options: Bundle? = null, | |
| noinline init: Intent.() -> Unit = {}) | |
| { |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| Google Material Design Color Palette for Android http://www.google.com/design/spec/style/color.html#color-ui-color-palette | |
| Spreadsheet used to create this reosurce - http://bit.ly/mdcolor_spreadsheet | |
| Link to this colors.xml resource file - http://bit.ly/mdcolorsxml | |
| Harshad Kale | |
| https://github.com/kalehv | |
| --> |
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
| package com.pixite.pigment.testing | |
| import android.app.Activity | |
| import android.app.Instrumentation | |
| import android.content.Context | |
| import android.content.Intent | |
| import androidx.fragment.app.Fragment | |
| import androidx.fragment.app.FragmentActivity | |
| import androidx.fragment.app.FragmentManager | |
| import androidx.lifecycle.Lifecycle |
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
| package com.doordash.mvpexample.data; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.VisibleForTesting; | |
| import com.doordash.mvpexample.api.AuthenticationApi; | |
| import com.doordash.mvpexample.helpers.SharedPreferencesHelper; | |
| import com.doordash.mvpexample.models.Token; | |
| import javax.inject.Inject; |
NewerOlder