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.color.activities; | |
import android.graphics.Color; | |
import android.os.Bundle; | |
import android.support.v7.app.ActionBarActivity; | |
import android.util.Log; | |
import java.util.Comparator; | |
import java.util.Map; | |
import java.util.TreeMap; |
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 se.warting.playground.ui.theme | |
import androidx.compose.ui.graphics.Color | |
/** | |
* Material design color palette with compose colors written in kotlin | |
* | |
* Taken from https://material.io/design/color/the-color-system.html | |
* | |
* These color palettes, originally created by Material Design in 2014, are comprised of colors |
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
import androidx.compose.foundation.background | |
import androidx.compose.foundation.gestures.rememberTransformableState | |
import androidx.compose.foundation.gestures.transformable | |
import androidx.compose.foundation.layout.Arrangement | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.getValue | |
import androidx.compose.runtime.mutableStateOf |
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
import java.util.Properties | |
val versionFile = File("versions.properties") | |
val versions = Properties().apply { | |
if (versionFile.exists()) { | |
FileInputStream(versionFile).use { | |
load(it) | |
} | |
} |
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
#!/usr/bin/env bash | |
# This script is used to absorb one git repository into another, making the absorbed | |
# repository a subdirectory within a monorepo. It allows for easy merging of multiple | |
# repositories into a monolithic structure (monorepo) while preserving each repository's | |
# git history. This is useful when you want to consolidate your repositories into a single | |
# repository for easier management and tracking. | |
# | |
# The script works as follows: | |
# 1. It clones the repositories to be merged into temporary directories. |
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 se.warting.android | |
import android.app.Application | |
import android.content.Context | |
import androidx.test.runner.AndroidJUnitRunner | |
import dagger.hilt.android.testing.HiltAndroidTest | |
import dagger.hilt.android.testing.HiltTestApplication | |
class ConditionalHiltApplicationTestRunner : AndroidJUnitRunner() { | |
override fun newApplication(cl: ClassLoader?, name: String?, context: Context?): Application { |
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 se.warting.network | |
import se.warting.logger.Logger | |
import okhttp3.Interceptor | |
import okhttp3.Response | |
import retrofit2.Invocation | |
/** | |
* Network interceptor that reports invocations to the error reporter. | |
*/ |
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
name: Dependabot auto-merge | |
on: pull_request | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest |