Skip to content

Commit

Permalink
v1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
simplepeng committed Feb 23, 2019
1 parent b0eb578 commit d025cff
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 359 deletions.
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ SpiderMan能为您做的:
## 引入依赖

```groovy
debugImplementation 'com.simple:spiderman:1.0.8'
releaseImplementation 'com.simple:spiderman-no-op:1.0.8'
debugImplementation 'com.simple:spiderman:1.0.9'
releaseImplementation 'com.simple:spiderman-no-op:1.0.9'
```

## 初始化
Expand All @@ -27,19 +27,33 @@ releaseImplementation 'com.simple:spiderman-no-op:1.0.8'

```java
public class App extends Application {

@Override
public void onCreate() {
super.onCreate();
//放在其他库初始化前
//放在其他库初始化前
SpiderMan.init(this);
}
}
```

## 冲突

项目已经依赖了`com.android.support:appcompat-v7`包,如果产生冲突请使用下面的方式依赖。

```java
debugImplementation('com.simple:spiderman:1.0.9') {
exclude group: "com.android.support"
}

releaseImplementation('com.simple:spiderman-no-op:1.0.9') {
exclude group: "com.android.support"
}
```

## 版本迭代

* 1.0.9 增加appcompat包冲突解决方案
* 1.0.8 发现很多小伙伴不会代理异常收集,所以删除了异常回调
* 1.0.7 删除spiderman-no-op never-crash,优化报错类型显示
* 1.0.6 增加spiderman-no-op
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/com/simple/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ public void onCreate() {
super.onCreate();
//放在其他库初始化前
SpiderMan.init(this);

}

}
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@ task clean(type: Delete) {
}

ext{
version = "1.0.8"
sm_version = "1.0.9"
sm_no_op_version = "1.0.9"

compileSdkVersion = 27
minSdkVersion = 16
targetSdkVersion = 27
}
22 changes: 6 additions & 16 deletions spiderman-no-op/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,24 @@ apply plugin: 'com.jfrog.bintray'
android {
resourcePrefix "simple"

compileSdkVersion 27
compileSdkVersion rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
minSdkVersion rootProject.ext.minSdkVersion
// targetSdkVersion 27

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
// implementation 'com.google.code.gson:gson:2.8.5'
// implementation 'com.android.support:appcompat-v7:27.1.1'
api 'com.android.support:appcompat-v7:27.1.1'
}

version = rootProject.ext.version
version = rootProject.ext.sm_no_op_version

def siteUrl = 'https://github.com/simplepeng/SpiderMan' // 项目的主页
def gitUrl = '[email protected]:simplepeng/SpiderMan.git' // Git仓库的url
Expand Down Expand Up @@ -99,7 +89,7 @@ bintray {
name = "SpiderMan-no-op" //发布到JCenter上的项目名字
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
licenses = ["MIT"]
publish = true
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit d025cff

Please sign in to comment.