I was planning to work on a fix tomorrow (London time).
On Tue, Feb 10, 2015, 18:55 Joe Hansche jhans...@meetme.com wrote:
This is related to the Unit Test support being added to Gradle 1.1.0, and
the linked bug report [1].
The problem appears to be that the compileVariantUnitTestJava task
Hi Florian,
The unit testing support is not meant to replace running tests on a device,
they allow you to write a new kind of tests with a shorter iteration time.
Most likely, you won't be able to easily convert your existing tests to
unit tests that mock out all the platform code.
So in short:
In unit tests, you can use Mockito to create a mock instance of Resources
that will return the values you specify. This way you only test your
unit, not the resources setup. It's not possible to use the real Android
logic for grabbing resources from an APK - this logic only runs on a device.
On
Hi Tom,
Of course, this is not expected. Can you file a bug at
https://code.google.com/p/android/issues/entry?template=Tools%20bug%20report
? Please provide more detail, ideally your build.gradle file as-is.
Thanks,
Michal
On Wed, Apr 1, 2015 at 8:45 AM Tom Billiet tom.bill...@gmail.com wrote:
RecyclerView is part of the support library - at current stage we only
process the platform android.jar. In the future we will look at stripping
the final modifiers from other dependencies.
Michal
On Sat, Feb 28, 2015 at 7:03 AM Joris Schutijzer joris.schutij...@gmail.com
wrote:
Hi,
We are
I'm not sure what exactly do you mean by told. 1.3 will come with an
:app:sourceSets task that prints out something in this form:
Project :app
androidTest
---
Compile
This is about running from Studio, not gradle. Please see
http://b.android.com/156256, it should be fixed in the 1.3 timeframe.
Thanks,
Michal
On Sat, Apr 18, 2015 at 1:58 AM Xavier Ducrohet x...@android.com wrote:
This seems broken. I've tried it on the latest 1.2 beta and it's not the
It controls which densities are used for generating PNGs from vector XMLs,
so if you set defaultConfig.generatedDensities = ["xhdpi", "xxhdpi"] you
will only get two PNGs per XML.
See the DSL reference
You will have to do something like this:
android {
applicationVariants.all { v -
def myTask = tasks.create(custom + v.name) {
// do stuff
}
myTask.dependOn v.assemble
// or myTask.dependOn tasks.getByName(assemble + v.name.capitalize)
}
}
You may find some
Yeah, the code paths are different depending on the version of build tools
and we missed that initially. It will be fixed in the next version.
On Thu, Nov 19, 2015 at 11:38 AM Joe Bowbeer wrote:
> Suppressing these warnings by any means that is effective is fine with me
>
Updated.
On Friday, February 26, 2016 at 5:21:54 PM UTC, Csaba Kozák wrote:
>
> Hey,
>
> thanks for the answer!
>
> I agree, this is better that Instant Run does not break tools and
> libraries due to manifest change.
> I will remove our workaround from our lib, then.
>
> BTW, the format of our
The Gradle plugin should compile your code with the old tools if you
request unit tests to run (even if you have enabled jack and your APKs are
built using jack). If it doesn't work for you, please file a bug.
Michal
On Friday, March 11, 2016 at 4:33:43 AM UTC, Artem Zinnatullin wrote:
>
>
I filed http://b.android.com/210923 and will have a look at it.
Thanks,
Michal
On Wednesday, May 18, 2016 at 8:23:34 PM UTC+1, Joe Bowbeer wrote:
>
> I'm noticing in some builds on Jenkins (but never in local builds), that
> the proguardFiles specified in a custom buildType are appended out of
@Keep is recognized by "-keep" rules in the default ProGuard files, which
means the names will be preserved as well, right?
Michal
On Friday, May 20, 2016 at 2:56:02 PM UTC+1, Tomáš Procházka wrote:
>
> @Keep annotation is very usefull, you mentioned it on the I/O as new think
> bat id exist
Hi!
Sorry for a late reply. We missed the ZipAlign problem, thanks for
reporting, we'll investigate. VariantDependencies is not a public API so we
reserve the right to break it, sorry. What exactly is your use case for
using it?
Michal
On Monday, July 11, 2016 at 5:14:39 PM UTC+1, Tomáš
You may be interested in checking out the new "auto-download" feature in
our Gradle plugin 2.2: it will download missing SDK components required for
the build, assuming you copy the accepted license files from $ANDROID_HOME
to the CI server. Only works from the command line for now.
Michal
On
You need to copy (applicable) $ANDROID_HOME/license/* files to the CI
server and that should be enough. Gradle should be able to download the
required platform and build tools as well as update extras/google,
extras/android repositories and install packages in the new
extras/m2repository format
We release the source code of the plugin after every stable release, so the
2.2 source code is not available yet.
The only way in which we expose the final, effective dependency graph is in
"the model". What you can try to do is use Gradle's Tooling API to get the
model, i.e. an instance of the
What scripts are you talking about? local.properties are not meant to be
checked-in to your VCS, hence we don't expect them to exist in a CI
environment for instance.
Michal
On Tuesday, November 29, 2016 at 11:45:57 PM UTC, Artem Zinnatullin wrote:
>
> At the moment Android Gradle Plugin looks
So are you copying the entire project to a remote machine or just
substituting certain tasks to run there? If the former, you should skip
local.properties when copying. If the latter, than it seems you have
control over the task, so you can change the compile classpath?
Michal
On Wednesday,
I'm sorry for not getting back to you sooner. I was unable to reproduce it:
when I use the test APK R class (com.myapp.test.R), I can still reference
resources from an androidTestCompile dependency. When you say "tests do not
compile", you mean javac failure or aapt failure?
Michal
On
21 matches
Mail list logo