-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Defer Placements method * Flush User Properties method * Does not automatically load permission groups at launch * Automatic purchases restore at launch * Can purchase by ProductDetails ID without calling for permission groups * Improvements for User Properties APIs --------- Co-authored-by: Vladimir Slatvinski <[email protected]>
- Loading branch information
Showing
25 changed files
with
380 additions
and
218 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
39 changes: 39 additions & 0 deletions
39
demo_old/src/main/java/com/apphud/demo/ui/utils/BaseFragment.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.apphud.demo.ui.utils | ||
|
||
import android.util.Log | ||
import androidx.fragment.app.Fragment | ||
import kotlinx.coroutines.CoroutineExceptionHandler | ||
import kotlinx.coroutines.CoroutineScope | ||
import kotlinx.coroutines.Dispatchers | ||
import kotlinx.coroutines.SupervisorJob | ||
import org.greenrobot.eventbus.EventBus | ||
import org.greenrobot.eventbus.Subscribe | ||
import org.greenrobot.eventbus.ThreadMode | ||
|
||
class BaseEvent | ||
|
||
open class BaseFragment : Fragment() { | ||
|
||
val mainScope = CoroutineScope(Dispatchers.Main) | ||
val coroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.IO) | ||
val errorHandler = CoroutineExceptionHandler { _, error -> | ||
error.message?.let { | ||
Log.d("BaseFragment", it) | ||
} | ||
} | ||
|
||
override fun onStart() { | ||
super.onStart() | ||
EventBus.getDefault().register(this) | ||
} | ||
|
||
override fun onStop() { | ||
EventBus.getDefault().unregister(this) | ||
super.onStop() | ||
} | ||
|
||
@Subscribe(threadMode = ThreadMode.MAIN) | ||
fun onEvent(event: BaseEvent) { | ||
|
||
} | ||
} |
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
Oops, something went wrong.