-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename module library to mapzen-android-sdk * Rename module sample to mapzen-android-sdk-sample * Add core module * Add places module * Deploy places module * mapzen-android-sdk & mapzen-places-api depend on core module * Create places sample app module * Update sample app deploy scripts * Move sample projects into samples * Update deploy paths for new sample app locations * Deploy core module and update places & sdk to depend on maven artifact * Move label pick classes
- Loading branch information
1 parent
744c3da
commit 61968d0
Showing
184 changed files
with
462 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
[submodule "library/src/main/assets/styles/bubble-wrap"] | ||
path = library/src/main/assets/styles/bubble-wrap | ||
[submodule "mapzen-android-sdk/src/main/assets/styles/bubble-wrap"] | ||
path = mapzen-android-sdk/src/main/assets/styles/bubble-wrap | ||
url = https://github.com/tangrams/bubble-wrap.git | ||
[submodule "library/src/main/assets/styles/refill-more-labels"] | ||
path = library/src/main/assets/styles/refill-more-labels | ||
[submodule "mapzen-android-sdk/src/main/assets/styles/refill-more-labels"] | ||
path = mapzen-android-sdk/src/main/assets/styles/refill-more-labels | ||
url = https://github.com/tangrams/refill-style-more-labels.git | ||
[submodule "library/src/main/assets/styles/cinnabar-more-labels"] | ||
path = library/src/main/assets/styles/cinnabar-more-labels | ||
[submodule "mapzen-android-sdk/src/main/assets/styles/cinnabar-more-labels"] | ||
path = mapzen-android-sdk/src/main/assets/styles/cinnabar-more-labels | ||
url = https://github.com/tangrams/cinnabar-style-more-labels.git | ||
[submodule "library/src/main/assets/styles/walkabout-style-more-labels"] | ||
path = library/src/main/assets/styles/walkabout-style-more-labels | ||
[submodule "mapzen-android-sdk/src/main/assets/styles/walkabout-style-more-labels"] | ||
path = mapzen-android-sdk/src/main/assets/styles/walkabout-style-more-labels | ||
url = https://github.com/tangrams/walkabout-style-more-labels.git | ||
[submodule "library/src/main/assets/styles/zinc-style-more-labels"] | ||
path = library/src/main/assets/styles/zinc-style-more-labels | ||
[submodule "mapzen-android-sdk/src/main/assets/styles/zinc-style-more-labels"] | ||
path = mapzen-android-sdk/src/main/assets/styles/zinc-style-more-labels | ||
url = https://github.com/tangrams/zinc-style-more-labels.git |
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
maven { | ||
url 'https://plugins.gradle.org/m2/' | ||
} | ||
} | ||
dependencies { | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' | ||
classpath 'net.researchgate:gradle-release:2.4.0' | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'checkstyle' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'net.researchgate.release' | ||
|
||
group = GROUP | ||
version = VERSION_NAME | ||
project.archivesBaseName = POM_ARTIFACT_ID | ||
|
||
release { | ||
tagTemplate = 'mapzen-core${version}' | ||
versionPropertyFile = 'gradle.properties' | ||
versionProperties = ['VERSION_NAME'] | ||
newVersionCommitMessage = '[Gradle Release Plugin] - core new version commit:' | ||
} | ||
|
||
afterReleaseBuild.dependsOn uploadArchives | ||
|
||
android { | ||
compileSdkVersion 24 | ||
buildToolsVersion "24.0.3" | ||
|
||
defaultConfig { | ||
minSdkVersion 15 | ||
targetSdkVersion 24 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
testOptions { | ||
unitTests.returnDefaultValues = true | ||
} | ||
|
||
lintOptions { | ||
abortOnError false | ||
} | ||
} | ||
|
||
tasks.withType(Test) { | ||
testLogging { | ||
exceptionFormat "full" | ||
events "started", "skipped", "passed", "failed" | ||
showStandardStreams true | ||
} | ||
} | ||
|
||
task checkstyle(type: Checkstyle) { | ||
configFile file("${project.rootDir}/config/checkstyle/checkstyle.xml") | ||
source 'src' | ||
include '**/*.java' | ||
exclude '**/gen/**' | ||
|
||
classpath = files() | ||
} | ||
|
||
task verify(dependsOn: ['compileDebugSources', | ||
'test', | ||
'checkstyle', | ||
'lint']) | ||
|
||
apply from: rootProject.file('gradle/gradle-mvn-push.gradle') | ||
|
||
dependencies { | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version=0.0.1-SNAPSHOT | ||
|
||
POM_ARTIFACT_ID=mapzen-core | ||
POM_NAME=Mapzen Android Core | ||
POM_PACKAGING=aar | ||
|
||
GROUP=com.mapzen | ||
VERSION_NAME=0.0.1-SNAPSHOT | ||
|
||
POM_DESCRIPTION=Core classes used by the Mapzen Android SDK and Mapzen Places API. | ||
|
||
POM_URL=https://github.com/mapzen/android | ||
POM_SCM_URL=http://github.com/mapzen/android | ||
POM_SCM_CONNECTION=scm:git:git://github.com/mapzen/android.git | ||
POM_SCM_DEV_CONNECTION=scm:git:[email protected]:mapzen/android.git | ||
|
||
POM_LICENCE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt | ||
POM_LICENCE_DIST=repo | ||
|
||
POM_DEVELOPER_ID=Mapzen | ||
POM_DEVELOPER_NAME=Mapzen |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/sarahlensing/Library/Android/sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.mapzen.core"> | ||
|
||
<application android:allowBackup="true" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
> | ||
|
||
</application> | ||
|
||
</manifest> |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<resources> | ||
<string name="app_name">core</string> | ||
</resources> |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
maven { | ||
url 'https://plugins.gradle.org/m2/' | ||
} | ||
} | ||
dependencies { | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' | ||
classpath 'net.researchgate:gradle-release:2.4.0' | ||
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.1' | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'checkstyle' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'net.researchgate.release' | ||
|
||
group = GROUP | ||
version = VERSION_NAME | ||
project.archivesBaseName = POM_ARTIFACT_ID | ||
|
||
release { | ||
tagTemplate = 'mapzen-places-api-${version}' | ||
versionPropertyFile = 'gradle.properties' | ||
versionProperties = ['VERSION_NAME'] | ||
newVersionCommitMessage = '[Gradle Release Plugin] - mapzen-places-api new version commit:' | ||
} | ||
|
||
afterReleaseBuild.dependsOn uploadArchives | ||
|
||
|
||
android { | ||
compileSdkVersion 24 | ||
buildToolsVersion "24.0.3" | ||
|
||
defaultConfig { | ||
minSdkVersion 15 | ||
targetSdkVersion 24 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
testOptions { | ||
unitTests.returnDefaultValues = true | ||
} | ||
} | ||
|
||
tasks.withType(Test) { | ||
testLogging { | ||
exceptionFormat "full" | ||
events "started", "skipped", "passed", "failed" | ||
showStandardStreams true | ||
} | ||
} | ||
|
||
dependencies { | ||
compile 'com.android.support:appcompat-v7:24.2.1' | ||
compile 'com.mapzen:mapzen-core:0.0.1-SNAPSHOT' | ||
|
||
testCompile 'junit:junit:4.12' | ||
testCompile 'org.assertj:assertj-core:1.7.1' | ||
} | ||
|
||
|
||
apply from: rootProject.file('gradle/gradle-mvn-push.gradle') |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version=0.0.1-SNAPSHOT | ||
|
||
POM_ARTIFACT_ID=mapzen-places-api | ||
POM_NAME=Mapzen Places API | ||
POM_PACKAGING=aar | ||
|
||
GROUP=com.mapzen | ||
VERSION_NAME=0.0.1-SNAPSHOT | ||
|
||
POM_DESCRIPTION=Mapzen Places API. | ||
|
||
POM_URL=https://github.com/mapzen/android | ||
POM_SCM_URL=http://github.com/mapzen/android | ||
POM_SCM_CONNECTION=scm:git:git://github.com/mapzen/android.git | ||
POM_SCM_DEV_CONNECTION=scm:git:[email protected]:mapzen/android.git | ||
|
||
POM_LICENCE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt | ||
POM_LICENCE_DIST=repo | ||
|
||
POM_DEVELOPER_ID=Mapzen | ||
POM_DEVELOPER_NAME=Mapzen |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/sarahlensing/Library/Android/sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.mapzen.places.api"> | ||
|
||
<application android:allowBackup="true" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
> | ||
|
||
</application> | ||
|
||
</manifest> |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<resources> | ||
<string name="app_name">mapzen-places-api</string> | ||
</resources> |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
File renamed without changes.
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
sample/src/main/AndroidManifest.xml → ...d-sdk-sample/src/main/AndroidManifest.xml
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...n/android/sample/BasicMapzenActivity.java → ...droid/sdk/sample/BasicMapzenActivity.java
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
2 changes: 1 addition & 1 deletion
2
...roid/sample/CustomStylesheetActivity.java → .../sdk/sample/CustomStylesheetActivity.java
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
Oops, something went wrong.