com.typhoon.unitysdk 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -140,9 +140,14 @@ dependencies {
|
|
|
140
140
|
// }
|
|
141
141
|
|
|
142
142
|
var publish = GUILayout.Button("发布vivo", GUILayout.Height(32));
|
|
143
|
+
|
|
143
144
|
if (publish)
|
|
144
145
|
{
|
|
145
|
-
|
|
146
|
+
var sure = EditorUtility.DisplayDialog("提示", "发布?", "是");
|
|
147
|
+
if (sure)
|
|
148
|
+
{
|
|
149
|
+
Publish(Target);
|
|
150
|
+
}
|
|
146
151
|
}
|
|
147
152
|
}
|
|
148
153
|
|
|
@@ -242,7 +247,7 @@ dependencies {
|
|
|
242
247
|
|
|
243
248
|
{
|
|
244
249
|
Debug.Log("更换AppId");
|
|
245
|
-
|
|
250
|
+
var supplierconfig = $"{publishProj}/vivo_union/src/main/assets/supplierconfig.json";
|
|
246
251
|
var input =
|
|
247
252
|
$"{{\n \"supplier\":{{\n \"vivo\":{{\n \"appid\":\"{setting.AppId}\"\n }},\n \"xiaomi\":{{\n\n }},\n \"huawei\":{{\n\n }},\n \"oppo\":{{\n\n }}\n }}\n\n}}\n";
|
|
248
253
|
File.WriteAllText(supplierconfig, input);
|
|
@@ -261,7 +266,7 @@ dependencies {
|
|
|
261
266
|
var manifest = $"{unityProj}/unityLibrary/src/main/AndroidManifest.xml";
|
|
262
267
|
var xml = File.ReadAllText(manifest);
|
|
263
268
|
// string pattern = @"(?s)<intent-filter\b[^>]*>(.*?)<\/intent-filter>";
|
|
264
|
-
// string result = Regex.Replace(xml, pattern, "");
|
|
269
|
+
// string result = Regex.Replace(xml, pattern, "");f
|
|
265
270
|
xml = xml.Replace("<intent-filter>", "");
|
|
266
271
|
xml = xml.Replace("<action android:name=\"android.intent.action.MAIN\" />", "");
|
|
267
272
|
xml = xml.Replace("<category android:name=\"android.intent.category.LAUNCHER\" />", "");
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.
|
|
1
|
+
{"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.4","description":"unity端个汇总渠道的sdk,统一接口,一键发布","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
|