Note: Consider using mitmproxy instead of Charles. There is better, more recent, documentation for using mitmproxy on Android.
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
| @file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER") | |
| // Tooltip implementation for AndroidX Jetpack Compose | |
| // See usage example in the next file | |
| // Tested with Compose version **1.1.0-alpha06** | |
| // Based on material DropdownMenu implementation. | |
| import androidx.compose.animation.core.MutableTransitionState | |
| import androidx.compose.animation.core.animateFloat |
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
| /** | |
| * Implementation of [SSLSocketFactory] that adds [TlsVersion.TLS_1_2] as an enabled protocol for every [SSLSocket] | |
| * created by [delegate]. | |
| * | |
| * [See this discussion for more details.](https://github.com/square/okhttp/issues/2372#issuecomment-244807676) | |
| * | |
| * @see SSLSocket | |
| * @see SSLSocketFactory | |
| */ | |
| class Tls12SocketFactory(private val delegate: SSLSocketFactory) : SSLSocketFactory() { |
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
| #! /bin/zsh | |
| # Buttery powered state | |
| adb shell dumpsys battery | grep powered | |
| # Unplug battery | |
| adb shell dumpsys battery unplug | |
| # Reset battery | |
| adb shell dumpsys battery reset |
First, Download and install the newest version of Meld for Windows. https://download.gnome.org/binaries/win32/meld/
Next we need to edit your .gitconfig file. This file lives as a hidden file in your user directory. Here is a sample of mine:
[user]
email = me@email.com
name = Sir Kuttin
[merge]
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
| ## Android architecture components: Lifecycle | |
| # LifecycleObserver's empty constructor is considered to be unused by proguard | |
| -keepclassmembers class * implements android.arch.lifecycle.LifecycleObserver { | |
| <init>(...); | |
| } | |
| # ViewModel's empty constructor is considered to be unused by proguard | |
| -keepclassmembers class * extends android.arch.lifecycle.ViewModel { | |
| <init>(...); | |
| } | |
| # keep Lifecycle State and Event enums values |
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
| This diagram llustrates flow of states when we have to add some location-aware functions into UI |
Simple helper file for standard text sizes in material design. The sizes are provided by the material design documentation https://www.google.com/design/spec/style/typography.html#typography-roboto
Too many type sizes and styles at once can wreck any layout. A typographic scale is a limited set of type sizes that work well together, along with the layout grid. The basic set of styles are based on a typographic scale of 12, 14, 16, 20, and 34.
Functional Programmingis a model of programming that transform and compose stream of immutable sequences by applying map, filter and reduce. Events are immutable because you can't change history.Reactive Programmingis a model of programming focuses on data flow and change propagation.ReactiveXis an API that focuses on asynchronous composition and manipulation of observable streams of data or events by using a combination of the Observer pattern, Iterator pattern, and features of Functional Programming.RxJavais the open-source implementation ofReactiveXin Java.RxJavais a Java VM implementation ofReactiveX(Reactive Extensions): a library for composing asynchronous and event-based programs by using observable sequences.RxAndroidis a lightweight extension to RxJava that providers a Scheduler for Android’s Main Thread, as well as the ability to create a Scheduler that runs on any given Android Handler class.- The two main classes are
ObservableandSubscriber. - `O
NewerOlder
