Skip to content

Instantly share code, notes, and snippets.

View AliMehrpour's full-sized avatar
Push The Limits!

Ali Mehrpour AliMehrpour

Push The Limits!
View GitHub Profile
AliMehrpour / FlurryMobile-Config Sample
Last active January 8, 2020 22:18
Flurry Mobile App - Config Sample
"dashboards": [
"name": "Analytics",
"subDashboards": [
"name": "RealtimeUsage",
"displayType": "list",
"metrics": [
"Name": "Sessions",
AliMehrpour / Resource.kt
Created December 30, 2019 08:30
A generic class that describe data with a status used Sealed classes in Kotlin (rather than using enum)
import java.util.*
sealed class Resource {
class Success<out T>(val data: T, val date: Date?): Resource()
class Error(val message: String, val date: Date?): Resource()
class Loading<out T>(val data: T): Resource()
class Cached<out T>(val data: T, val date: Date?): Resource()
object ReAuthenticate : Resource()
object Logout: Resource()
object TimberLog {
fun init() {
class ReleaseTree: Timber.Tree() {
override fun log(priority: Int, tag: String?, message: String, throwable: Throwable?) {
if (priority >= Log.WARN) {
FlurryAgent.onError(tag ?: "", message, throwable ?: Throwable(message))
AliMehrpour / ApktoolDecompileError.log
Created December 5, 2018 08:16
Apktool Decompile Error
I: Using Apktool 2.4.0-3cf5cb-SNAPSHOT
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
S: WARNING: Could not write to (/var/root/Library/apktool/framework), using /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
W: /Users/amehrpour/Development/Android/Frankly/apk/WTXF/res/values/xmls.xml:3: error: Resource entry ww_box_styles_schema is already defined.
W: res/xml/ww_box_styles_schema.xsd:0: Originally defined here.