Commit 60bc0b03 authored by swift_gan's avatar swift_gan

publish to jcenter & add proguard profile

parent 23f76c5d
...@@ -6,3 +6,20 @@ dependencies { ...@@ -6,3 +6,20 @@ dependencies {
sourceCompatibility = "1.7" sourceCompatibility = "1.7"
targetCompatibility = "1.7" targetCompatibility = "1.7"
ext {
bintrayRepo = 'maven'
bintrayName = 'swift-sandhook-annotation'
}
apply plugin: 'com.novoda.bintray-release'
publish {
userOrg = rootProject.userOrg
groupId = rootProject.groupId
artifactId = 'hookannotation'
publishVersion = rootProject.publishVersion
desc = rootProject.desc
website = rootProject.website
licences = rootProject.licences
}
...@@ -8,7 +8,7 @@ buildscript { ...@@ -8,7 +8,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.1.3' classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.novoda:bintray-release:0.8.1'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
...@@ -20,6 +20,20 @@ allprojects { ...@@ -20,6 +20,20 @@ allprojects {
google() google()
jcenter() jcenter()
} }
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}
}
ext {
userOrg = 'ganyao114'
groupId = 'com.swift.sandhook'
repoName = 'SandHook'
publishVersion = '0.0.1'
desc = 'android art hook'
website = 'https://github.com/ganyao114/SandHook'
licences = ['Apache-2.0']
} }
task clean(type: Delete) { task clean(type: Delete) {
......
...@@ -39,3 +39,15 @@ dependencies { ...@@ -39,3 +39,15 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs') implementation fileTree(include: ['*.jar'], dir: 'libs')
api project(':annotation') api project(':annotation')
} }
apply plugin: 'com.novoda.bintray-release'
publish {
userOrg = rootProject.userOrg
groupId = rootProject.groupId
artifactId = 'hooklib'
publishVersion = rootProject.publishVersion
desc = rootProject.desc
website = rootProject.website
licences = rootProject.licences
}
...@@ -19,3 +19,5 @@ ...@@ -19,3 +19,5 @@
# If you keep the line number information, uncomment this to # If you keep the line number information, uncomment this to
# hide the original source file name. # hide the original source file name.
#-renamesourcefileattribute SourceFile #-renamesourcefileattribute SourceFile
-keep class com.swift.sandhook.** { *; }
package com.swift.sandhook;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.swift.sandhook.test", appContext.getPackageName());
}
}
package com.swift.sandhook;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment