Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SandHook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
SandHook
Commits
60bc0b03
Commit
60bc0b03
authored
Jan 26, 2019
by
swift_gan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publish to jcenter & add proguard profile
parent
23f76c5d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
44 deletions
+46
-44
build.gradle
annotation/build.gradle
+17
-0
build.gradle
build.gradle
+15
-1
build.gradle
hooklib/build.gradle
+12
-0
proguard-rules.pro
hooklib/proguard-rules.pro
+2
-0
ExampleInstrumentedTest.java
...Test/java/com/swift/sandhook/ExampleInstrumentedTest.java
+0
-26
ExampleUnitTest.java
...lib/src/test/java/com/swift/sandhook/ExampleUnitTest.java
+0
-17
No files found.
annotation/build.gradle
View file @
60bc0b03
...
@@ -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
}
build.gradle
View file @
60bc0b03
...
@@ -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
)
{
...
...
hooklib/build.gradle
View file @
60bc0b03
...
@@ -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
}
hooklib/proguard-rules.pro
View file @
60bc0b03
...
@@ -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
.
**
{
*
;
}
hooklib/src/androidTest/java/com/swift/sandhook/ExampleInstrumentedTest.java
deleted
100644 → 0
View file @
23f76c5d
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
());
}
}
hooklib/src/test/java/com/swift/sandhook/ExampleUnitTest.java
deleted
100644 → 0
View file @
23f76c5d
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment