-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 添加NativePluginContainerActivity 2. add ShadowNativeActivity 3. override getPackageManager返回插件ActivityInfo
- Loading branch information
Showing
10 changed files
with
1,141 additions
and
24 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
42 changes: 42 additions & 0 deletions
42
...r/src/main/java/com/tencent/shadow/core/runtime/container/HostNativeActivityDelegate.java
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,42 @@ | ||
/* | ||
* Tencent is pleased to support the open source community by making Tencent Shadow available. | ||
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* Licensed under the BSD 3-Clause License (the "License"); you may not use | ||
* this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* https://opensource.org/licenses/BSD-3-Clause | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
package com.tencent.shadow.core.runtime.container; | ||
|
||
import android.content.pm.PackageManager; | ||
import android.view.InputQueue; | ||
import android.view.SurfaceHolder; | ||
|
||
public interface HostNativeActivityDelegate extends HostActivityDelegate { | ||
|
||
PackageManager getPackageManager(); | ||
|
||
void surfaceCreated(SurfaceHolder holder); | ||
|
||
void surfaceChanged(SurfaceHolder holder, int format, int width, int height); | ||
|
||
void surfaceRedrawNeeded(SurfaceHolder holder); | ||
|
||
void surfaceDestroyed(SurfaceHolder holder); | ||
|
||
void onInputQueueCreated(InputQueue queue); | ||
|
||
void onInputQueueDestroyed(InputQueue queue); | ||
|
||
void onGlobalLayout(); | ||
} |
38 changes: 38 additions & 0 deletions
38
.../src/main/java/com/tencent/shadow/core/runtime/container/HostNativeActivityDelegator.java
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,38 @@ | ||
/* | ||
* Tencent is pleased to support the open source community by making Tencent Shadow available. | ||
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* Licensed under the BSD 3-Clause License (the "License"); you may not use | ||
* this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* https://opensource.org/licenses/BSD-3-Clause | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
package com.tencent.shadow.core.runtime.container; | ||
|
||
import android.view.InputQueue; | ||
import android.view.SurfaceHolder; | ||
|
||
public interface HostNativeActivityDelegator extends HostActivityDelegator { | ||
void superSurfaceCreated(SurfaceHolder holder); | ||
|
||
void superSurfaceChanged(SurfaceHolder holder, int format, int width, int height); | ||
|
||
void superSurfaceRedrawNeeded(SurfaceHolder holder); | ||
|
||
void superSurfaceDestroyed(SurfaceHolder holder); | ||
|
||
void superOnInputQueueCreated(InputQueue queue); | ||
|
||
void superOnInputQueueDestroyed(InputQueue queue); | ||
|
||
void superOnGlobalLayout(); | ||
} |
Oops, something went wrong.