diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml
index cb3f8e5..0d9a5c5 100644
--- a/.idea/deploymentTargetDropDown.xml
+++ b/.idea/deploymentTargetDropDown.xml
@@ -12,6 +12,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index d60bf2a..c038225 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -12,6 +12,7 @@
+
diff --git a/app/build.gradle b/app/build.gradle
index 9bbf2be..ec9d8a0 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,9 +1,8 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
- //id 'com.peakmain.plugin'
+ id 'com.peakmain.plugin'
}
-apply plugin: "com.peakmain.plugin"
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion
@@ -57,7 +56,7 @@ dependencies {
annotationProcessor "com.android.databinding:compiler:3.1.4"
implementation(rootProject.ext.dependencies.jpush)
}
-/*monitorPlugin {
+monitorPlugin {
whiteList = [
"com.peakmain.test",
"com.peakmain.haha",
@@ -66,4 +65,4 @@ dependencies {
]
methodStatus = 1
disableStackMapFrame = false
-}*/
+}
diff --git a/build.gradle b/build.gradle
index d8468f4..b0d31c7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,9 +6,9 @@ buildscript {
google()
jcenter()
mavenCentral()
- /* maven {
+ maven {
url uri('repo')
- }*/
+ }
maven {
url "https://plugins.gradle.org/m2/"
}
@@ -17,7 +17,8 @@ buildscript {
classpath "com.android.tools.build:gradle:4.0.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
- classpath "io.github.peakmain:plugin:1.0.1"
+ //classpath "io.github.peakmain:plugin:1.0.1"
+ classpath 'com.peakmain:android.plugin:1.0.0'
}
}
diff --git a/plugin/src/main/groovy/com/peakmain/analytics/plugin/PeakmainPlugin.groovy b/plugin/src/main/groovy/com/peakmain/analytics/plugin/PeakmainPlugin.groovy
index e322b1b..b1da1d8 100644
--- a/plugin/src/main/groovy/com/peakmain/analytics/plugin/PeakmainPlugin.groovy
+++ b/plugin/src/main/groovy/com/peakmain/analytics/plugin/PeakmainPlugin.groovy
@@ -14,11 +14,9 @@ import org.gradle.api.Project
* describe:
*/
class PeakmainPlugin implements Plugin {
- private final String pluginName = "monitorPlugin"
-
@Override
void apply(Project project) {
- MonitorConfig extension = project.extensions.create(pluginName, MonitorConfig)
+ MonitorConfig extension = project.extensions.create('monitorPlugin', MonitorConfig)
boolean disablePlugin = false
Properties properties = new Properties()
//gradle.properties是否存在
diff --git a/plugin/upload.gradle b/plugin/upload.gradle
index 9847609..92d57d9 100644
--- a/plugin/upload.gradle
+++ b/plugin/upload.gradle
@@ -1,5 +1,5 @@
-version = '1.0.1'
+version = '1.0.2'
group = 'io.github.peakmain'
gradlePlugin {
plugins {
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar
index 72f11ff..8d1c5a7 100644
Binary files a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar and b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar differ
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar.md5 b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar.md5
index 4659086..172df00 100644
--- a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar.md5
+++ b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar.md5
@@ -1 +1 @@
-a508a1bef4e64d52054aba30a98c7e51
\ No newline at end of file
+98a76f71cfbd014b1b5c2db2a093c286
\ No newline at end of file
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar.sha1 b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar.sha1
index 24f7d6b..7d5b30b 100644
--- a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar.sha1
+++ b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-groovydoc.jar.sha1
@@ -1 +1 @@
-25099819bf82975936de32841db8ac1e9536084c
\ No newline at end of file
+0d4f2cd8db7e7bbee196ec439f21d0610fec062c
\ No newline at end of file
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar
index 8c8f366..5da9303 100644
Binary files a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar and b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar differ
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar.md5 b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar.md5
index 71e4a4f..a21ef75 100644
--- a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar.md5
+++ b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar.md5
@@ -1 +1 @@
-3d645c77b9ee1873eaaefbacc1c88f30
\ No newline at end of file
+e9a83ea723357bf8461e57f7374f472b
\ No newline at end of file
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar.sha1 b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar.sha1
index 775253e..51d2d38 100644
--- a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar.sha1
+++ b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-javadoc.jar.sha1
@@ -1 +1 @@
-d50de1b3cd2346b0890e7f4c40ed1b95fdb3e41c
\ No newline at end of file
+a9c903872671c8c6bc1a9d6b6f720bc405497e03
\ No newline at end of file
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar
index 766bb21..2b0b51c 100644
Binary files a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar and b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar differ
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar.md5 b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar.md5
index ff903fb..8faef87 100644
--- a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar.md5
+++ b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar.md5
@@ -1 +1 @@
-02bac673fe925bbfaa54f95bdaac6f3e
\ No newline at end of file
+f9587df836d7b622169b632f45499fd9
\ No newline at end of file
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar.sha1 b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar.sha1
index 587d52b..ddb134c 100644
--- a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar.sha1
+++ b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0-sources.jar.sha1
@@ -1 +1 @@
-711e4e3fda721cbe64e2bd1701e583c2e0c0cd93
\ No newline at end of file
+c6a5daba7c835acd655a6daaf2e9c6c184e098b1
\ No newline at end of file
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar
index 2fe8b08..d613bb0 100644
Binary files a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar and b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar differ
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar.md5 b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar.md5
index 5acb504..3db0321 100644
--- a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar.md5
+++ b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar.md5
@@ -1 +1 @@
-6d9d487e22b67fa82042c6df2d189111
\ No newline at end of file
+0774ae771475ad24db4a2512f540dd60
\ No newline at end of file
diff --git a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar.sha1 b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar.sha1
index 58c46ff..6f20700 100644
--- a/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar.sha1
+++ b/repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar.sha1
@@ -1 +1 @@
-d32fd78a6c416488ecc6dc2b51a7d62e456df4d8
\ No newline at end of file
+b92d6e81031d928e6357603709c5f1ae6140d010
\ No newline at end of file
diff --git a/repo/com/peakmain/android.plugin/maven-metadata.xml b/repo/com/peakmain/android.plugin/maven-metadata.xml
index 2095806..400008c 100644
--- a/repo/com/peakmain/android.plugin/maven-metadata.xml
+++ b/repo/com/peakmain/android.plugin/maven-metadata.xml
@@ -7,6 +7,6 @@
1.0.0
- 20220414052318
+ 20220415014034
diff --git a/repo/com/peakmain/android.plugin/maven-metadata.xml.md5 b/repo/com/peakmain/android.plugin/maven-metadata.xml.md5
index 10ecd0d..1691a5d 100644
--- a/repo/com/peakmain/android.plugin/maven-metadata.xml.md5
+++ b/repo/com/peakmain/android.plugin/maven-metadata.xml.md5
@@ -1 +1 @@
-f453b88a47fb9e835b499570ff4918d8
\ No newline at end of file
+b01c3ebc726f241f063e1ec115f92b86
\ No newline at end of file
diff --git a/repo/com/peakmain/android.plugin/maven-metadata.xml.sha1 b/repo/com/peakmain/android.plugin/maven-metadata.xml.sha1
index ea59fda..bcd69ce 100644
--- a/repo/com/peakmain/android.plugin/maven-metadata.xml.sha1
+++ b/repo/com/peakmain/android.plugin/maven-metadata.xml.sha1
@@ -1 +1 @@
-80e5d4bb9337f56a8b51802a85c761402c5f5af2
\ No newline at end of file
+e4ca23a01d29eb68964d65c929a715bbafebd8b1
\ No newline at end of file
diff --git a/sdk/src/main/java/com/peakmain/sdk/constants/SensorsDataConstants.java b/sdk/src/main/java/com/peakmain/sdk/constants/SensorsDataConstants.java
index 207c971..d63ef99 100644
--- a/sdk/src/main/java/com/peakmain/sdk/constants/SensorsDataConstants.java
+++ b/sdk/src/main/java/com/peakmain/sdk/constants/SensorsDataConstants.java
@@ -26,4 +26,14 @@ public class SensorsDataConstants {
@Retention(RetentionPolicy.SOURCE)
public @interface STATE{}
+ public static final int GET_DEVICE_ID = 1;
+ public static final int GET_MEID = 2;
+ public static final int GET_IMEI = 3;
+ public static final int GET_SUBSCRIBER_ID = 4;
+ public static final int GET_SIM_SERIAL_NUMBER = 5;
+ public static final int GET_MAC_ADDRESS = 6;
+ public static final int GET_SSID = 7;
+ public static final int GET_CONNECTION_INFO = 8;
+ public static final int GET_BSSID = 9;
+
}
diff --git a/sdk/src/main/java/com/peakmain/sdk/interfaces/OnReplaceMethodListener.java b/sdk/src/main/java/com/peakmain/sdk/interfaces/OnReplaceMethodListener.java
new file mode 100644
index 0000000..d833869
--- /dev/null
+++ b/sdk/src/main/java/com/peakmain/sdk/interfaces/OnReplaceMethodListener.java
@@ -0,0 +1,19 @@
+package com.peakmain.sdk.interfaces;
+
+import android.content.ContentResolver;
+import android.telephony.TelephonyManager;
+
+/**
+ * author :Peakmain
+ * createTime:2022/4/15
+ * mail:2726449200@qq.com
+ * describe:替换方法监听事件
+ */
+public interface OnReplaceMethodListener {
+ String onReplaceMethodListener(TelephonyManager manager);
+
+ String onReplaceMethodListener(TelephonyManager manager, int slotIndex);
+
+ String getString(ContentResolver resolver, String name);
+
+}
diff --git a/settings.gradle b/settings.gradle
index 8435576..789621a 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,4 +1,4 @@
include ':sdk'
-//include ':plugin'
+include ':plugin'
include ':app'
rootProject.name = "AsmActualCombat"