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
public interface MixhaloError { | |
String getMessage(); | |
int getErrorCode(); | |
} | |
public enum ConnectionError implements MixhaloError { | |
INVALID_WIFI_STATE("", 1000101), | |
INVALID_CELLULAR_STATE("", 1000102), | |
INVALID_VENUE_ID("", 1000300), | |
INVALID_VENUE_PASSCODE("", 1000301), |
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
public enum MixhaloError { | |
/** | |
* Problem: Mixhalo was unable to login to the backend server. | |
* Solution: Check credentials. | |
*/ | |
FAILED_AUTHENTICATION("Authentication failed", 1000400), | |
/** | |
* Problem: Failed to fetch venue list due to the required location services being disabled. | |
* Solution: Turn on location services for the device. | |
*/ |
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
dependencies { | |
... | |
implementation 'com.google.android.play:core-common:2.0.0' | |
... | |
} |
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
dependencies { | |
... | |
implementation 'com.google.android.play:app-update:2.0.0' | |
// Kotlin users may also add the Kotlin extensions library | |
implementation 'com.google.android.play:app-update-ktx:2.0.0' | |
... | |
} |
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
dependencies { | |
... | |
implementation 'com.google.android.play:review:2.0.0' | |
// Kotlin users may also add the Kotlin extensions | |
implementation 'com.google.android.play:review-ktx:2.0.0' | |
... | |
} |
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
dependencies { | |
... | |
implementation 'com.google.android.play:feature-delivery:2.0.0' | |
// Kotlin users may also add the Kotlin extensions library | |
implementation 'com.google.android.play:feature-delivery-ktx:2.0.0' | |
... | |
} |
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
dependencies { | |
... | |
implementation 'com.google.android.play:asset-delivery:2.0.0' | |
// Kotlin users may also add the Kotlin extensions library | |
implementation 'com.google.android.play:asset-delivery-ktx:2.0.0' | |
... | |
} |
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
Duplicate class com.google.android.play.core.common.IntentSenderForResultStarter found in modules jetified-core-1.10.3-runtime (com.google.android.play:core:1.10.3) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0) | |
Duplicate class com.google.android.play.core.common.LocalTestingException found in modules jetified-core-1.10.3-runtime (com.google.android.play:core:1.10.3) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0) | |
Duplicate class com.google.android.play.core.common.PlayCoreDialogWrapperActivity found in modules jetified-core-1.10.3-runtime (com.google.android.play:core:1.10.3) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0) | |
Duplicate class com.google.android.play.core.listener.StateUpdatedListener found in modules jetified-core-1.10.3-runtime (com.google.android.play:core:1.10.3) and jetified-core-common-2.0.0-runtime (com.google.android.play:core-common:2.0.0) | |
Duplicate class com.google.android.play.core |
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
val typedValue = TypedValue() | |
theme.resolveAttribute(android.R.attr.textColor, typedValue, true) | |
val color = typedValue.data() |
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
fun ExampleViewBinding.bind( | |
resources: Resources, | |
onAction: (Any) -> Unit | |
) { | |
this.title = resources.getString(R.string.title) | |
this.setSaveClickListener { | |
this.subtitle = when (someData) { | |
true -> R.string.subtitle1 | |
false -> R.string.subtitle2 | |
} |
NewerOlder