Skip to content

Commit 9da324c

Browse files
author
shehabic
committed
WIP: Adding plugin to proxy all okhttp requests without interceptors
1 parent 508a8d4 commit 9da324c

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
ext.architecture_components_version = '1.1.1'
66
ext.support_libraries_version = '27.1.1'
77
ext.okhttp_version = '3.11.0'
8-
ext.VERSION_NAME = "v1.0.7"
8+
ext.VERSION_NAME = VERSION_CODE
99

1010
repositories {
1111
google()
@@ -15,11 +15,11 @@ buildscript {
1515
maven { url "https://plugins.gradle.org/m2/" }
1616
}
1717
dependencies {
18-
classpath 'com.android.tools.build:gradle:3.3.0'
18+
classpath 'com.android.tools.build:gradle:3.2.1'
1919
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
20-
classpath "com.gradle.publish:plugin-publish-plugin:0.9.9"
2120
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
22-
// classpath 'com.github.shehabic.sherlock:sherlock-plugin:v1.0.6e'
21+
classpath "com.gradle.publish:plugin-publish-plugin:0.9.9"
22+
// classpath 'com.github.shehabic.sherlock:sherlock-plugin:v1.0.5'
2323
// NOTE: Do not place your application dependencies here; they belong
2424
// in the individual module build.gradle files
2525
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ org.gradle.jvmargs=-Xmx4096M
1313
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1414
# org.gradle.parallel=true
1515

16-
VERSION_CODE=0.9.2
16+
VERSION_CODE=1.1.3
1717

1818
POM_DEVELOPER_ID=shehabic
1919
POM_DEVELOPER_NAME=Mohamed Shehab Osman
2020

21-
GROUP=com.github.shehabic.sherlock
21+
GROUP=com.github.shehabic
2222
POM_DESCRIPTION=A library to capture android app crashes and show their details
2323
POM_URL=https://github.com/shehabic/sherlock
2424
POM_SCM_URL=https://github.com/shehabic/sherlock

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

sherlock-no-op/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ apply plugin: 'maven-publish'
44

55
android {
66
compileSdkVersion 28
7+
8+
9+
710
defaultConfig {
811
minSdkVersion 15
912
targetSdkVersion 28
@@ -39,7 +42,7 @@ publishing {
3942
publications {
4043
bar(MavenPublication) {
4144
groupId GROUP
42-
artifactId 'sherlock-no-op'
45+
artifactId POM_ARTIFACT_ID
4346
version VERSION_NAME
4447
artifact(bundleReleaseAar)
4548
}

sherlock-plugin/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies {
2020

2121
gradlePlugin {
2222
plugins {
23-
foodoraQuality {
23+
sherlockPlugin {
2424
id = 'sherlock-plugin'
2525
implementationClass = 'com.shehabic.sherlock.plugin.SherlockPlugin'
2626
}
@@ -44,7 +44,7 @@ publishing {
4444
publications {
4545
maven(MavenPublication) {
4646
groupId GROUP
47-
artifactId 'sherlock-plugin'
47+
artifactId POM_ARTIFACT_ID
4848
version VERSION_NAME
4949
from components.java
5050
}

sherlock/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies {
3737
androidTestImplementation 'com.android.support.test:runner:1.0.2'
3838
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
3939
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
40-
api "com.squareup.okhttp3:okhttp:$okhttp_version"
40+
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"
4141
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
4242
}
4343
repositories {
@@ -55,7 +55,7 @@ publishing {
5555
publications {
5656
bar(MavenPublication) {
5757
groupId GROUP
58-
artifactId 'sherlock'
58+
artifactId POM_ARTIFACT_ID
5959
version VERSION_NAME
6060
artifact(bundleDebugAar)
6161
}

0 commit comments

Comments
 (0)