Skip to content

Commit 13dcbcf

Browse files
committed
[commit] update copyright
1 parent 9e3ff7e commit 13dcbcf

31 files changed

+467
-118
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 2.将常用第三方框架封装成工具类
66
* 3.收集一些高效的正确的代码片段避免下次踩坑
77
- 能力一般,水平有限,难免有Bug,如果有任何问题,请<a href="https://github.com/h4de5ing/AndroidCommon/issues">反馈</a>
8-
- 如果写的更好,请提交<a href="https://github.com/h4de5ing/AndroidCommon/pulls">Pull request</a>
8+
- 如果你有更好的代码,请提交<a href="https://github.com/h4de5ing/AndroidCommon/pulls">Pull request</a>
99

1010
## app Module中的类:
1111
MainActivity.java 测试项目中的主类

app/src/androidTest/java/com/code19/androidcommon/ApplicationTest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2016 android@19code.com
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.code19.androidcommon;
218

319
import android.app.Application;

app/src/main/AndroidManifest.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
~ Copyright (C) 2016 android@19code.com
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<manifest package="com.code19.androidcommon"
319
xmlns:android="http://schemas.android.com/apk/res/android">
420

app/src/main/java/com/code19/androidcommon/HandlerActivity.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/*
22
* Copyright (C) 2016 android@19code.com
33
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
1515
*/
1616

1717
package com.code19.androidcommon;

app/src/main/java/com/code19/androidcommon/MainActivity.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2016 android@19code.com
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.code19.androidcommon;
218

319
import android.os.Bundle;

app/src/main/res/layout/activity_main.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
~ Copyright (C) 2016 android@19code.com
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<RelativeLayout
319
xmlns:android="http://schemas.android.com/apk/res/android"
420
xmlns:tools="http://schemas.android.com/tools"

app/src/main/res/values-w820dp/dimens.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<!--
2+
~ Copyright (C) 2016 android@19code.com
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
117
<resources>
218
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
319
(such as screen margins) for screens with more than 820dp of available width. This

app/src/main/res/values/colors.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
~ Copyright (C) 2016 android@19code.com
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<resources>
319
<color name="colorPrimary">#3F51B5</color>
420
<color name="colorPrimaryDark">#303F9F</color>

app/src/main/res/values/dimens.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<!--
2+
~ Copyright (C) 2016 android@19code.com
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
117
<resources>
218
<!-- Default screen margins, per the Android Design guidelines. -->
319
<dimen name="activity_horizontal_margin">16dp</dimen>

app/src/main/res/values/strings.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<!--
2+
~ Copyright (C) 2016 android@19code.com
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
117
<resources>
218
<string name="app_name">AndroidCommon</string>
319
</resources>

app/src/main/res/values/styles.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<!--
2+
~ Copyright (C) 2016 android@19code.com
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
117
<resources>
218

319
<!-- Base application theme. -->

app/src/test/java/com/code19/androidcommon/ExampleUnitTest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2016 android@19code.com
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.code19.androidcommon;
218

319
import org.junit.Test;

build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2016 android@19code.com
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
// Top-level build file where you can add configuration options common to all sub-projects/modules.
218

319
buildscript {
@@ -6,6 +22,8 @@ buildscript {
622
}
723
dependencies {
824
classpath 'com.android.tools.build:gradle:2.1.0'
25+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
26+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
927

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

gradle.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
#
2+
# Copyright (C) 2016 android@19code.com
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
117
## Project-wide Gradle settings.
218
#
319
# For more details on how to configure your build environment visit

gradle/wrapper/gradle-wrapper.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
#
2+
# Copyright (C) 2016 android@19code.com
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
117
#Mon Dec 28 10:00:20 PST 2015
218
distributionBase=GRADLE_USER_HOME
319
distributionPath=wrapper/dists

library/build.gradle

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
apply plugin: 'com.jfrog.bintray'
24

5+
version = "0.0.1"
36
android {
7+
resourcePrefix "h4de5ing_"
48
compileSdkVersion 23
59
buildToolsVersion "23.0.3"
610

@@ -22,5 +26,71 @@ dependencies {
2226
compile 'com.android.support:appcompat-v7:23.+'
2327
compile fileTree(dir: 'libs', include: ['*.jar'])
2428
testCompile 'junit:junit:4.12'
25-
compile 'com.google.code.gson:gson:2.2.4'
29+
compile 'com.google.code.gson:gson:2+'
30+
}
31+
def siteUrl = 'https://github.com/h4de5ing/AndroidCommon'
32+
def gitUrl = 'https://github.com/h4de5ing/AndroidCommon.git' // Git仓库的url
33+
group = "com.code19.library"
34+
install{
35+
repositories.mavenInstaller {
36+
// This generates POM.xml with proper parameters
37+
pom {
38+
project {
39+
packaging 'aar'
40+
// Add your description here
41+
name 'Android common library' //项目的描述
42+
url siteUrl
43+
// Set your license
44+
licenses {
45+
license {
46+
name 'The Apache Software License, Version 2.0'
47+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
48+
}
49+
}
50+
developers {
51+
developer {
52+
id 'h4de5ing'
53+
name 'h4de5ing'
54+
email 'android@19code.com'
55+
}
56+
}
57+
scm {
58+
connection gitUrl
59+
developerConnection gitUrl
60+
url siteUrl
61+
}
62+
}
63+
}
64+
}
65+
}
66+
task sourcesJar(type: Jar) {
67+
from android.sourceSets.main.java.srcDirs
68+
classifier = 'sources'
69+
}
70+
task javadoc(type: Javadoc) {
71+
source = android.sourceSets.main.java.srcDirs
72+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
73+
}
74+
task javadocJar(type: Jar, dependsOn: javadoc) {
75+
classifier = 'javadoc'
76+
from javadoc.destinationDir
77+
}
78+
artifacts {
79+
archives javadocJar
80+
archives sourcesJar
81+
}
82+
Properties properties = new Properties()
83+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
84+
bintray {
85+
user = properties.getProperty("bintray.user")
86+
key = properties.getProperty("bintray.apikey")
87+
configurations = ['archives']
88+
pkg {
89+
repo = "maven"
90+
name = "h4de5ing-commonr" //发布到JCenter上的项目名字
91+
websiteUrl = siteUrl
92+
vcsUrl = gitUrl
93+
licenses = ["Apache-2.0"]
94+
publish = true
95+
}
2696
}

0 commit comments

Comments
 (0)