scala-android / sbt-android-protify

Live-coding and hot-deploy for Android
Apache License 2.0
136 stars 8 forks source link

Doesn't play nice with Gradle android's applicationIdSuffix #7

Closed ChaitanyaPramod closed 9 years ago

ChaitanyaPramod commented 9 years ago

For a build type, I've the following configuration:

applicationIdSuffix ".beta"

sbt trips up at that with the following:

[error] [/Users/ChaitanyaPramod/projects/android-client/00-gradle-generated.sbt]:589: ')' expected but '.' found.
[error] [/Users/ChaitanyaPramod/projects/android-client/00-gradle-generated.sbt]:594: ';' expected but ')' found.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

where the lines 589-594 of 00-gradle-generated.sbt are:

    TaskKey[java.lang.String]("applicationId") in config("android") := (applicationId in Android).value + .beta,
    SettingKey[scala.collection.Seq[java.io.File]]("sourceDirectories") in config("compile") += file(raw"""/Users/ChaitanyaPramod/projects/android-client/app/src/directi/java"""),
    SettingKey[scala.collection.Seq[java.io.File]]("extraResDirectories") in config("android") += file(raw"""/Users/ChaitanyaPramod/projects/android-client/app/src/directi/res"""),
    SettingKey[scala.collection.Seq[java.io.File]]("resourceDirectories") in config("compile") += file(raw"""/Users/ChaitanyaPramod/projects/android-client/app/src/directi/resources"""),
    SettingKey[scala.collection.Seq[java.io.File]]("extraAssetDirectories") in config("android") += file(raw"""/Users/ChaitanyaPramod/projects/android-client/app/src/directi/assets"""))))
      ).settings(
pfn commented 9 years ago

Sorry, that's a mistake, for now, you can quote it manually: TaskKey[java.lang.String]("applicationId") in config("android") := (applicationId in Android).value + ".beta",

I will release a new version of GradleBuild on Monday which fixes it.

pfn commented 9 years ago

android-gradle-build 1.1.4 is has been released.