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
desc "Create a signed version of the app" | |
lane :signed_apk do | |
# get version and build number from git | |
# https://blog.uncommon.is/using-git-to-generate-versionname-and-versioncode-for-android-apps-aaa9fc2c96af | |
versionName = sh("git describe --dirty").gsub(/\s+/, "") | |
# +520 to sync version codes with the previous app. | |
versionCode = sh("git rev-list --first-parent --count origin/master").gsub(/\s+/, "").to_i + 520 | |
keyPath ="#{sh("pwd").chomp}/keystore.jks" |
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
// | |
// Reducer interface definition | |
// | |
typealias Reducer<ReducerStateType> = (action: Action, state: ReducerStateType?) -> ReducerStateType | |
// | |
// Combine reducers method | |
// | |
fun<T: StateType> combineReducers(vararg reducers: Reducer<T>): Reducer<T> { | |
return { action, state -> |
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
/* Different solutions for future RepoResult (?) object! */ | |
/* | |
* James! | |
*/ | |
sealed interface ResultReason |
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
// Define an interface for navigation keys | |
interface NavigationKey : Parcelable | |
// Example implementation for a specific screen | |
@Parcelize | |
data class ProfileKey(val userId: String) : NavigationKey | |
// Navigation manager class | |
class Navigator(private val context: Context) { |
OlderNewer