还原版本

This commit is contained in:
bingshi 2023-02-17 10:25:00 +08:00
parent 029af44b5a
commit cd76bbb9a4
18 changed files with 163 additions and 3 deletions

1
.idea/gradle.xml generated
View File

@ -15,6 +15,7 @@
<option value="$PROJECT_DIR$/app" />
<option value="$PROJECT_DIR$/install-time-asset_pack" />
<option value="$PROJECT_DIR$/../cocos_js/cocos/platform/android/libcocos2dx" />
<option value="$PROJECT_DIR$/../pubgv4/trunk/android/unityLibrary" />
</set>
</option>
</GradleProjectSettings>

39
app/google-services.json Normal file
View File

@ -0,0 +1,39 @@
{
"project_info": {
"project_number": "977053300219",
"project_id": "cebg-1a9ee",
"storage_bucket": "cebg-1a9ee.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:977053300219:android:556f8ae1bb64b47041c75e",
"android_client_info": {
"package_name": "com.cege.games.release"
}
},
"oauth_client": [
{
"client_id": "977053300219-p63olapdi7ct9ms93lst6c848qatj17l.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBAJnU2bBYbukFuijaZMMUzn5UI2NOCMO4"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "977053300219-p63olapdi7ct9ms93lst6c848qatj17l.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -22,14 +22,19 @@ android.enableJetifier=true
PROP_COMPILE_SDK_VERSION=30
# Android SDK version that will be used as the earliest version of android this application can run on
PROP_MIN_SDK_VERSION=23
PROP_MIN_SDK_VERSION=26
# Android SDK version that will be used as the latest version of android this application has been tested on
PROP_TARGET_SDK_VERSION=30
PROP_TARGET_SDK_VERSION=31
# Android Build Tools version that will be used as the compile project
PROP_BUILD_TOOLS_VERSION=30.0.2
PROP_APP_ABI=armeabi-v7a:arm64-v8a
android.injected.testOnly=false
android.injected.testOnly=false
org.gradle.parallel=true
#android.enableR8=false
unityStreamingAssets=
unityTemplateVersion=3

1
install-time-asset_pack/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/build

View File

@ -0,0 +1,44 @@
plugins {
id 'com.android.library'
}
apply plugin: 'com.android.asset-pack'
assetPack{
packName = "install_time_asset_pack"
dynamicDelivery{
deliveryType = "install-time" //PAD资源分发
}
}
android {
compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger()
defaultConfig {
minSdkVersion 21
targetSdkVersion 32
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.4.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

View File

@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

View File

@ -0,0 +1,26 @@
package com.example.mylibrary;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.mylibrary.test", appContext.getPackageName());
}
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mylibrary">
</manifest>

View File

@ -0,0 +1,17 @@
package com.example.mylibrary;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 KiB

After

Width:  |  Height:  |  Size: 320 KiB

View File

@ -3,6 +3,7 @@ include ':app'
rootProject.name = "HeadlessCocos"
include ':libcocos2dx'
project(':libcocos2dx').projectDir = new File(ext.cfgs.cocos2dxBasePath + '/cocos/platform/android/libcocos2dx')
include ':install-time-asset_pack'
include ':unityLibrary'
project(':unityLibrary').projectDir = new File(ext.cfgs.unityAndroidProject + '/unityLibrary')