Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit 3bfdf15

Browse files
committed
Update to 1.2
1 parent c0649f4 commit 3bfdf15

19 files changed

+63
-105
lines changed

README.md

+38-17
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,64 @@ _New modules will added..._
2020

2121
## Integration
2222

23-
__1.__ Add Ultra Debugger library as a dependency to your project:
23+
Here is few option to integrate Ultra Debugger in your application.
2424

25+
##### Add for all configurations
26+
27+
__1.__ Add in build.gradle:
2528
```groovy
26-
debugCompile('ru.bartwell:ultradebugger:1.1') {
27-
exclude group: 'ru.bartwell:ultradebugger.module'
28-
}
29+
compile 'ru.bartwell:ultradebugger:1.2'
30+
```
31+
32+
__2.__ Add in Application class in onCreate() method:
33+
```groovy
34+
UltraDebugger.start(this);
35+
```
36+
37+
If you need specify custom port, add it as second argument:
38+
39+
```java
40+
UltraDebugger.start(this, 8081);
2941
```
3042

31-
_You can use `compile` instead of `debugCompile` if you need._
43+
##### Add only for debug configurations
3244

33-
__2.__ Add libraries of modules that you need:
45+
__1.__ Add in build.gradle:
3446
```groovy
35-
debugCompile 'ru.bartwell:ultradebugger.module.reflection:1.1'
36-
debugCompile 'ru.bartwell:ultradebugger.module.sqlite:1.1'
37-
debugCompile 'ru.bartwell:ultradebugger.module.sharedpreferences:1.1'
38-
debugCompile 'ru.bartwell:ultradebugger.module.info:1.1'
39-
debugCompile 'ru.bartwell:ultradebugger.module.files:1.1'
40-
debugCompile 'ru.bartwell:ultradebugger.module.logger:1.1'
47+
debugCompile 'ru.bartwell:ultradebugger:1.2'
4148
```
4249

43-
__3.__ Initialize library. Add code below in your Application class:
50+
__2.__ Add in Application class in onCreate() method:
4451

4552
```java
46-
UltraDebugger.start(this);
53+
if (BuildConfig.DEBUG) {
54+
try {
55+
Class<?> clazz = Class.forName("ru.bartwell.ultradebugger.UltraDebugger");
56+
Method method = clazz.getMethod("start", Context.class);
57+
method.invoke(null, this);
58+
} catch (Exception ignored) {
59+
}
60+
}
4761
```
4862

4963
If you need specify custom port, add it as second argument:
5064

5165
```java
52-
UltraDebugger.start(this, 8081);
66+
if (BuildConfig.DEBUG) {
67+
try {
68+
Class<?> clazz = Class.forName("ru.bartwell.ultradebugger.UltraDebugger");
69+
Method method = clazz.getMethod("start", Context.class, int.class);
70+
method.invoke(null, this, 8081);
71+
} catch (Exception ignored) {
72+
}
73+
}
5374
```
5475

5576
_Default port number is 8080._
5677

5778
## Usage
5879

59-
After you integrate main library and modules libraries just start application on your smartphone, open browser on your computer and type in address http://xxx.xxx.xxx.xxx:8080, where xxx.xxx.xxx.xxx - IP address of your smartphone. It mean that your computer and smartphone should connected to same network.
80+
After you integrate library just start application on your smartphone, open browser on your computer and type in address http://xxx.xxx.xxx.xxx:8080, where xxx.xxx.xxx.xxx - IP address of your smartphone. It mean that your computer and smartphone should connected to same network.
6081

6182
## How to support project
6283

@@ -70,7 +91,7 @@ __1.__ Create Android library project.
7091

7192
__2.__ Add base library as dependency:
7293
```groovy
73-
compile 'ru.bartwell:ultradebugger.base:1.1'
94+
compile 'ru.bartwell:ultradebugger.base:1.2'
7495
```
7596

7697
__3.__ Create class `Module extends BaseModule` in package `ru.bartwell.ultradebugger.module.xxx`, where `xxx` - your module name.

app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply from: "../shared.gradle"
33

44
android {
55
compileSdkVersion 24
6-
buildToolsVersion "24.0.3"
6+
buildToolsVersion '25.0.0'
77
defaultConfig {
88
applicationId "ru.bartwell.ultradebugger.sampleapp"
99
minSdkVersion 16

base/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ dependencies {
1111
}
1212

1313
apply from: '../maven_push.gradle'
14+
15+
android {
16+
buildToolsVersion '25.0.0'
17+
}

base/src/main/AndroidManifest.xml

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="ru.bartwell.ultradebugger.base">
3-
4-
<application android:allowBackup="true"
5-
android:label="@string/app_name"
6-
android:supportsRtl="true"
7-
>
8-
9-
</application>
10-
11-
</manifest>
1+
<manifest package="ru.bartwell.ultradebugger.base"/>

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.3'
8+
classpath 'com.android.tools.build:gradle:2.3.0'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files

files/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies {
66
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
77
exclude group: 'com.android.support', module: 'support-annotations'
88
})
9-
compile 'com.android.support:appcompat-v7:24.2.1'
9+
compile 'com.android.support:appcompat-v7:25.2.0'
1010
testCompile 'junit:junit:4.12'
1111
compile project(':base')
1212
}

files/src/main/AndroidManifest.xml

-7
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,4 @@
44
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
55
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
66

7-
<application
8-
android:allowBackup="true"
9-
android:label="@string/app_name"
10-
android:supportsRtl="true">
11-
12-
</application>
13-
147
</manifest>

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ org.gradle.jvmargs=-Xmx1536m
1616
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1717
# org.gradle.parallel=true
1818

19-
VERSION_NAME=1.1
20-
VERSION_CODE=2
19+
VERSION_NAME=1.2
20+
VERSION_CODE=3
2121
GROUP=ru.bartwell
2222

2323
POM_DESCRIPTION=Ultra Debugger is an open source modules-based android library for application debugging.
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Dec 28 10:00:20 PST 2015
1+
#Mon Mar 13 18:04:03 MSK 2017
22
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-2.14.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

info/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies {
66
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
77
exclude group: 'com.android.support', module: 'support-annotations'
88
})
9-
compile 'com.android.support:appcompat-v7:24.2.1'
9+
compile 'com.android.support:appcompat-v7:25.2.0'
1010
testCompile 'junit:junit:4.12'
1111
compile project(':base')
1212
}

info/src/main/AndroidManifest.xml

-8
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,4 @@
33

44
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
55

6-
<application
7-
android:allowBackup="true"
8-
android:label="@string/app_name"
9-
android:supportsRtl="true"
10-
>
11-
12-
</application>
13-
146
</manifest>

logger/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies {
66
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
77
exclude group: 'com.android.support', module: 'support-annotations'
88
})
9-
compile 'com.android.support:appcompat-v7:24.2.1'
9+
compile 'com.android.support:appcompat-v7:25.2.0'
1010
testCompile 'junit:junit:4.12'
1111
compile 'com.google.code.gson:gson:2.8.0'
1212
compile project(':base')

logger/src/main/AndroidManifest.xml

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="ru.bartwell.ultradebugger.module.logger">
3-
4-
<application android:allowBackup="true"
5-
android:label="@string/app_name"
6-
android:supportsRtl="true"
7-
>
8-
9-
</application>
10-
11-
</manifest>
1+
<manifest package="ru.bartwell.ultradebugger.module.logger"/>
+1-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="ru.bartwell.ultradebugger.module.reflection">
3-
4-
<application android:allowBackup="true"
5-
android:label="@string/app_name"
6-
android:supportsRtl="true"
7-
>
8-
9-
</application>
10-
11-
</manifest>
1+
<manifest package="ru.bartwell.ultradebugger.module.reflection"/>

shared.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
android {
2-
compileSdkVersion 24
3-
buildToolsVersion "24.0.3"
2+
compileSdkVersion 25
3+
buildToolsVersion "25.0.0"
44

55
defaultConfig {
66
minSdkVersion 9
7-
targetSdkVersion 24
8-
versionCode 2
9-
versionName "1.1"
7+
targetSdkVersion 25
8+
versionCode 3
9+
versionName "1.2"
1010

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

Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="ru.bartwell.ultradebugger.module.sharedpreferences">
3-
4-
<application android:allowBackup="true"
5-
android:label="@string/app_name"
6-
android:supportsRtl="true"
7-
>
8-
9-
</application>
10-
11-
</manifest>
1+
<manifest package="ru.bartwell.ultradebugger.module.sharedpreferences"/>

sqlite/src/main/AndroidManifest.xml

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="ru.bartwell.ultradebugger.module.sqlite">
3-
4-
<application android:allowBackup="true"
5-
android:label="@string/app_name"
6-
android:supportsRtl="true"
7-
>
8-
9-
</application>
10-
11-
</manifest>
1+
<manifest package="ru.bartwell.ultradebugger.module.sqlite"/>

ultradebugger/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ android {
1212
"\"logger\"" +
1313
"}"
1414
}
15+
buildToolsVersion '25.0.0'
1516
}
1617

1718
dependencies {

ultradebugger/src/main/AndroidManifest.xml

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
package="ru.bartwell.ultradebugger">
33

44
<uses-permission android:name="android.permission.INTERNET"/>
5-
<application
6-
android:allowBackup="true"
7-
android:label="@string/app_name"
8-
android:supportsRtl="true">
5+
<application>
96
<service
107
android:name=".ServerService"
118
android:enabled="true"

0 commit comments

Comments
 (0)