Skip to content

Commit

Permalink
re-organize project structure to use library project
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhuinden committed Jul 2, 2016
1 parent 4813396 commit 6638bdd
Show file tree
Hide file tree
Showing 169 changed files with 177 additions and 5,677 deletions.
58 changes: 22 additions & 36 deletions build.gradle
@@ -1,43 +1,29 @@
ext.deps = [
android_gradle_plugin : 'com.android.tools.build:gradle:1.5.0',
]
// Top-level build file where you can add configuration options common to all sub-projects/modules.

ext.minSdkVersion = 14
ext.compileSdkVersion = 23
ext.buildToolsVersion = '23.0.1'

task wrapper(type: Wrapper) {
gradleVersion = '2.10'
}

subprojects {
buildscript {
buildscript {
repositories {
mavenCentral()
mavenCentral()
jcenter()
maven {url "https://clojars.org/repo/"}
maven { url "https://jitpack.io" }
}
}

repositories {
mavenCentral()
}

group = GROUP
version = VERSION_NAME

apply plugin: 'maven'

afterEvaluate { project ->
if (!(project.plugins.hasPlugin('com.android.application') ||
project.plugins.hasPlugin('com.android.library'))) {
return
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

android {
lintOptions {
quiet false
textReport true
textOutput 'stdout'
}
allprojects {
repositories {
mavenCentral()
jcenter()
maven {url "https://clojars.org/repo/"}
maven { url "https://jitpack.io" }
}
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
File renamed without changes.
57 changes: 19 additions & 38 deletions flow-sample-basic/build.gradle
@@ -1,46 +1,27 @@
buildscript {
dependencies {
classpath deps.android_gradle_plugin
}
}

apply plugin: 'com.android.application'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
applicationId "flow.sample.basic"

minSdkVersion rootProject.ext.minSdkVersion
versionName VERSION_NAME
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "flow.sample.basic"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

packagingOptions {
exclude 'LICENSE.txt'
}
}

dependencies {
compile project(':flow')
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
androidTestCompile 'com.android.support.test:runner:0.4'
androidTestCompile 'com.android.support.test:rules:0.4'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
}

//noinspection GroovyAssignabilityCheck
configurations.all {
resolutionStrategy {
force 'com.android.support:support-annotations:23.1.1'
}
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile project(':flow')
}
File renamed without changes.
File renamed without changes.
38 changes: 18 additions & 20 deletions flow/build.gradle
@@ -1,27 +1,25 @@
import com.android.builder.core.BuilderConstants;

buildscript {
dependencies {
classpath deps.android_gradle_plugin
}
}

apply plugin: 'com.android.library'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
versionName VERSION_NAME
}
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile 'com.android.support:support-annotations:23.1.1'
testCompile 'junit:junit:4.10'
testCompile 'org.assertj:assertj-core:1.7.1'
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile 'org.robolectric:robolectric:3.0'
testCompile 'org.apache.maven:maven-ant-tasks:2.1.3'
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-annotations:23.4.0'
}
3 changes: 0 additions & 3 deletions flow/gradle.properties

This file was deleted.

Binary file removed flow/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 0 additions & 6 deletions flow/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion flow/src/main/java/flow/Flow.java
Expand Up @@ -23,7 +23,6 @@
import android.support.annotation.CheckResult;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;

import java.util.Iterator;
Expand Down
4 changes: 0 additions & 4 deletions flow/src/main/java/flow/KeyManager.java
Expand Up @@ -16,10 +16,6 @@

package flow;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
Expand Down
Expand Up @@ -11,7 +11,6 @@

import flow.Dispatcher;
import flow.Flow;
import flow.ForceBundler;
import flow.Traversal;
import flow.TraversalCallback;

Expand Down
@@ -1,10 +1,5 @@
package flow.preset;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.CheckResult;
import android.view.View;

/**
* Created by Zhuinden on 2016.07.01..
*/
Expand Down
1 change: 0 additions & 1 deletion flow/src/main/java/flow/preset/SingleRootDispatcher.java
Expand Up @@ -13,7 +13,6 @@
import android.view.ViewGroup;

import flow.Direction;
import flow.Dispatcher;
import flow.Flow;
import flow.ForceBundler;
import flow.Traversal;
Expand Down
7 changes: 0 additions & 7 deletions flowless-sample-master-detail/.gitignore
@@ -1,8 +1 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
48 changes: 0 additions & 48 deletions flowless-sample-master-detail/app/build.gradle

This file was deleted.

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions flowless-sample-master-detail/app/src/main/java/flow/ClassKey.java

This file was deleted.

0 comments on commit 6638bdd

Please sign in to comment.