forked from getodk/collect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to remove some of the ODK team's specific workflow from Collect. Many of the power user features the core ODK team relies on aren't necessary for Collect. In the interest of keeping the setup as simple as possible, this removes all remote configs and removes signing parameters from the gradle files.
- Loading branch information
Showing
3 changed files
with
20 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |