+1
I've also added Gradle wrapper in my pull request with support for
Discobot (Groovy on Android) project:
https://github.com/jvoegele/gradle-android-plugin/pull/30
Marcin
org.gradle.api.LocationAwareException: Execution failed for task ':androidPackage'. at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:85) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:114) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80) at org.gradle.initialization.DefaultGradleLauncher$run.call(Unknown Source) at com.jvoegele.gradle.android.support.TestProject.runTasks(TestProject.groovy:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:226) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145) at com.jvoegele.gradle.android.support.TestProject.runTasks(TestProject.groovy:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:226) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) at com.jvoegele.gradle.android.HelloProjectTest.build(HelloProjectTest.groovy:10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:51) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:63) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:75) at $Proxy3.processTestClass(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.messaging.remote.internal.TypeCastDispatch.dispatch(TypeCastDispatch.java:30) at org.gradle.messaging.remote.internal.WorkerProtocol.handleIncoming(WorkerProtocol.java:53) at org.gradle.messaging.remote.internal.WorkerProtocol.handleIncoming(WorkerProtocol.java:31) at org.gradle.messaging.remote.internal.ProtocolStack$ProtocolStage.handleIncoming(ProtocolStack.java:167) at org.gradle.messaging.remote.internal.ProtocolStack$BottomStage.handleIncoming(ProtocolStack.java:277) at org.gradle.messaging.remote.internal.ProtocolStack$BottomConnection$1.run(ProtocolStack.java:299) at org.gradle.messaging.remote.internal.ProtocolStack$ExecuteRunnable.dispatch(ProtocolStack.java:120) at org.gradle.messaging.remote.internal.ProtocolStack$ExecuteRunnable.dispatch(ProtocolStack.java:116) at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132) at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33) at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72) at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':androidPackage'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42) at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:243) at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:192) at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:177) at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:83) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:36) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:70) at org.gradle.execution.DefaultBuildExecuter.access$300(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:80) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:70) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:63) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:157) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112) ... 74 more Caused by: : com.android.sdklib.build.ApkCreationException: Failed to create '/home/ladicek/work/gradle-android-plugin/build/resources/integrationTest/androidProjects/hello/build/distributions/hello-1.0.apks': No such file or directory at com.android.ant.ApkBuilderTask.execute(ApkBuilderTask.java:390) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at groovy.util.AntBuilder.performTask(AntBuilder.java:260) at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:220) at org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:71) at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147) at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:170) at org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:86) at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64) at org.gradle.api.internal.project.DefaultAntBuilder.super$3$invokeMethod(DefaultAntBuilder.groovy) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1054) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128) at org.gradle.api.internal.project.DefaultAntBuilder.invokeMethod(DefaultAntBuilder.groovy:37) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) at com.jvoegele.gradle.tasks.android.ApkBuilderTask_r14.execute(ApkBuilderTask_r14.groovy:20) at com.jvoegele.gradle.tasks.android.ApkBuilderTask_r14$execute.call(Unknown Source) at com.jvoegele.gradle.tasks.android.AndroidPackageTask.createPackage(AndroidPackageTask.groovy:117) at com.jvoegele.gradle.tasks.android.AndroidPackageTask.process(AndroidPackageTask.groovy:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1054) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884) at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158) at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93) at com.jvoegele.gradle.tasks.android.AndroidPackageTask_Decorated.invokeMethod(Unknown Source) at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source) at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:129) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:127) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:63) ... 95 more Caused by: com.android.sdklib.build.ApkCreationException: Failed to create '/home/ladicek/work/gradle-android-plugin/build/resources/integrationTest/androidProjects/hello/build/distributions/hello-1.0.apks': No such file or directory at com.android.sdklib.build.ApkBuilder.checkOutputFile(ApkBuilder.java:865) at com.android.sdklib.build.ApkBuilder.init(ApkBuilder.java:429) at com.android.sdklib.build.ApkBuilder.<init>(ApkBuilder.java:388) at com.android.ant.ApkBuilderTask.execute(ApkBuilderTask.java:333) ... 138 more
> The integration tests are failing with the combination of PR30, as I only branched the R14 changes from master. I tested that this morning. I'll rebase the R14 changes based on the current master and make the necessary changes to get R14 to work.
Thanks! Will have a look at it when it's ready.
LT
Okay, I decided to go bold and merge some stuff. I didn't do much of testing, but integration tests are OK with Android SDK r13 for me.
First, the Discobot patches are in! I'm terribly sorry for the delay, guys, and thank you VERY MUCH for your effort and patience. I think Marcin should get a commit bit because of this huge contribution!
Next, Ealden's patches for Gradle 1.0 m5 and for IntelliJ IDEA are in. Small and contained, nice to review. Thanks!I added a Wrapper task and (re)generated the wrapper script for 1.0 m6. I propose that 1.0 m6 is our required version. (I will add a note to README soon.)
I tried to merge Ealden's patches for Android SDK r14, but integration tests were failing for me, both on r14 and r15. Stacktrace is below. I'd LOVE to have SDKs r14+ supported, but this doesn't seem to work for me (yet). It would be GREAT if someone took a look at this -- my personal interest in Android is close to zero nowadays...
Comments? Thoughts? Ideas? Problems?
One question: integration tests are failing for me, complaining about some Android classes not present (sorry I have not the stack trace here and cannot reproduce now). I searched in the readme and the online wiki but I didn't find anything, what am I supposed to supply in order to get a full build working?
20:31:29.088 [ERROR] [org.gradle.BuildExceptionReporter] Cause: There were failing tests. See the report at /home/fabio/devel/git-indigo/gradle-android-plugin/build/reports/tests.
Thank you very much. Especially as you've said that you don't have much
interest in Android at the moment. The project and you will probably get
mentioned during our talk on Groovy & Grails Exchange in London next
month about our efforts on getting Groovy running on Android.
To be honest I think that giving me commit rights would be a step to
far. I also have little interest in Android and I don't think I would
ever use the rights. It's a little bit selfish but we actually only
needed the fixes so that we are able now to build conceptual Groovy apps
for Android. I only added a bit more than what was necessary for us to
at least give something back to the project;).
Thanks again,
Marcin
Thank you very much. Especially as you've said that you don't have much interest in Android at the moment. The project and you will probably get mentioned during our talk on Groovy & Grails Exchange in London next month about our efforts on getting Groovy running on Android.
To be honest I think that giving me commit rights would be a step to far. I also have little interest in Android and I don't think I would ever use the rights.
Yes, I'm on r15 now.
Yes, I'm on r15 now.If it's only a matter of tests, I can live with it, by now.
Hi Ladislav,Thanks for the merge :-). The integration tests are failing with the combination of PR30, as I only branched the R14 changes from master. I tested that this morning. I'll rebase the R14 changes based on the current master and make the necessary changes to get R14 to work.Best regards,Ealden
Hi.
This works with R14 but will now fail on R13 as AndroidPlugin.androidSetup() is now specific to R14. I was thinking of extracting the contents of androidSetup() to an AndroidSetup class, so we can provide an _r14 specific one on top of what we had before. Is this a good idea?
Done the merging from your pull request. My problem is still there: it doesn't produce the zipaligned apk.It's weird because your previous branch (before the rebasing) worked well... there is some difference in the packaging process?
Also, I started porting Spring's Android Samples project (spring-android-showcase) to Gradle so I have a not-so-simple Android project to test on. I'm hoping to duplicate the problems that you are seeing. I have a branch that works with the current 1.0.0 gradle-android-plugin:I had to comment out androidSignAndAlign however as Gradle is returning the error below. I have 1.0-milestone-6 and R13 currently. Any ideas if I configured it wrong? The values I used are from http://developer.android.com/guide/publishing/app-signing.htmlCause: Could not find method androidSignAndAlign() for arguments [build_4r0592k3l1i38ghjuigmfulrnn$_run_closure5@6e4d4d5e] on root project 'client'.
That's actually the only scenario where the commit rights could prove
quite useful so maybe indeed it's not such a bad idea!
Marcin
This works with R14 but will now fail on R13 as AndroidPlugin.androidSetup() is now specific to R14. I was thinking of extracting the contents of androidSetup() to an AndroidSetup class, so we can provide an _r14 specific one on top of what we had before. Is this a good idea?Yes. As you've noted, this approach is already used and I personally find it simple and satisfying.
I've opened a pull request for this: https://github.com/jvoegele/gradle-android-plugin/pull/35
I've opened a pull request for this: https://github.com/jvoegele/gradle-android-plugin/pull/35
I'll try to have a look at it this evening.
Oh, now I see that your first pull request was already merged (by Fabio I guess?), that's great!
Can someone confirm that the old signing method is not working anymore (and the new one is expected to work)?
Can someone confirm that the old signing method is not working anymore (and the new one is expected to work)?It should be working, you should still be able to specify signing configuration in androidPackage {...} closure. If not, it's a bug and must be fixed.
I'm assuming that the "old" method is to use androidPackage {} instead of the current androidSignAndAlign {}, as I dug up from the history in README.md:
Either androidPackage and androidSignAndAlign works with my test build.gradle, with R13, R14, or R15:
Hi,I'm assuming that the "old" method is to use androidPackage {} instead of the current androidSignAndAlign {}, as I dug up from the history in README.md:On Wed, Nov 23, 2011 at 5:31 PM, Ladislav Thon <lad...@gmail.com> wrote:Can someone confirm that the old signing method is not working anymore (and the new one is expected to work)?It should be working, you should still be able to specify signing configuration in androidPackage {...} closure. If not, it's a bug and must be fixed.
Either androidPackage and androidSignAndAlign works with my test build.gradle, with R13, R14, or R15:
I'm interested to know if there are any differences with the configuration, but I pretty much copied the sample in README and used that. Stacktrace / copy of test failures would be helpful too.
I've opened a pull request for this: https://github.com/jvoegele/gradle-android-plugin/pull/35
I'll try to have a look at it this evening.
OK. Integration tests are passing for me both on Android SDK r15 and r13 (actually, not exactly r13, it's r15 with tools/ directory from r13 but platform-tools/ still from r15 -- fuck, I should have backed up my SDK r13 directory before upgrading... but still) and my simple app builds and installs to a device just fine.
So -- I pushed this. Ealden, thanks for your contribution! I propose you get a commit bit too, in addition to Marcin.Now, let's get Fabio's problems solved and then do new release (1.1.0 or 1.0.1?) with support for Ice Cream Sandwich SDK. It's badly needed, I guess.
Heh, the older SDKs are still available if you enter their URLS directly. I ended up getting all of them, making sure I didn't upgrade the SDK tools, and switching between them through symlinks. A bit tedious but I guess that's part of dealing with Android development.
We're using gradle-android-plugin for all our Android projects here at work
I've opened a pull request for this: https://github.com/jvoegele/gradle-android-plugin/pull/35
I'll try to have a look at it this evening.OK. Integration tests are passing for me both on Android SDK r15 and r13 (actually, not exactly r13, it's r15 with tools/ directory from r13 but platform-tools/ still from r15 -- fuck, I should have backed up my SDK r13 directory before upgrading... but still) and my simple app builds and installs to a device just fine.
So -- I pushed this. Ealden, thanks for your contribution! I propose you get a commit bit too, in addition to Marcin.
Now, let's get Fabio's problems solved and then do new release (1.1.0 or 1.0.1?) with support for Ice Cream Sandwich SDK. It's badly needed, I guess.
So -- I pushed this. Ealden, thanks for your contribution! I propose you get a commit bit too, in addition to Marcin.+1 for me. About this... who can give the commit bit? Only Jason?
Now, let's get Fabio's problems solved and then do new release (1.1.0 or 1.0.1?) with support for Ice Cream Sandwich SDK. It's badly needed, I guess.I vote for 1.1.0. There were many improvements in the last pull requests.
As I said, I'll work to fix my project tomorrow. Of course I'll post here as soon as I have news.
Are they? I managed to download older SDK tools archives, but whole SDKs (meaning the whole android-sdk-linux_x86 directory with tools, platform-tools, docs etc.)? I'll try to investigate some more, because I'd love to have some older SDKs installed...
Yes. Just replace the release number from the download link, like so:Releases older than R14 seems to have that _x86 bit, but later ones don't. I then create a "platforms" directory and symlink it from each of the release. Apparently older releases couldn't download SDKs, so I rely on the latest release to download, and share them to the older releases via the symlink.Just make sure not to upgrade the SDK from the older releases :-)
The original task took care of signing and zipaligning.
This is the reason of my actual build failure. You said it was working
for you, maybe you have a build.gradle that doesn't request to have a
final signed apk? Otherwise I cannot understand how it can work...
Anyway, I'm doing the migration to the new task.
Fabio
> https://github.com/ealden/spring-android-samples/tree/android-r14-sup...
>
> --
> Ealden Escañanhttp://ealden.net
After a bit more digging, I'm realizing that the original task,
AndroidPackage, don't sign anymore. That is: it creates the unsigned
apk, than stops.
The original task took care of signing and zipaligning.
I didn't think about this situation before, I thought that people would depend on 'assemble' or 'build' or some of these...
Yes, as you thought, I do depend on androidPackage building the actual apk. I do this because I want to calculate the crc for the dex file into the apk, then put the crc into a property file then rebuild the apk with the final property crc-ed file.
Of course, now it's broken. I think I have to duplicate the two tasks now, creating androidRepackage and androidResignAndRealign, and setting dependencies accordingly. It's not a problem... if it works.
So we have a partial breaking change... for this, I think it would be appropriate to release a 1.1.0 version. What do you think about it?
Let's think about it some more, maybe we can come up with nicer solution that would work for Marcin too. I would hate to do so, but reverting breaking changes is always a possibility.LT
2011/11/25 Ladislav Thon <lad...@gmail.com>
Hi guys, sorry I haven't been following this thread too very closely but I do know that I need to step in and take care of a couple of things. I'll try to get to that tomorrow. Thanks for your patience. :-)
--
Jason Voegele
"Cogito ergo I'm right and you're wrong."
-- Blair Houghton
> In my Android project I have a "normal" resource file, that is a .properties file in /src/main/resources.
We should put this situation in our test suite. But I won't get to programming for next two days, I think.
LT