Git Product home page Git Product logo

Comments (6)

jberkel avatar jberkel commented on July 21, 2024

it needs to be scoped:

useProguard in Android := false

from android-plugin.

weiju avatar weiju commented on July 21, 2024

Hi,

thanks for your reply. I actually tried that, with the setup below, based on a giter8-generated project. However this has no effect, the Proguard phase is executed (while I would have expected "Skipping Proguard").
In addition I also tried

val main = Project("MyProject", file("."), settings = General.fullAndroidSettings) settings(/* including settings with useProguard here */)

which did not have an effect either.

Best,

Wei-ju
===== SBT full configuration build.scala ====
import sbt._

import Keys._
import AndroidKeys._

object General {
val settings = Defaults.defaultSettings ++ Seq (
name := "MyProject",
version := "0.1",
scalaVersion := "2.9.1",
platformName in Android := "android-10",
useProguard in Android := true
)

lazy val fullAndroidSettings =
General.settings ++
AndroidProject.androidSettings ++
TypedResources.settings ++
AndroidMarketPublish.settings ++ Seq (
keyalias in Android := "change-me",
libraryDependencies += "org.scalatest" %% "scalatest" % "1.6.1" % "test"
)
}

object AndroidBuild extends Build {

lazy val main = Project (
"MyProject",
file("."),
settings = General.fullAndroidSettings
)

lazy val tests = Project (
"tests",
file("tests"),
settings = General.settings ++ AndroidTest.androidSettings
) dependsOn main
}

from android-plugin.

jberkel avatar jberkel commented on July 21, 2024

it's probably an ordering issue. try setting useProguard after you add AndroidProject.androidSettings.

from android-plugin.

weiju avatar weiju commented on July 21, 2024

Setting it like below still invokes Proguard...

...
lazy val fullAndroidSettings =
General.settings ++
AndroidProject.androidSettings ++
TypedResources.settings ++
AndroidMarketPublish.settings ++ Seq (
keyalias in Android := "change-me",
libraryDependencies += "org.scalatest" %% "scalatest" % "1.6.1" % "test"
) ++ Seq(
useProguard in Android := true
)
....

from android-plugin.

jberkel avatar jberkel commented on July 21, 2024

shouldn't it be

useProguard in Android := false

?

from android-plugin.

weiju avatar weiju commented on July 21, 2024

'tschuldigung, mein Fehler..

you are right, it works.

Thanks a lot !

from android-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.