diff --git a/README.md b/README.md index 149c239..8ed2506 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Androscope supports Android applications with minimum API level 16. Add Androscope dependency to your Gradle script: ``` -debugImplementation (COMING SOON) +debugImplementation 'nl.ngti:androscope:1.0-RC1' ``` Install your application and you will see the entry named **Androscope** in launcher. Run it to launch the web server and then you can start using Androscope in a web browser. diff --git a/build.gradle b/build.gradle index c529df1..379ec4f 100644 --- a/build.gradle +++ b/build.gradle @@ -6,21 +6,24 @@ buildscript { repositories { google() jcenter() - + } dependencies { classpath 'com.android.tools.build:gradle:3.6.3' - + // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.10.1" + classpath 'com.vanniktech:gradle-maven-publish-plugin:0.11.1' + } } allprojects { repositories { google() jcenter() - + } } diff --git a/gradle.properties b/gradle.properties index ebd533d..c6d771e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,4 +18,18 @@ org.gradle.jvmargs=-Xmx1536m # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true +GROUP=nl.ngti +VERSION_NAME=1.0-RC1 +POM_URL=https://github.com/ngti/androscope +POM_SCM_URL=https://github.com/ngti/androscope +POM_SCM_CONNECTION=scm:git:git@github.com:ngti/androscope.git +POM_SCM_DEV_CONNECTION=scm:git:git@github.com:ngti/androscope.git + +POM_LICENCE_NAME=MIT License +POM_LICENCE_URL=https://github.com/ngti/androscope/blob/master/LICENSE +POM_LICENCE_DIST=repo + +POM_DEVELOPER_ID=NGTI +POM_DEVELOPER_NAME=NGT International BV +POM_DEVELOPER_URL=https://ngti.nl diff --git a/lib-androscope/build.gradle b/lib-androscope/build.gradle index f398ecd..4aee87d 100644 --- a/lib-androscope/build.gradle +++ b/lib-androscope/build.gradle @@ -32,9 +32,9 @@ android { kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8 } - } + dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.1.0' @@ -45,3 +45,12 @@ dependencies { androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' } + +apply plugin: 'org.jetbrains.dokka' + +dokka { + outputFormat = 'html' + outputDirectory = "$buildDir/javadoc" +} + +apply plugin: "com.vanniktech.maven.publish" diff --git a/lib-androscope/gradle.properties b/lib-androscope/gradle.properties new file mode 100644 index 0000000..3bdf0e5 --- /dev/null +++ b/lib-androscope/gradle.properties @@ -0,0 +1,5 @@ +POM_ARTIFACT_ID=androscope +POM_NAME=Androscope +POM_DESCRIPTION=Androscope is a debugging tool for Android developers that allows to see application internals using a convenient web interface. +POM_INCEPTION_YEAR=2018 +POM_PACKAGING=aar diff --git a/lib-androscope/src/main/java/nl/ngti/androscope/AndroscopeActivity.kt b/lib-androscope/src/main/java/nl/ngti/androscope/AndroscopeActivity.kt index 73f6ddc..f0b9e02 100644 --- a/lib-androscope/src/main/java/nl/ngti/androscope/AndroscopeActivity.kt +++ b/lib-androscope/src/main/java/nl/ngti/androscope/AndroscopeActivity.kt @@ -14,6 +14,12 @@ import androidx.lifecycle.Observer import nl.ngti.androscope.service.AndroscopeService import nl.ngti.androscope.service.AndroscopeService.LocalBinder +/** + * Starts Androscope (if it was not started yet) and shows its status. + * + * You can configure Androscope in manifest or resources, + * see [https://github.com/ngti/androscope#recipes]. + */ class AndroscopeActivity : FragmentActivity(R.layout.activity_androscope), ServiceConnection, View.OnClickListener { private lateinit var infoView: TextView