Skip to content

Commit

Permalink
feat: 删除Fragment支持相关代码
Browse files Browse the repository at this point in the history
  • Loading branch information
shifujun committed Apr 19, 2020
1 parent 15526b5 commit 8f2f982
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 2,459 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package com.tencent.shadow.coding.code_generator
import android.annotation.SuppressLint
import android.app.Activity
import android.app.Application
import android.app.FragmentManager
import android.view.ContextThemeWrapper
import android.view.KeyEvent
import android.view.Window
Expand Down Expand Up @@ -74,7 +73,6 @@ class ActivityCodeGenerator {

init {
classPool.makeClass("$RUNTIME_PACKAGE.ShadowApplication").toClass()
classPool.makeClass("$RUNTIME_PACKAGE.PluginFragmentManager").toClass()
}

val activityCallbackMethods = getActivityCallbackMethods(ActivityClass)
Expand All @@ -94,8 +92,7 @@ class ActivityCodeGenerator {

mapOf(
Activity::class to "ShadowActivity",
Application::class to "ShadowApplication",
FragmentManager::class to "PluginFragmentManager"
Application::class to "ShadowApplication"
).forEach {
val newClassName = "$RUNTIME_PACKAGE.${it.value}"
renameMap[Descriptor.toJvmName(it.key.java.name)] =
Expand Down
Loading

0 comments on commit 8f2f982

Please sign in to comment.