This commit is contained in:
yangfei
2024-07-17 15:40:37 +08:00
parent ee7723a4d8
commit 3bcf332dfa
7 changed files with 18 additions and 8 deletions

View File

@ -1,6 +1,7 @@
package com.gh.gamecenter.floatingwindow
import android.app.Application
import android.content.Context
import android.content.res.Configuration
import com.gh.gamecenter.core.iinterface.IApplication
import com.google.auto.service.AutoService
@ -8,7 +9,7 @@ import com.google.auto.service.AutoService
@AutoService(IApplication::class)
class HaloApp : IApplication {
override fun attachBaseContext() {
override fun attachBaseContext(base: Context) {
// Do nothing
}

View File

@ -1,6 +1,7 @@
package com.gh.gamecenter.jg.push
import android.app.Application
import android.content.Context
import android.content.res.Configuration
import com.gh.gamecenter.core.iinterface.IApplication
import com.google.auto.service.AutoService
@ -8,7 +9,7 @@ import com.google.auto.service.AutoService
@AutoService(IApplication::class)
class HaloApp : IApplication {
override fun attachBaseContext() {
override fun attachBaseContext(base: Context) {
// Do nothing
}

View File

@ -1,6 +1,7 @@
package com.gh.gamecenter.feedback
import android.app.Application
import android.content.Context
import android.content.res.Configuration
import com.gh.gamecenter.core.iinterface.IApplication
import com.google.auto.service.AutoService
@ -8,7 +9,7 @@ import com.google.auto.service.AutoService
@AutoService(IApplication::class)
class HaloApp : IApplication {
override fun attachBaseContext() {
override fun attachBaseContext(base: Context) {
// Do nothing
}

View File

@ -1,6 +1,7 @@
package com.gh.gamecenter.oaid
import android.app.Application
import android.content.Context
import android.content.res.Configuration
import com.gh.gamecenter.core.iinterface.IApplication
import com.google.auto.service.AutoService
@ -8,7 +9,7 @@ import com.google.auto.service.AutoService
@AutoService(IApplication::class)
class HaloApp : IApplication {
override fun attachBaseContext() {
override fun attachBaseContext(base: Context) {
}

View File

@ -1,6 +1,7 @@
package com.gh.gamecenter.pkg
import android.app.Application
import android.content.Context
import android.content.res.Configuration
import com.gh.gamecenter.core.iinterface.IApplication
import com.google.auto.service.AutoService
@ -8,7 +9,7 @@ import com.google.auto.service.AutoService
@AutoService(IApplication::class)
class HaloApp : IApplication {
override fun attachBaseContext() {
override fun attachBaseContext(base: Context) {
// Do nothing
}

View File

@ -1,7 +1,9 @@
package com.gh.gamecenter.qqmini
import android.app.Application
import android.content.Context
import android.content.res.Configuration
import com.gh.gamecenter.common.utils.doOnMainProcessOnly
import com.gh.gamecenter.core.iinterface.IApplication
import com.google.auto.service.AutoService
@ -12,13 +14,15 @@ class HaloApp : IApplication {
lateinit var INSTANCE: Application
}
override fun attachBaseContext() {
override fun attachBaseContext(base: Context) {
}
override fun onCreate(application: Application) {
INSTANCE = application
MiniGameWebViewUtils.handleWebViewDir(application)
doOnMainProcessOnly {
MiniGameWebViewUtils.handleWebViewDir(application)
}
}

View File

@ -1,6 +1,7 @@
package com.gh.gamecenter.message
import android.app.Application
import android.content.Context
import android.content.res.Configuration
import com.gh.gamecenter.core.iinterface.IApplication
import com.google.auto.service.AutoService
@ -8,7 +9,7 @@ import com.google.auto.service.AutoService
@AutoService(IApplication::class)
class HaloApp : IApplication {
override fun attachBaseContext() {
override fun attachBaseContext(base: Context) {
// Do nothing
}