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
import SwiftUI | |
// Example usage | |
let canDelete = true | |
let rowId = UUID().uuidString | |
HStack { | |
Text("Some row we want to swipe") | |
}.onSwipe( | |
isEnabled: canDelete, |
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
# Contributed by PracticalChip | |
# Project home page https://github.com/PracticalChip/Adblocking | |
# This was added at the request of the developer of Diversion | |
steamcdn-a.akamaihd.net | |
media.steampowered.com | |
media4.steampowered.com | |
aax-eu.amazon-adsystem.com # whitelisted for smallnetbuilder.com | |
aax-us-east.amazon-adsystem.com # whitelisted for smallnetbuilder.com |
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
interface ConnectivityMonitor { | |
val isConnected: Boolean | |
val networkType: NetworkType | |
val isConnectedState: Flow<Boolean> | |
val networkTypeState: Flow<NetworkType> | |
} |
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 KeyboardHeightProvider(activity: Activity) : PopupWindow(activity), | |
OnGlobalLayoutListener { | |
private val mActivity: Activity = activity | |
private val rootView: View = View(activity) | |
// Record the maximum height of the pop content area | |
private var heightMax = 0 | |
private val mutHeightChanged = MutableStateFlow(0) | |
val onHeightChanged: StateFlow<Int> = mutHeightChanged |
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
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.recyclerview.widget.DiffUtil | |
import androidx.recyclerview.widget.ListAdapter | |
import androidx.recyclerview.widget.RecyclerView | |
import com.dronesense.pilotkit.common.extension.inflate | |
#parse("File Header.java") |
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
<?xml version="1.0" encoding="utf-8"?> | |
<animated-selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item | |
android:id="@+id/open" | |
android:drawable="@drawable/ic_drawer_closed" | |
android:state_selected="true"/> | |
<item | |
android:id="@+id/closed" | |
android:drawable="@drawable/ic_drawer"/> |
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
*.iml | |
.idea/ | |
.gradle/ | |
build/ | |
local.properties | |
.DS_Store | |
captures | |
.externalNativeBuild |
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
apply plugin: 'com.android.application' | |
apply from: "$rootDir/common.gradle" | |
apply plugin: 'androidx.navigation.safeargs.kotlin' | |
android { | |
defaultConfig { | |
applicationId app_config.app_id | |
setProperty("archivesBaseName", app_config.archive_file) | |
} |
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
pipeline { | |
agent { | |
// Run on a build agent where we have the Android SDK installed | |
label 'android' | |
} | |
environment { | |
// Fastlane Environment Variables | |
PATH = "$HOME/.fastlane/bin:" + | |
"$HOME/.rvm/gems/ruby-2.5.3/bin:" + | |
"$HOME/.rvm/gems/ruby-2.5.3@global/bin:" + |
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
companion object { | |
private const val COUNTER_START = 1 | |
private const val MAX_ATTEMPTS = 5 | |
private const val ORIGINAL_DELAY_IN_SECONDS = 2L | |
} | |
//Not important | |
val transactionJson = JsonObject().apply { addProperty(TRANSACTION_ID, transactionId) } | |
var disposable: Disposable? = null | |
NewerOlder