783 changed files with 197337 additions and 25 deletions
@ -1,25 +1,11 @@ |
|||||
# ---> Java |
*.iml |
||||
# Compiled class file |
.gradle |
||||
*.class |
/local.properties |
||||
|
/.idea/caches/build_file_checksums.ser |
||||
# Log file |
/.idea/libraries |
||||
*.log |
/.idea/modules.xml |
||||
|
/.idea/workspace.xml |
||||
# BlueJ files |
.DS_Store |
||||
*.ctxt |
/build |
||||
|
/captures |
||||
# Mobile Tools for Java (J2ME) |
.externalNativeBuild |
||||
.mtj.tmp/ |
|
||||
|
|
||||
# Package Files # |
|
||||
*.jar |
|
||||
*.war |
|
||||
*.nar |
|
||||
*.ear |
|
||||
*.zip |
|
||||
*.tar.gz |
|
||||
*.rar |
|
||||
|
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml |
|
||||
hs_err_pid* |
|
||||
|
|
||||
|
|||||
@ -0,0 +1,3 @@ |
|||||
|
# Default ignored files |
||||
|
/shelf/ |
||||
|
/workspace.xml |
||||
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="CompilerConfiguration"> |
||||
|
<bytecodeTargetLevel target="17" /> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,26 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="GradleSettings"> |
||||
|
<option name="linkedExternalProjectsSettings"> |
||||
|
<GradleProjectSettings> |
||||
|
<option name="testRunner" value="GRADLE" /> |
||||
|
<option name="distributionType" value="LOCAL" /> |
||||
|
<option name="externalProjectPath" value="$PROJECT_DIR$" /> |
||||
|
<option name="gradleHome" value="D:/Gradle/gradle-7.2" /> |
||||
|
<option name="gradleJvm" value="#JAVA_HOME" /> |
||||
|
<option name="modules"> |
||||
|
<set> |
||||
|
<option value="$PROJECT_DIR$" /> |
||||
|
<option value="$PROJECT_DIR$/app" /> |
||||
|
<option value="$PROJECT_DIR$/mylibrary" /> |
||||
|
<option value="$PROJECT_DIR$/scanCode" /> |
||||
|
<option value="$PROJECT_DIR$/test" /> |
||||
|
<option value="$PROJECT_DIR$/uniplugin_component" /> |
||||
|
<option value="$PROJECT_DIR$/uniplugin_module" /> |
||||
|
<option value="$PROJECT_DIR$/uniplugin_richalert" /> |
||||
|
</set> |
||||
|
</option> |
||||
|
</GradleProjectSettings> |
||||
|
</option> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="RemoteRepositoriesConfiguration"> |
||||
|
<remote-repository> |
||||
|
<option name="id" value="central" /> |
||||
|
<option name="name" value="Maven Central repository" /> |
||||
|
<option name="url" value="https://repo1.maven.org/maven2" /> |
||||
|
</remote-repository> |
||||
|
<remote-repository> |
||||
|
<option name="id" value="jboss.community" /> |
||||
|
<option name="name" value="JBoss Community repository" /> |
||||
|
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> |
||||
|
</remote-repository> |
||||
|
<remote-repository> |
||||
|
<option name="id" value="maven" /> |
||||
|
<option name="name" value="maven" /> |
||||
|
<option name="url" value="https://maven.aliyun.com/nexus/content/groups/public/" /> |
||||
|
</remote-repository> |
||||
|
<remote-repository> |
||||
|
<option name="id" value="Google" /> |
||||
|
<option name="name" value="Google" /> |
||||
|
<option name="url" value="https://dl.google.com/dl/android/maven2/" /> |
||||
|
</remote-repository> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,10 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="ExternalStorageConfigurationManager" enabled="true" /> |
||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> |
||||
|
<output url="file://$PROJECT_DIR$/build/classes" /> |
||||
|
</component> |
||||
|
<component name="ProjectType"> |
||||
|
<option name="id" value="Android" /> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,6 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<project version="4"> |
||||
|
<component name="VcsDirectoryMappings"> |
||||
|
<mapping directory="" vcs="Git" /> |
||||
|
</component> |
||||
|
</project> |
||||
@ -0,0 +1,35 @@ |
|||||
|
该module是引用lib.5plus.base-release.aar+第三方开放平台jar的方式集成5+离线SDK的示例demo |
||||
|
lib.5plus.base-release.aar包含了5+SDK的基础模块, |
||||
|
|
||||
|
一: |
||||
|
|
||||
|
若需要支持广告业务,须配置示例demo的入口activity为io.dcloud.PandoraEntry.java。 |
||||
|
另外开发者须在AndroidManifest.xml中自行配置DCLOUD_STREAMAPP_CHANNEL该字段对应value值, |
||||
|
替换appid和adid为自己应用的appid和广告联盟会员id,5+APP的应用资源manifest.json中添加 |
||||
|
|
||||
|
ads广告配置信息 |
||||
|
|
||||
|
"plus": { |
||||
|
"ads": { |
||||
|
"push":"true|false", // push推送广告 |
||||
|
"splash":"true|false", // 开屏广告 |
||||
|
"rp":"true|false", // 悬浮红包广告 |
||||
|
"spot":"true|false", // 插屏广告 |
||||
|
} |
||||
|
// ... |
||||
|
} |
||||
|
adid广告联盟会员id |
||||
|
"plus": { |
||||
|
"adid": "广告联盟会员id " // 开发者向后台申请后填写 |
||||
|
// ... |
||||
|
} |
||||
|
|
||||
|
参考http://ask.dcloud.net.cn/article/13141文档配置 |
||||
|
|
||||
|
|
||||
|
|
||||
|
二: |
||||
|
|
||||
|
SDK_WebApp为以WebApp方式集成5+ sdk的示例,参考http://ask.dcloud.net.cn/article/81文档配置 |
||||
|
SDK_WebView为以webview控件方式集成5+ sdk的示例,参考http://ask.dcloud.net.cn/article/80文档配置 |
||||
|
这两种方式不支持广告业务。 |
||||
@ -0,0 +1,84 @@ |
|||||
|
apply plugin: 'com.android.application' |
||||
|
|
||||
|
android { |
||||
|
compileSdkVersion 30 |
||||
|
buildToolsVersion '30.0.3' |
||||
|
defaultConfig { |
||||
|
applicationId "com.android.UniPlugin" |
||||
|
minSdkVersion 21 |
||||
|
targetSdkVersion 28 //建议此属性值设为21 io.dcloud.PandoraEntry 作为apk入口时 必须设置 targetSDKVersion>=21 沉浸式才生效 |
||||
|
|
||||
|
versionCode 1 |
||||
|
versionName "1.0" |
||||
|
multiDexEnabled true |
||||
|
ndk { |
||||
|
abiFilters 'x86','armeabi-v7a' |
||||
|
} |
||||
|
compileOptions { |
||||
|
sourceCompatibility JavaVersion.VERSION_1_8 |
||||
|
targetCompatibility JavaVersion.VERSION_1_8 |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
signingConfigs { |
||||
|
config { |
||||
|
keyAlias ' __uni__44d25ec' |
||||
|
keyPassword 'z36baFw' |
||||
|
storeFile file('test.keystore') |
||||
|
storePassword 'z36baFw' |
||||
|
v1SigningEnabled true |
||||
|
v2SigningEnabled true |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
buildTypes { |
||||
|
release { |
||||
|
signingConfig signingConfigs.config |
||||
|
zipAlignEnabled true |
||||
|
minifyEnabled true |
||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
||||
|
} |
||||
|
debug { |
||||
|
signingConfig signingConfigs.config |
||||
|
zipAlignEnabled true |
||||
|
minifyEnabled true |
||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
||||
|
} |
||||
|
} |
||||
|
//使用uniapp时,需复制下面代码 |
||||
|
/*代码开始*/ |
||||
|
aaptOptions { |
||||
|
additionalParameters '--auto-add-overlay' |
||||
|
//noCompress 'foo', 'bar' |
||||
|
ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" |
||||
|
} |
||||
|
/*代码结束*/ |
||||
|
} |
||||
|
repositories { |
||||
|
flatDir { |
||||
|
dirs 'libs' |
||||
|
} |
||||
|
} |
||||
|
dependencies { |
||||
|
implementation fileTree(dir: 'libs', include: ['*.jar']) |
||||
|
implementation fileTree(dir: 'libs', include: ['*.aar']) |
||||
|
|
||||
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0' |
||||
|
implementation 'androidx.appcompat:appcompat:1.0.0' |
||||
|
|
||||
|
/*uniapp所需库-----------------------开始*/ |
||||
|
implementation 'androidx.recyclerview:recyclerview:1.0.0' |
||||
|
implementation 'com.facebook.fresco:fresco:1.13.0' |
||||
|
implementation "com.facebook.fresco:animated-gif:1.13.0" |
||||
|
/*uniapp所需库-----------------------结束*/ |
||||
|
// 基座需要,必须添加 |
||||
|
implementation 'com.github.bumptech.glide:glide:4.9.0' |
||||
|
implementation 'com.alibaba:fastjson:1.2.83' |
||||
|
implementation 'androidx.webkit:webkit:1.3.0' |
||||
|
|
||||
|
// 添加uni-app插件 |
||||
|
implementation project(':uniplugin_component') |
||||
|
implementation project(':uniplugin_module') |
||||
|
implementation project(':uniplugin_richalert') |
||||
|
implementation project(':scanCode') |
||||
|
} |
||||
@ -0,0 +1,12 @@ |
|||||
|
/** |
||||
|
* Automatically generated file. DO NOT MODIFY |
||||
|
*/ |
||||
|
package com.android.UniPlugin; |
||||
|
|
||||
|
public final class BuildConfig { |
||||
|
public static final boolean DEBUG = Boolean.parseBoolean("true"); |
||||
|
public static final String APPLICATION_ID = "com.android.UniPlugin"; |
||||
|
public static final String BUILD_TYPE = "debug"; |
||||
|
public static final int VERSION_CODE = 1; |
||||
|
public static final String VERSION_NAME = "1.0"; |
||||
|
} |
||||
@ -0,0 +1,81 @@ |
|||||
|
-keep class androidx.core.app.CoreComponentFactory { <init>(); } |
||||
|
-keep class com.dmcbig.mediapicker.PickerActivity { <init>(); } |
||||
|
-keep class com.dmcbig.mediapicker.PreviewActivity { <init>(); } |
||||
|
-keep class com.taobao.weex.WXGlobalEventReceiver { <init>(); } |
||||
|
-keep class io.dcloud.PandoraEntry { <init>(); } |
||||
|
-keep class io.dcloud.PandoraEntryActivity { <init>(); } |
||||
|
-keep class io.dcloud.ProcessMediator { <init>(); } |
||||
|
-keep class io.dcloud.WebAppActivity { <init>(); } |
||||
|
-keep class io.dcloud.WebviewActivity { <init>(); } |
||||
|
-keep class io.dcloud.application.DCloudApplication { <init>(); } |
||||
|
-keep class io.dcloud.common.util.DCloud_FileProvider { <init>(); } |
||||
|
-keep class io.dcloud.feature.gallery.imageedit.IMGEditActivity { <init>(); } |
||||
|
-keep class io.dcloud.feature.nativeObj.photoview.PhotoActivity { <init>(); } |
||||
|
-keep class io.dcloud.sdk.activity.WebViewActivity { <init>(); } |
||||
|
-keep class io.dcloud.sdk.base.service.DownloadService { <init>(); } |
||||
|
-keep class io.dcloud.sdk.base.service.provider.DCloudAdFileProvider { <init>(); } |
||||
|
-keep class io.dcloud.uniplugin.NativePageActivity { <init>(); } |
||||
|
-keep class android.widget.Space { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.app.AlertController$RecycleListView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.view.menu.ActionMenuItemView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.view.menu.ExpandedMenuView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.view.menu.ListMenuItemView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.ActionBarContainer { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.ActionBarContextView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.ActionBarOverlayLayout { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.ActionMenuView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.ActivityChooserView$InnerLayout { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.AlertDialogLayout { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.ButtonBarLayout { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.ContentFrameLayout { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.DialogTitle { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.FitWindowsFrameLayout { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.FitWindowsLinearLayout { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.SearchView$SearchAutoComplete { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.Toolbar { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.appcompat.widget.ViewStubCompat { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.core.widget.NestedScrollView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.recyclerview.widget.RecyclerView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class androidx.viewpager.widget.ViewPager { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class com.dcloud.android.widget.TextViewButton { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class com.dcloud.android.widget.photoview.PhotoView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class com.dmcbig.mediapicker.view.HackyViewPager { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class com.taobao.weex.ui.view.listview.WXRecyclerView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class io.dcloud.common.ui.GifImageView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class io.dcloud.feature.gallery.imageedit.view.IMGColorGroup { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class io.dcloud.feature.gallery.imageedit.view.IMGColorRadio { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class io.dcloud.feature.gallery.imageedit.view.IMGView { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keep class io.dcloud.feature.gallery.imageedit.view.WindowInsertLinearLayout { <init>(android.content.Context, android.util.AttributeSet); } |
||||
|
|
||||
|
-keepclassmembers class * { *** onClick(android.view.View); } |
||||
|
|
||||
@ -0,0 +1 @@ |
|||||
|
{} |
||||
@ -0,0 +1,10 @@ |
|||||
|
{ |
||||
|
"version": 2, |
||||
|
"artifactType": { |
||||
|
"type": "COMPATIBLE_SCREEN_MANIFEST", |
||||
|
"kind": "Directory" |
||||
|
}, |
||||
|
"applicationId": "com.android.UniPlugin", |
||||
|
"variantName": "debug", |
||||
|
"elements": [] |
||||
|
} |
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue