Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Move store example to a new Gradle project #22

Merged
merged 9 commits into from Dec 19, 2014
Merged

Move store example to a new Gradle project #22

merged 9 commits into from Dec 19, 2014

Conversation

danielpassos
Copy link
Collaborator

This PR:

  • Move the store example to a new project
  • Migrate the store example from Maven to Gradle
  • Update the store example to new AeroGear Android Module

For test it you can:

  1. Run from command line
gradle clean build
gradle installDebug
  1. Open project in Android Studio 1.0

@danielpassos
Copy link
Collaborator Author

@danielpassos @qmx Wanna take a look?

@matzew
Copy link
Contributor

matzew commented Dec 17, 2014

running gradle clean build, I am getting:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find com.android.support:appcompat-v7:21.0.2.
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.2/appcompat-v7-21.0.2.pom
         https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.2/appcompat-v7-21.0.2.jar
         file:/Users/matzew/.m2/repository/com/android/support/appcompat-v7/21.0.2/appcompat-v7-21.0.2.pom
         file:/Users/matzew/.m2/repository/com/android/support/appcompat-v7/21.0.2/appcompat-v7-21.0.2.jar
         file:/Users/matzew/ANDROID_HOME/current/extras/android/m2repository/com/android/support/appcompat-v7/21.0.2/appcompat-v7-21.0.2.pom
         file:/Users/matzew/ANDROID_HOME/current/extras/android/m2repository/com/android/support/appcompat-v7/21.0.2/appcompat-v7-21.0.2.jar
         file:/Users/matzew/ANDROID_HOME/current/extras/google/m2repository/com/android/support/appcompat-v7/21.0.2/appcompat-v7-21.0.2.pom
         file:/Users/matzew/ANDROID_HOME/current/extras/google/m2repository/com/android/support/appcompat-v7/21.0.2/appcompat-v7-21.0.2.jar
     Required by:
         CarStore:app:unspecified
   > Could not find org.jboss.aerogear:aerogear-android-security:2.0.0-SNAPSHOT.
     Searched in the following locations:
         https://jcenter.bintray.com/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/maven-metadata.xml
         https://jcenter.bintray.com/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.pom
         https://jcenter.bintray.com/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.aar
         file:/Users/matzew/.m2/repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/maven-metadata.xml
         file:/Users/matzew/.m2/repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.pom
         file:/Users/matzew/.m2/repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.aar
         file:/Users/matzew/ANDROID_HOME/current/extras/android/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/maven-metadata.xml
         file:/Users/matzew/ANDROID_HOME/current/extras/android/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.pom
         file:/Users/matzew/ANDROID_HOME/current/extras/android/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.aar
         file:/Users/matzew/ANDROID_HOME/current/extras/google/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/maven-metadata.xml
         file:/Users/matzew/ANDROID_HOME/current/extras/google/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.pom
         file:/Users/matzew/ANDROID_HOME/current/extras/google/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.aar
     Required by:
         CarStore:app:unspecified > org.jboss.aerogear:aerogear-android-store:2.0.0-SNAPSHOT

Perhaps we should be using the released 2.0.0-alpha.1 versions, instead of -SNAPSHOT ?

@danielpassos
Copy link
Collaborator Author

@matzew You probably does not have specific support library 21.0.2. I've updated the project to use 21 or more. Could you give it a try?

@danielpassos danielpassos mentioned this pull request Dec 17, 2014
@matzew
Copy link
Contributor

matzew commented Dec 17, 2014

now getting:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not find org.jboss.aerogear:aerogear-android-security:2.0.0-SNAPSHOT.
     Searched in the following locations:
         https://jcenter.bintray.com/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/maven-metadata.xml
         https://jcenter.bintray.com/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.pom
         https://jcenter.bintray.com/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.aar
         file:/Users/matzew/.m2/repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/maven-metadata.xml
         file:/Users/matzew/.m2/repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.pom
         file:/Users/matzew/.m2/repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.aar
         file:/Users/matzew/ANDROID_HOME/current/extras/android/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/maven-metadata.xml
         file:/Users/matzew/ANDROID_HOME/current/extras/android/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.pom
         file:/Users/matzew/ANDROID_HOME/current/extras/android/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.aar
         file:/Users/matzew/ANDROID_HOME/current/extras/google/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/maven-metadata.xml
         file:/Users/matzew/ANDROID_HOME/current/extras/google/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.pom
         file:/Users/matzew/ANDROID_HOME/current/extras/google/m2repository/org/jboss/aerogear/aerogear-android-security/2.0.0-SNAPSHOT/aerogear-android-security-2.0.0-SNAPSHOT.aar
     Required by:
         CarStore:app:unspecified > org.jboss.aerogear:aerogear-android-store:2.0.0-SNAPSHOT

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

@matzew
Copy link
Contributor

matzew commented Dec 17, 2014

just wondering, why not depending on the released 2.0.0-alpha.1 release, instead of -SNAPSHOT ?

@danielpassos
Copy link
Collaborator Author

@matzew Because I want to test what we are doing in snapshot to 2.0.0 (final)

@abstractj
Copy link
Contributor

@danielpassos @matzew I think by master it means pretty much under development (not released yet), so as long have instructions to build it, I'm fine on merging

@matzew
Copy link
Contributor

matzew commented Dec 17, 2014

ok, I would be expecting that a cookbook is for new users, and ready to walk away with a running sample, instead of building all the things first :)

@secondsun
Copy link
Contributor

@matzew And it will be in the release. We'll even have nice links to zips and tags for the n00bs.

@matzew
Copy link
Contributor

matzew commented Dec 17, 2014

So, if this really needs to be going against latest greatest from master, and not against a stable release. Let's perhaps state that here:

https://github.com/danielpassos/aerogear-android-cookbook/tree/CarStore/CarStore#1-build-application

@matzew
Copy link
Contributor

matzew commented Dec 17, 2014

@matzew And it will be in the release. We'll even have nice links to zips and tags for the n00bs.

ok, let's at least doc this, I think

@danielpassos
Copy link
Collaborator Author

Added some Material Design things 😎

CarStore screenshot

@secondsun secondsun merged commit 224f68f into aerogear:master Dec 19, 2014
@danielpassos danielpassos deleted the CarStore branch December 19, 2014 22:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants