capacitor-plugin-getui
Advanced tools
@@ -30,2 +30,3 @@ import org.json.JSONObject | ||
| pluginConfig = jsonObject.plugins.Getui | ||
| // logger.info(pluginConfig.getui_appid) | ||
| } catch(Exception ignored) { | ||
@@ -36,2 +37,3 @@ logger.info("----------------- 读取 capacitor.config.json 文件失败 -----------------") | ||
| android { | ||
@@ -49,3 +51,3 @@ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30 | ||
| //后续所有产品的 APPID 均统一配置为 GETUI_APPID 占位符 | ||
| GETUI_APPID: pluginConfig.getui_appid, | ||
| GETUI_APPID: pluginConfig.getui_appid | ||
| ] | ||
@@ -52,0 +54,0 @@ } |
@@ -5,4 +5,2 @@ package com.yufu.plugin.getui; | ||
| import android.content.Context; | ||
| import android.net.Uri; | ||
| import com.getcapacitor.Bridge; | ||
@@ -20,7 +18,4 @@ import com.getcapacitor.JSArray; | ||
| import org.json.JSONArray; | ||
| import org.json.JSONException; | ||
| import java.util.List; | ||
| @CapacitorPlugin(name = "Getui") | ||
@@ -58,3 +53,3 @@ public class GetuiPlugin extends Plugin { | ||
| JSObject ret = new JSObject(); | ||
| PushManager.getInstance().initialize(staticContext); | ||
| pushManager.initialize(staticContext); | ||
| ret.put("version", pushManager.getVersion(staticContext)); | ||
@@ -108,3 +103,3 @@ ret.put("client_id", getClientId()); | ||
| Tag t = new Tag(); | ||
| //name 字段只支持:中文、英文字母(大小写)、数字、除英文逗号以外的其他特殊符号 | ||
| // name 字段只支持:中文、英文字母(大小写)、数字、除英文逗号以外的其他特殊符号 | ||
| t.setName(tag); | ||
@@ -267,3 +262,2 @@ tagParam[i] = t; | ||
| public static GetuiPlugin getInstance() { | ||
@@ -270,0 +264,0 @@ if (staticBridge != null && staticBridge.getWebView() != null) { |
+1
-1
| { | ||
| "name": "capacitor-plugin-getui", | ||
| "version": "0.0.9", | ||
| "version": "0.0.10", | ||
| "description": "个推", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
28243
-0.17%440
-0.68%