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
name: Publish | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
workflow_dispatch: |
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
- name: Export Currencies Data to JSON | |
run: | | |
for i in {1..3}; do | |
bonbast export > currencies.json && break || sleep 10 | |
done | |
cat currencies.json |
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
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install Bonbast | |
run: pip install -U bonbast |
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 androidx.compose.animation.AnimatedVisibility | |
import androidx.compose.foundation.layout.Row | |
import androidx.compose.foundation.layout.fillMaxWidth | |
import androidx.compose.foundation.shape.RoundedCornerShape | |
import androidx.compose.foundation.text.KeyboardOptions | |
import androidx.compose.material.icons.Icons | |
import androidx.compose.material.icons.filled.Clear | |
import androidx.compose.material.icons.filled.Search | |
import androidx.compose.material3.* | |
import androidx.compose.runtime.Composable |
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 android.annotation.SuppressLint | |
import android.view.LayoutInflater | |
import android.view.ViewGroup | |
import android.widget.LinearLayout.LayoutParams | |
import androidx.recyclerview.widget.DiffUtil | |
import androidx.recyclerview.widget.ListAdapter | |
import androidx.recyclerview.widget.RecyclerView | |
import androidx.viewbinding.ViewBinding | |
abstract class BaseListAdapter<T : Any, VB : ViewBinding> : |
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
typealias Inflate<T> = (LayoutInflater, ViewGroup?, Boolean) -> T | |
abstract class BaseFragment<VB : ViewBinding>(private val inflate: Inflate<VB>) : Fragment() { | |
private var _binding: VB? = null | |
val binding: VB get() = _binding!! | |
override fun onCreateView( | |
inflater: LayoutInflater, | |
container: ViewGroup?, |
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
package yourPackageName.utilities | |
import android.app.Activity | |
import android.content.Context | |
import android.graphics.Color | |
import android.net.ConnectivityManager | |
import android.net.NetworkCapabilities | |
import android.os.CountDownTimer | |
import android.text.Editable | |
import android.text.TextWatcher |