Skip to content

Commit 7b8204b

Browse files
author
cwy545177162@163.com
committed
Update Readme
1 parent f7603f2 commit 7b8204b

File tree

9 files changed

+90
-12
lines changed

9 files changed

+90
-12
lines changed

.idea/libraries/appcompat_v7_23_1_1.xml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/support_annotations_23_1_1.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/support_v4_23_1_1.xml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:1.5.0'
9-
9+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
10+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
1213
}

gradle.properties

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,17 @@
1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18-
# org.gradle.parallel=true
18+
# org.gradle.parallel=true
19+
PROJ_GROUP=com.mrwang.stacklibrary
20+
PROJ_VERSION=1.0.0
21+
PROJ_NAME=FragmentStacklibrary
22+
PROJ_WEBSITEURL=https://github.com/Mr-wangyong/FragmentStack
23+
PROJ_ISSUETRACKERURL=https://github.com/Mr-wangyong/FragmentStack/issues
24+
PROJ_VCSURL=https://github.com/Mr-wangyong/FragmentStack.git
25+
PROJ_DESCRIPTION=A package of the start mode of the Fragment easy to use library to facilitate the construction of a single Activity+ multi Fragment lightweight framework
26+
PROJ_ARTIFACTID=FragmentStack
27+
28+
DEVELOPER_ID=wangyong
29+
DEVELOPER_NAME=mr-wangyong
30+
DEVELOPER_EMAIL=cwy545177162@163.com
31+

simple/src/main/java/com/mrwang/simple/HomeFragment.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.mrwang.stacklibrary.RootFragment;
1010
import com.mrwang.stacklibrary.StackManager;
1111

12-
1312
/**
1413
* User: chengwangyong(chengwangyong@vcinema.com)
1514
* Date: 2016-01-19
@@ -42,7 +41,6 @@ public void onClick(View v) {
4241
break;
4342
case R.id.single_top:
4443
open(new Fragment1(), null, StackManager.SINGLE_TOP);
45-
4644
break;
4745
case R.id.single_task:
4846
open(new Fragment1(), null, StackManager.SINGLE_TASK);

stacklibrary/build.gradle

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

35
android {
46
compileSdkVersion 23
@@ -22,4 +24,73 @@ dependencies {
2224
compile fileTree(dir: 'libs', include: ['*.jar'])
2325
testCompile 'junit:junit:4.12'
2426
compile 'com.android.support:appcompat-v7:23.1.1'
27+
compile 'com.android.support:support-annotations:20.0.0'
2528
}
29+
30+
def siteUrl = 'https://github.com/Mr-wangyong/FragmentStack' // 项目的主页
31+
def gitUrl = 'https://github.com/Mr-wangyong/FragmentStack.git' // Git仓库的url
32+
group = "com.mrwang.stacklibrary" // Maven Group ID for the artifact,一般填你唯一的包名
33+
install {
34+
repositories.mavenInstaller {
35+
// This generates POM.xml with proper parameters
36+
pom {
37+
project {
38+
packaging 'aar'
39+
// Add your description here
40+
name 'A package of the start mode of the Fragment easy to use library to facilitate the construction of a single Activity+ multi Fragment lightweight framework' //项目描述
41+
url siteUrl
42+
// Set your license
43+
licenses {
44+
license {
45+
name 'The Apache Software License, Version 2.0'
46+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
47+
}
48+
}
49+
developers {
50+
developer {
51+
id 'wangyong' //填写开发者基本信息
52+
name 'mr-wangyong'
53+
email 'cwy545177162@163.com'
54+
}
55+
}
56+
scm {
57+
connection gitUrl
58+
developerConnection gitUrl
59+
url siteUrl
60+
}
61+
}
62+
}
63+
}
64+
}
65+
task sourcesJar(type: Jar) {
66+
from android.sourceSets.main.java.srcDirs
67+
classifier = 'sources'
68+
}
69+
task javadoc(type: Javadoc) {
70+
source = android.sourceSets.main.java.srcDirs
71+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
72+
}
73+
task javadocJar(type: Jar, dependsOn: javadoc) {
74+
classifier = 'javadoc'
75+
from javadoc.destinationDir
76+
}
77+
artifacts {
78+
archives javadocJar
79+
archives sourcesJar
80+
}
81+
Properties properties = new Properties()
82+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
83+
bintray {
84+
user = properties.getProperty("bintray.user")
85+
key = properties.getProperty("bintray.apikey")
86+
configurations = ['archives']
87+
pkg {
88+
repo = "maven" //发布到Bintray的那个仓库里,默认账户有四个库,我们这里上传到maven库
89+
name = "FragmentStacklibrary" //发布到Bintray上的项目名字
90+
websiteUrl = siteUrl
91+
vcsUrl = gitUrl
92+
licenses = ["Apache-2.0"]
93+
publish = true
94+
}
95+
}
96+

stacklibrary/src/main/java/com/mrwang/stacklibrary/RootFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import android.os.Bundle;
44
import android.support.annotation.AnimRes;
5-
import android.support.annotation.IntDef;
65
import android.support.annotation.NonNull;
76
import android.support.v4.app.Fragment;
87
import android.support.v4.app.FragmentActivity;
@@ -67,7 +66,7 @@ public void open(@NonNull RootFragment fragment, Bundle bundle) {
6766
* @param stackMode stackMode,{@link FragmentStack#STANDARD} or more
6867
*/
6968

70-
public void open(@NonNull RootFragment fragment, Bundle bundle,int stackMode) {
69+
public void open(@NonNull RootFragment fragment, Bundle bundle, int stackMode) {
7170
getRoot().manager.addFragment(this, fragment, bundle, stackMode);
7271
}
7372

stacklibrary/stacklibrary.iml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module external.linked.project.id=":stacklibrary" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="FragmentStack" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
2+
<module external.linked.project.id=":stacklibrary" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.mrwang.stacklibrary" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
33
<component name="FacetManager">
44
<facet type="android-gradle" name="Android-Gradle">
55
<configuration>
@@ -65,6 +65,7 @@
6565
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
6666
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
6767
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
68+
<excludeFolder url="file://$MODULE_DIR$/build/docs" />
6869
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/annotations" />
6970
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
7071
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />

0 commit comments

Comments
 (0)