hmm that's an interesting point. We pass to Studio whether an app is setup for signing or not to figure out whether we should allow deploying.
However this doesn't work well with custom signing setup. I've filed https://code.google.com/p/android/issues/detail?id=77061 to track the issue. On Fri, Oct 3, 2014 at 1:02 PM, Tomáš Procházka <[email protected]> wrote: > I finish my script for remote sign according yours example. > It works correctly from the command line. > > But I'm not able to run release Build Variant from the IDE. > I used "Build Variants" window in the IDE ans switch app module to > "release" > Then I simply pushed Run button and AS only displayed this error: > > "myapp-release.apk" is not signed. Please configure the signing > information to the selected flovour using Project Structure dialog". It > doesn't try to make build, also when I build it from the commandline and > myapp-release.apk > files exist in output folder, AS still display the same error. > > I don't need any signing information, because I'm using own sign taks, but > I tried to create fake sign config and use it in the release buildType > > release { > signingConfig signingConfigs.fake runProguard *false > * zipAlign *true > *} > > but it cause > > Error:(107, 0) ZipAlign task for variant 'release' already exists. > > Exist any solution for this? > > > Dne úterý, 23. září 2014 17:58:53 UTC+2 Xavier Ducrohet napsal(a): >> >> Here: https://gist.github.com/ducrohet/e0d854c54bd0ceeb7044 >> >> Then, all you have to do is create a SignApk task that does what you need >> (send the apk and get the result synchronously). >> >> On Tue, Sep 23, 2014 at 8:27 AM, Tomáš Procházka <[email protected]> >> wrote: >> >>> Thanks, I will try it. But some more detailed example would be useful >>> ;-) >>> >>> Dne pondělí, 22. září 2014 15:29:21 UTC+2 Jake Wharton napsal(a): >>>> >>>> We do this. >>>> >>>> If you don't give it a signing config it won't sign the release build. >>>> Then you can add a task which depends on packageRelease and on which >>>> assembleRelease depends. >>>> >>>> On Mon, Sep 22, 2014 at 6:09 AM, Tomáš Procházka <[email protected]> >>>> wrote: >>>> >>>>> It is possible to override sign process for release build? >>>>> I need do it remote, because developers has not private key. >>>>> I need to send unsigned APK to the remote server which will provide >>>>> signed APK in the reply. >>>>> It should by possible by Groovy but I don't know how to override sign >>>>> task provided by android plugin. >>>>> Did anybody already do something like this? >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "adt-dev" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "adt-dev" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Xavier Ducrohet >> Android SDK Tech Lead >> Google Inc. >> http://developer.android.com | http://tools.android.com >> >> Please do not send me questions directly. Thanks! >> > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
