Skip to content

Commit

Permalink
update packaging script and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamling committed Apr 27, 2017
1 parent 9f1699e commit 45f8b4c
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 92 deletions.
62 changes: 33 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
## QuickAF

[![Build Status](https://travis-ci.org/Jamling/QuickAF.svg?branch=master)](https://travis-ci.org/Jamling/QuickAF)
[![GitHub release](https://img.shields.io/github/release/jamling/QuickAF.svg?maxAge=3600)](https://github.com/Jamling/QuickAF)
[![Bintray](https://img.shields.io/bintray/v/jamling/maven/cn.ieclipse.af.svg?maxAge=86400)](https://bintray.com/jamling/maven/cn.ieclipse.af)


An Android framework library and demo to help you building your app quickly.

![screenshot](https://raw.githubusercontent.com/Jamling/QuickAF/master/screenshot/sample1.0.0.gif)


## Sample apk
![sample apk](https://raw.githubusercontent.com/Jamling/QuickAF/master/screenshot/qr_quickaf.png)
[![sample apk](https://raw.githubusercontent.com/Jamling/QuickAF/master/screenshot/qr_quickaf.png)](https://github.com/Jamling/QuickAF/releases/download/v2.0.2/QuickAF2.0.2(2)-release.apk)

## Install

- Android Studio

```gradle
dependencies {
compile 'cn.ieclipse.af:af-library:1.0.1'
compile 'cn.ieclipse.af:af-library:2.0.2'
}
android {
// for target api >= 23 (Android 6.0)
Expand All @@ -28,48 +31,50 @@ android {
## Features
![architecture](https://raw.githubusercontent.com/Jamling/QuickAF/master/screenshot/struct.png)

library:
### library

- Component
- tab, tab+viewpager
- cview, lots of custom views, e.g. Preference, FlowLayout, TableLayout, AutoPlayView
- refresh, use RecycleView with pull to refresh, swipe menu, fix header features
- tab, tab+viewpager
- cview, lots of custom views, e.g. Preference, FlowLayout, TableLayout, AutoPlayView
- refresh, use RefreshLayout, support any RecyclerView, ListView and ScrollView
- Network
- Volley+Gson, base on volley for data tranfer, gson for json parsing
- Common Task, common REST API request task
- Upload Task, compressed image upload task
- Volley+Gson, base on volley for data tranfer, gson for json parsing
- Common Task, common REST API request task
- Upload Task, compressed image upload task
- Utils, lots of utility tool class e.g.
- DialogsUtils
- AppUtils
- FileUtils
- SharedPrefsUtils
- DialogsUtils
- AppUtils
- FileUtils
- SharedPrefsUtils

3rd library: (Use the existing wheels)
### 3rd library: (Use the existing wheels)

- DB, recommend to use orm library
- Aorm see https://github.com/Jamling/Android-ORM
- Image,
- Universal-Image-Loader see https://github.com/nostra13/Android-Universal-Image-Loader
- Fresco see https://github.com/facebook/fresco
- Aorm see https://github.com/Jamling/Android-ORM
- Image
- Universal-Image-Loader see https://github.com/nostra13/Android-Universal-Image-Loader
- Fresco see https://github.com/facebook/fresco
- Pay
- af-pay see https://github.com/Jamling/af-pay

In sample:
### In sample:

- Profile, sample user profile
- login
- register
- forget
- login
- register
- forget password
- Common, common activity
- BaseActivity
- BaseFragment
- H5Activity
- SelectPhotoActivity
- BaseActivity
- BaseFragment
- H5Activity
- BaseListFragment

## Change log
###v2.0.0
### v2.0.0
- New refresh component.
- Import recyclerview adapter delegate.
- Lost of bug fix
- ***Don't compatible to v1.x***
- **Don't compatible to v1.x**

## Blog
See http://www.ieclipse.cn/tags/QuickAF/
Expand All @@ -82,7 +87,6 @@ BadgeView https://github.com/stefanjauker/BadgeView
PagerSlidingTabStrip https://github.com/astuetz/PagerSlidingTabStrip
ScrollLayout http://blog.csdn.net/Yao_GUET


## Contributors

- [wangjiandett](https://github.com/wangjiandett)
Expand Down
51 changes: 13 additions & 38 deletions library/android-maven.gradle
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
}
}
Properties properties = new Properties()

repositories {
jcenter()
maven {
url properties.getProperty("sdk.dir")+"/extras/android/m2repository"
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
//repositories {
// jcenter()
// maven {
// url "${android.sdkDirectory}/extras/android/m2repository"
// }
//}

project.ext {
name = project.property('ART_ARTIFACT')
group = project.property('ART_GROUP')
version = project.property('ART_VER')
archivesBaseName = ART_ARTIFACT
artifactId = project.property('ART_ARTIFACT')
archivesBaseName = project.property('ART_ARTIFACT')
}

tasks.withType(Jar) {
Expand All @@ -40,19 +27,6 @@ task sourcesJar(type: Jar) {
classifier = 'sources'
}

//task javadoc(type: Javadoc) {
// source = android.sourceSets.main.java.srcDirs
// classpath += project.files(configurations.compile.files, android.getBootClasspath().join(File.pathSeparator))
// title PRJ_NAME + " " + ART_VER + " API"
// options.encoding 'utf-8'
// options.charSet 'utf-8'
// options.tags 'date:t:"Date:"'
//}

//task javadocJar(type: Jar, dependsOn: generateDebugJavadoc) {
// classifier = 'javadoc'
// from javadoc.destinationDir
//}
android.libraryVariants.all { variant ->
// println variant.javaCompile.classpath.files
if(variant.name == 'release') {
Expand All @@ -72,9 +46,9 @@ android.libraryVariants.all { variant ->
tags 'sample:t:Sample:'
tags 'attr:a:Attribute:'
}
//exclude '**/BuildConfig.java'
//exclude '**/R.java'
exclude 'cn/ieclipse/af/view/wheelview/'
exclude 'android/**/*'
exclude 'com/**/*'
exclude '**/*'
}
task("javadocJar", type: Jar, dependsOn: "generate${variant.name.capitalize()}Javadoc") {
classifier = 'javadoc'
Expand All @@ -95,6 +69,7 @@ task findConventions << {
}

install {
println(artifactId)
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
Expand Down
4 changes: 1 addition & 3 deletions library/android.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ android {
}

dependencies {
// compile fileTree(include: ['*.jar'], dir: 'libs')
compile fileTree(include: ['*.jar'], dir: 'libs')
compile "com.android.support:recyclerview-v7:${supportLibVersion}"
compile "com.android.support:support-core-ui:${supportLibVersion}"
//compile "com.android.support:support-v4:${supportLibVersion}"
compile 'com.google.code.gson:gson:2.3'
// compile 'com.tubb.smrv:swipemenu-recyclerview:3.0.5'
compile 'com.android.volley:volley:1.0.0'
}
3 changes: 1 addition & 2 deletions library/bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
apply plugin: 'com.jfrog.bintray'

bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
Expand All @@ -16,6 +14,7 @@ bintray {
name = project.property('ART_VER')
desc = project.property('PKG_VER_DESC')
vcsTag = project.property('SCM_TAG')
released = new Date()
//attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
}
/*
Expand Down
29 changes: 11 additions & 18 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
buildscript {
repositories {
jcenter()
}
dependencies {
// classpath 'com.android.tools.build:gradle:2.0.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
}
plugins {
id "com.github.dcendents.android-maven" version "1.5"
id "com.jfrog.bintray" version "1.7.3"
}

apply plugin: 'com.android.library'



apply from : './android.gradle'

apply from : './android-maven.gradle'

apply from : './bintray.gradle'

task hello << {
println(rootProject.name)
println(android.libraryVariants)
def release;
android.libraryVariants.all { variant ->
Expand All @@ -27,12 +24,8 @@ task hello << {
}
}
println("found:" + release.javaCompile.classpath.files)

println(Rdir);
}
// apply from : 'android-maven.gradle'
/*
task build(type: GradleBuild) {
buildFile = 'android-maven.gradle'
tasks = ['bintray']
}*/
def android_sdk = "${android.sdkDirectory}";
def android_platform = "${android.compileSdkVersion}"
println(android_sdk);
println(android_platform);
}
4 changes: 2 additions & 2 deletions library/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ LIC_DESC=
SCM_URL=https://github.com/Jamling/QuickAF
SCM_REPO=https://github.com/Jamling/QuickAF.git
SCM_DEV=git@github.com:Jamling/QuickAF.git
SCM_TAG=
SCM_TAG=v2.0.2

# MAVEN DEV
DEV_NAME=QuickAF Project
Expand All @@ -39,4 +39,4 @@ DEV_EMAIL=li.jamling@gmail.com
# bintray pkg
PKG_VER_DESC=
bintrayUser=jamling
bintrayApiKey=e62a15c605ea4ea8af8205d01f5804bf1584b06b
bintrayApiKey=f32bbe2d2e86f4644c948dc82aa69cc4fa30c168
Binary file modified screenshot/qr_quickaf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 45f8b4c

Please sign in to comment.