Skip to content

Commit

Permalink
Merge pull request getodk#215 from srsudar/remove-uw-gradle
Browse files Browse the repository at this point in the history
Remove uw gradle
  • Loading branch information
yanokwa authored Nov 2, 2016
2 parents f9ce594 + fe9ecae commit 717ce6e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 105 deletions.
20 changes: 1 addition & 19 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,13 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.android.tools.build:gradle:2.2.2'
}
}

allprojects {
repositories {
jcenter()
ivy {
url 'http://cwe.cs.washington.edu:8082/artifactory/libs-release'
}
}
}

allprojects {
repositories {
jcenter()
ivy {
url 'http://cwe.cs.washington.edu:8082/artifactory/libs-demo/'
}
ivy {
url 'http://cwe.cs.washington.edu:8082/artifactory/libs-master/'
}
ivy {
url 'http://cwe.cs.washington.edu:8082/artifactory/libs-snapshot/'
}
}
}

Expand Down
69 changes: 19 additions & 50 deletions collect_app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,13 @@
GRADLE CONFIG
*************************************************************************************************/

if ((new File(gradle.local)).exists()) {
apply from: gradle.local
} else {
apply from: gradle.remote
}

applicationScripts.each {
apply from: it
}

apply plugin: 'com.android.application'

com.android.ddmlib.DdmPreferences.setTimeOut(60000)

android {
// The following are set in the common.gradle file
compileSdkVersion(compileVersion)
buildToolsVersion(buildTools)
compileSdkVersion(22)
buildToolsVersion("23.0.3")

defaultConfig {
applicationId("org.odk.collect.android")
Expand All @@ -29,55 +18,35 @@ android {
versionName("1.4.11")
}

productFlavors {
demo {
}

master {
}

snapshot {
}

uitest {
}
}

signingConfigs {
release {
if (shouldSign) {
storeFile file(signStoreFilePath)
storePassword signStorePass
keyAlias signKeyAlias
keyPassword signKeyPass
}
}
}

buildTypes {
release {
minifyEnabled(minify)
minifyEnabled(true)
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'

if (shouldSign) {
signingConfig signingConfigs.release
}
}
debug {
debuggable(true)
testCoverageEnabled(testCoverage) // Allows AndroidTest JaCoCo reports to be generated
// Allows AndroidTest JaCoCo reports to be generated
testCoverageEnabled(true)
}
}

packagingOptions { // Pick first occurrence of any files that cause conflicts, as defined in common.gradle
packageList.each {
pickFirst it
}
packagingOptions {
// Pick first occurrence of any files that cause conflicts, as defined
// in common.gradle
pickFirst 'META-INF/DEPENDENCIES'
pickFirst 'META-INF/LICENSE'
pickFirst 'META-INF/LICENSE.txt'
pickFirst 'META-INF/NOTICE'
pickFirst 'META-INF/NOTICE.txt'
pickFirst 'META-INF/services/com.fasterxml.jackson.core.JsonFactory'
pickFirst 'META-INF/services/com.fasterxml.jackson.core.ObjectCodec'
pickFirst 'META-INF/services/javax.ws.rs.ext.MessageBodyReader'
pickFirst 'META-INF/services/javax.ws.rs.ext.MessageBodyWriter'
}

compileOptions {
sourceCompatibility javaVersion
targetCompatibility javaVersion
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Aug 31 19:13:22 PDT 2016
#Wed Nov 02 08:59:15 PDT 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
35 changes: 1 addition & 34 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,34 +1 @@
gradle.ext.gradleConfigVersion = 40

if ( !gradle.ext.has('workspacePath') ) {
def env = System.getProperties();
logger.warn("collect/settings.gradle System.getProperties().stringPropertyNames(): " + env.stringPropertyNames());
def path = System.getProperty('com.android.studio.gradle.project.path');
if ( path != null ) {
logger.warn("collect/settings.gradle Found value for System.getProperty('com.android.studio.gradle.project.path')");
gradle.ext.workspacePath = (new File(path)).getParentFile().getAbsolutePath();
} else {
logger.warn("collect/settings.gradle No value found for System.getProperty('com.android.studio.gradle.project.path')");
gradle.ext.workspacePath = new File("..").getAbsolutePath();
}
}

logger.warn('collect/settings.gradle -- gradle.ext.workspacePath: ' + gradle.ext.workspacePath)

gradle.ext.local = gradle.ext.workspacePath + '/gradle-config/remote.gradle'
gradle.ext.remote = 'https://raw.githubusercontent.com/opendatakit/gradle-config/' + gradle.ext.gradleConfigVersion + '/remote.gradle'
gradle.ext.useLocal = true // set to false to always build against remote artifacts

if ((new File(gradle.ext.local)).exists()) {
gradle.ext.useLocalPaths = true
apply from: gradle.ext.local
} else {
gradle.ext.useLocalPaths = false
apply from: gradle.ext.remote
}

settingsScripts.each {
apply from: it
}

include(collectProjectChild)
include ':collect_app'

0 comments on commit 717ce6e

Please sign in to comment.