Comments (6)
it needs to be scoped:
useProguard in Android := false
from android-plugin.
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.
it's probably an ordering issue. try setting useProguard after you add AndroidProject.androidSettings.
from android-plugin.
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.
shouldn't it be
useProguard in Android := false
?
from android-plugin.
'tschuldigung, mein Fehler..
you are right, it works.
Thanks a lot !
from android-plugin.
Related Issues (20)
- Scala 2.10.0 sbtPlugin HOT 1
- github integration obsolete
- Consuming android library projects from local file system (rather than maven repository) HOT 1
- Proguard problem scala 2.10 HOT 1
- Working with an android scala project? HOT 3
- Problem hacking on the plugin HOT 6
- Test dependencies aren't included in output apks. HOT 1
- Native Libraries are not included HOT 7
- Running sbt 'gen-idea no-classifiers' produces errors HOT 3
- 0.7 SNAPSHOT, ProGuard: include native method names by default HOT 5
- unresolved dependencies after update to sbt 0.13
- Support for aapt --rename-manifest-package HOT 2
- Compiler warnings in TR.scala HOT 1
- 0.7.1-SNAPSHOT: invalid /system/etc/permissions/scala-library-2.10.1.xml
- aapt not found [cause bad path in plugin] HOT 1
- Excess write HOT 4
- Complicated use of macro packages with android-plugin
- Missing Android SDK should be warning, or checked only when really needed.
- System keyring integration for apk signing HOT 4
- Is this still in use/maintained? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-plugin.