diff --git a/buildScripts/gradle/common.gradle b/buildScripts/gradle/common.gradle index 699478409..fa3100d82 100644 --- a/buildScripts/gradle/common.gradle +++ b/buildScripts/gradle/common.gradle @@ -9,7 +9,7 @@ def gitShortRev() { allprojects { ext.COMPILE_SDK_VERSION = 31 - ext.MIN_SDK_VERSION = 14 + ext.MIN_SDK_VERSION = 21 ext.TARGET_SDK_VERSION = 28 ext.VERSION_CODE = 1 diff --git a/projects/sample/source/sample-plugin/sample-app/build.gradle b/projects/sample/source/sample-plugin/sample-app/build.gradle index 5bb93f01a..e3a47ddc5 100644 --- a/projects/sample/source/sample-plugin/sample-app/build.gradle +++ b/projects/sample/source/sample-plugin/sample-app/build.gradle @@ -68,6 +68,7 @@ dependencies { //Shadow Transform后业务代码会有一部分实际引用runtime中的类 //如果不以compileOnly方式依赖,会导致其他Transform或者Proguard找不到这些类 pluginCompileOnly 'com.tencent.shadow.core:runtime' + implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') } preBuild.dependsOn(":sample-host-lib:jarDebugPackage") diff --git a/projects/sample/source/sample-plugin/sample-app/libs/cloudgaming-1.1.13_alpha.aar b/projects/sample/source/sample-plugin/sample-app/libs/cloudgaming-1.1.13_alpha.aar new file mode 100644 index 000000000..b465dbfaa Binary files /dev/null and b/projects/sample/source/sample-plugin/sample-app/libs/cloudgaming-1.1.13_alpha.aar differ diff --git a/projects/sample/source/sample-plugin/sample-app/src/main/java/com/tencent/shadow/sample/plugin/app/lib/UseCaseApplication.java b/projects/sample/source/sample-plugin/sample-app/src/main/java/com/tencent/shadow/sample/plugin/app/lib/UseCaseApplication.java index 93c05284b..ad80c5981 100644 --- a/projects/sample/source/sample-plugin/sample-app/src/main/java/com/tencent/shadow/sample/plugin/app/lib/UseCaseApplication.java +++ b/projects/sample/source/sample-plugin/sample-app/src/main/java/com/tencent/shadow/sample/plugin/app/lib/UseCaseApplication.java @@ -4,6 +4,7 @@ import android.app.Application; +import com.nenly.nenlysdk.NenlyCloudGamingHelper; import com.tencent.shadow.sample.plugin.app.lib.gallery.cases.UseCaseManager; import com.tencent.shadow.sample.plugin.app.lib.gallery.cases.entity.UseCase; import com.tencent.shadow.sample.plugin.app.lib.gallery.cases.entity.UseCaseCategory; @@ -33,6 +34,7 @@ public class UseCaseApplication extends Application { public void onCreate() { super.onCreate(); initCase(); + NenlyCloudGamingHelper.getHelper().initApplicationContext(this); } private static void initCase() {