apphance / Apphance-MobilE-Build-Automation

Mobile Build Automation for iOS, Android and Windows Phone. Maintained by Apphance.
http://ameba.apphance.com
Other
18 stars 5 forks source link

Cannot get property 'value' on null object #14

Closed pouljohn1 closed 10 years ago

pouljohn1 commented 10 years ago

When building framework project, apphance flow tries to get version code from project plist. Problem is that framework may not have plist. In addition AbstractIOSVariant.groovy:getPlist() method use LAUNCH_ACTION instead of BUILD_ACTION for framework.

When releasing this project everything works fine - in this situation we get version code from jenkins version.

peon-pasado-zeitnot commented 10 years ago

I tried adding simple bash script before gradle build step: [ -z "$VERSION_CODE" ] && export VERSION_CODE=$BUILD_NUMBER

it didn't helped :(

Opalo commented 10 years ago

This is not an issue :) It's well known that there's no version code nor plist for framework variant. This what You need to do is to provide fake version code, as well as fake version string in build.gradle for instance.