mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-13 02:11:07 -04:00
RequestBuilder: Drop inline from functions
Expected performance impact from inlining is insignificant Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -31,7 +31,7 @@ import com.tonyodev.fetch2.Request
|
||||
import com.tonyodev.fetch2core.Extras
|
||||
import java.lang.reflect.Modifier
|
||||
|
||||
private inline fun Request.attachMetaData(context: Context, app: App) {
|
||||
private fun Request.attachMetaData(context: Context, app: App) {
|
||||
apply {
|
||||
groupId = app.getGroupId(context)
|
||||
tag = app.packageName
|
||||
@@ -40,7 +40,7 @@ private inline fun Request.attachMetaData(context: Context, app: App) {
|
||||
}
|
||||
}
|
||||
|
||||
private inline fun Request.attachExtra(app: App) {
|
||||
private fun Request.attachExtra(app: App) {
|
||||
val stringMap: MutableMap<String, String> = mutableMapOf()
|
||||
val gson = GsonBuilder()
|
||||
.excludeFieldsWithModifiers(Modifier.TRANSIENT)
|
||||
|
||||
Reference in New Issue
Block a user