[U] copy from n3 client
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 03845875206fd43188499b44315ff8b4
|
||||
guid: f09db8f4c73f97540a96ebe183df5fd1
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
68
sdk-intergration/Assets/Editor/ProjectAutoSetting.cs
Normal file
68
sdk-intergration/Assets/Editor/ProjectAutoSetting.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using System.IO;
|
||||
|
||||
[InitializeOnLoad]
|
||||
public static class ProjectAutoSetting
|
||||
{
|
||||
static ProjectAutoSetting()
|
||||
{
|
||||
OnAutoSetting();
|
||||
}
|
||||
|
||||
|
||||
static void OnAutoSetting()
|
||||
{
|
||||
if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.Android)
|
||||
{
|
||||
OnAndroid();
|
||||
}
|
||||
}
|
||||
|
||||
static void OnAndroid()
|
||||
{
|
||||
string path = "./KeyStore/android.json"; //自己的路径
|
||||
string jsonContent = File.ReadAllText(path); // 读取 JSON 文件内容
|
||||
if (!string.IsNullOrEmpty(jsonContent))
|
||||
{
|
||||
AndroidJson dynamicObject = JsonUtility.FromJson<AndroidJson>(jsonContent);
|
||||
PlayerSettings.Android.useCustomKeystore = true;
|
||||
if (dynamicObject != null)
|
||||
{
|
||||
PlayerSettings.Android.keystoreName = "./KeyStore/" + dynamicObject.keystoreName;
|
||||
PlayerSettings.Android.keyaliasName = dynamicObject.keyaliasName;
|
||||
PlayerSettings.keystorePass = Environment.GetEnvironmentVariable("BAMBOO_PW");
|
||||
PlayerSettings.keyaliasPass = Environment.GetEnvironmentVariable("BAMBOO_PW");
|
||||
PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.Android, dynamicObject.applicationIdentifier);
|
||||
PlayerSettings.companyName = dynamicObject.companyName;
|
||||
PlayerSettings.productName = dynamicObject.productName;
|
||||
}
|
||||
}
|
||||
|
||||
string outPath = "./" + PlayerSettings.productName + "_" + System.DateTime.Now.ToString("yyyyMMddHHmm");
|
||||
|
||||
EditorUserBuildSettings.SetBuildLocation(BuildTarget.Android, outPath);
|
||||
}
|
||||
|
||||
// static void OnIOS()
|
||||
// {
|
||||
// PlayerSettings.applicationIdentifier = "aaa";
|
||||
// PlayerSettings.bundleVersion = "1.9.115";
|
||||
// PlayerSettings.iOS.applicationDisplayName = "aaa";
|
||||
// PlayerSettings.iOS.targetOSVersionString = "8";
|
||||
// PlayerSettings.iOS.buildNumber = System.DateTime.Now.ToString("yyyyMMddHHmm");
|
||||
// PlayerSettings.iOS.sdkVersion = iOSSdkVersion.DeviceSDK;
|
||||
// }
|
||||
private class AndroidJson
|
||||
{
|
||||
public string keystoreName;
|
||||
public string keyaliasName;
|
||||
public string applicationIdentifier;
|
||||
public string companyName;
|
||||
public string productName;
|
||||
|
||||
}
|
||||
}
|
||||
11
sdk-intergration/Assets/Editor/ProjectAutoSetting.cs.meta
Normal file
11
sdk-intergration/Assets/Editor/ProjectAutoSetting.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da7a0905894ef4b849ba4b21a7f8b6dc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -2,9 +2,9 @@
|
||||
<dependencies>
|
||||
<androidPackages>
|
||||
<!-- Ensure that Resolver doesn't inadvertently pull the latest Play Services Ads' SDK that we haven't certified against. -->
|
||||
<androidPackage spec="com.applovin.mediation:google-adapter:[23.6.0.2]" />
|
||||
<androidPackage spec="com.applovin.mediation:google-adapter:[23.6.0.1]" />
|
||||
</androidPackages>
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationGoogleAdapter" version="11.13.0.1" />
|
||||
<iosPod name="AppLovinMediationGoogleAdapter" version="11.13.0.0" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
<androidPackage spec="com.applovin.mediation:vungle-adapter:7.4.2.2" />
|
||||
</androidPackages>
|
||||
<iosPods>
|
||||
<iosPod name="AppLovinMediationVungleAdapter" version="7.4.4.0" />
|
||||
<iosPod name="AppLovinMediationVungleAdapter" version="7.4.3.0" />
|
||||
</iosPods>
|
||||
</dependencies>
|
||||
|
||||
@@ -13,18 +13,21 @@
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter android:autoVerify="true">
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="https" android:host="fishingtraveliae.onelink.me" android:pathPrefix="/jT1Q"/>
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:host="mainactivity" android:scheme="zzft" />
|
||||
</intent-filter>
|
||||
|
||||
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
@@ -3,8 +3,8 @@ plugins {
|
||||
// See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
|
||||
// See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
|
||||
// To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
|
||||
id 'com.android.application' version '7.4.2' apply false
|
||||
id 'com.android.library' version '7.4.2' apply false
|
||||
id 'com.android.application' version '7.1.2' apply false
|
||||
id 'com.android.library' version '7.1.2' apply false
|
||||
id 'com.google.gms.google-services' version '4.3.3' apply false
|
||||
**BUILD_SCRIPT_DEPS**
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da5ce0ca5136f4d0bb4aa7c6ba8e94bb
|
||||
guid: 80a26fd5721f44bc8985483d7d7b6d0e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 92e3cb9b3082046489d61d8a7ba982be
|
||||
guid: 456833818c8db458da8d954107b093c0
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@@ -44,7 +44,7 @@ dependencies {
|
||||
implementation 'com.android.installreferrer:installreferrer:2.1' // Assets/AppsFlyer/Editor/AppsFlyerDependencies.xml:10
|
||||
implementation 'com.applovin.mediation:facebook-adapter:[6.18.0.1]' // Assets/MaxSdk/Mediation/Facebook/Editor/Dependencies.xml:8
|
||||
implementation 'com.applovin.mediation:fyber-adapter:8.3.5.0' // Assets/MaxSdk/Mediation/Fyber/Editor/Dependencies.xml:4
|
||||
implementation 'com.applovin.mediation:google-adapter:[23.6.0.2]' // Assets/MaxSdk/Mediation/Google/Editor/Dependencies.xml:5
|
||||
implementation 'com.applovin.mediation:google-adapter:[23.6.0.1]' // Assets/MaxSdk/Mediation/Google/Editor/Dependencies.xml:5
|
||||
implementation 'com.applovin.mediation:ironsource-adapter:8.6.1.0.0' // Assets/MaxSdk/Mediation/IronSource/Editor/Dependencies.xml:8
|
||||
implementation 'com.applovin.mediation:unityads-adapter:4.12.3.0' // Assets/MaxSdk/Mediation/UnityAds/Editor/Dependencies.xml:4
|
||||
implementation 'com.applovin.mediation:vungle-adapter:7.4.2.2' // Assets/MaxSdk/Mediation/Vungle/Editor/Dependencies.xml:4
|
||||
@@ -58,7 +58,6 @@ dependencies {
|
||||
|
||||
// Android Resolver Exclusions Start
|
||||
android {
|
||||
namespace "com.unity3d.player"
|
||||
packagingOptions {
|
||||
exclude ('/lib/armeabi/*' + '*')
|
||||
exclude ('/lib/mips/*' + '*')
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<package>com.android.installreferrer:installreferrer:2.1</package>
|
||||
<package>com.applovin.mediation:facebook-adapter:[6.18.0.1]</package>
|
||||
<package>com.applovin.mediation:fyber-adapter:8.3.5.0</package>
|
||||
<package>com.applovin.mediation:google-adapter:[23.6.0.2]</package>
|
||||
<package>com.applovin.mediation:google-adapter:[23.6.0.1]</package>
|
||||
<package>com.applovin.mediation:ironsource-adapter:8.6.1.0.0</package>
|
||||
<package>com.applovin.mediation:unityads-adapter:4.12.3.0</package>
|
||||
<package>com.applovin.mediation:vungle-adapter:7.4.2.2</package>
|
||||
|
||||
7
sdk-intergration/keystore/android.json
Normal file
7
sdk-intergration/keystore/android.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"keystoreName": "bamboogame.keystore",
|
||||
"keyaliasName": "fishing",
|
||||
"applicationIdentifier":"com.arkgame.ft",
|
||||
"companyName":"Ark Game Limited (香港)",
|
||||
"productName":"Fishing Travel"
|
||||
}
|
||||
BIN
sdk-intergration/keystore/user.keystore
Normal file
BIN
sdk-intergration/keystore/user.keystore
Normal file
Binary file not shown.
Reference in New Issue
Block a user