Skip to content

Commit

Permalink
插件修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Peakmain committed Apr 15, 2022
1 parent 96f012a commit 5c720e8
Show file tree
Hide file tree
Showing 24 changed files with 52 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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",
Expand All @@ -66,4 +65,4 @@ dependencies {
]
methodStatus = 1
disableStackMapFrame = false
}*/
}
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ buildscript {
google()
jcenter()
mavenCentral()
/* maven {
maven {
url uri('repo')
}*/
}
maven {
url "https://plugins.gradle.org/m2/"
}
Expand All @@ -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'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ import org.gradle.api.Project
* describe:
*/
class PeakmainPlugin implements Plugin<Project> {
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是否存在
Expand Down
2 changes: 1 addition & 1 deletion plugin/upload.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

version = '1.0.1'
version = '1.0.2'
group = 'io.github.peakmain'
gradlePlugin {
plugins {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a508a1bef4e64d52054aba30a98c7e51
98a76f71cfbd014b1b5c2db2a093c286
Original file line number Diff line number Diff line change
@@ -1 +1 @@
25099819bf82975936de32841db8ac1e9536084c
0d4f2cd8db7e7bbee196ec439f21d0610fec062c
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3d645c77b9ee1873eaaefbacc1c88f30
e9a83ea723357bf8461e57f7374f472b
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d50de1b3cd2346b0890e7f4c40ed1b95fdb3e41c
a9c903872671c8c6bc1a9d6b6f720bc405497e03
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
02bac673fe925bbfaa54f95bdaac6f3e
f9587df836d7b622169b632f45499fd9
Original file line number Diff line number Diff line change
@@ -1 +1 @@
711e4e3fda721cbe64e2bd1701e583c2e0c0cd93
c6a5daba7c835acd655a6daaf2e9c6c184e098b1
Binary file modified repo/com/peakmain/android.plugin/1.0.0/android.plugin-1.0.0.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6d9d487e22b67fa82042c6df2d189111
0774ae771475ad24db4a2512f540dd60
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d32fd78a6c416488ecc6dc2b51a7d62e456df4d8
b92d6e81031d928e6357603709c5f1ae6140d010
2 changes: 1 addition & 1 deletion repo/com/peakmain/android.plugin/maven-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<versions>
<version>1.0.0</version>
</versions>
<lastUpdated>20220414052318</lastUpdated>
<lastUpdated>20220415014034</lastUpdated>
</versioning>
</metadata>
2 changes: 1 addition & 1 deletion repo/com/peakmain/android.plugin/maven-metadata.xml.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f453b88a47fb9e835b499570ff4918d8
b01c3ebc726f241f063e1ec115f92b86
2 changes: 1 addition & 1 deletion repo/com/peakmain/android.plugin/maven-metadata.xml.sha1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
80e5d4bb9337f56a8b51802a85c761402c5f5af2
e4ca23a01d29eb68964d65c929a715bbafebd8b1
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}
Original file line number Diff line number Diff line change
@@ -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);

}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ':sdk'
//include ':plugin'
include ':plugin'
include ':app'
rootProject.name = "AsmActualCombat"

0 comments on commit 5c720e8

Please sign in to comment.