jberkel / android-plugin

An sbt plugin for Android development in Scala
https://groups.google.com/forum/#!forum/scala-on-android
Other
476 stars 113 forks source link

Search for .android / avd directory also in ANDROID_SDK_HOME (sdkPath) #106

Closed DaveGit closed 12 years ago

DaveGit commented 12 years ago

In Android.scala in

  val installedAvds = (s: State) => { 
    val avds = (Path.userHome / ".android" / "avd" * "*.ini").get 

    Space ~> avds.map(f => token(f.base)) 
                 .reduceLeftOption(_ | _).getOrElse(token("none")) 
  } 

Is het possible to make a fall back to look also in the ANDROID_SDK_HOME (I think it is sdkPath)? Because in windows the latest android sdk make the .android below that directory. Now I can only make an avd with the name "none".

jberkel commented 12 years ago

@DaveGit can you check if this works for you?

DaveGit commented 12 years ago

Yes, thanks. The avds are all listed now and I can start a created avd with the name for instance "Android-1.6"