From e6e2b9efc6b57ece326cdc2b47b45a89c8540238 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Tue, 20 May 2014 11:53:39 +0200 Subject: [PATCH] move app.version from config to xcodeconfig --- lib/motion/project/config.rb | 4 +--- lib/motion/project/xcode_config.rb | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/motion/project/config.rb b/lib/motion/project/config.rb index c37858a4..36d0a9bf 100644 --- a/lib/motion/project/config.rb +++ b/lib/motion/project/config.rb @@ -51,8 +51,7 @@ module Motion; module Project end end - variable :name, :files, :build_dir, :specs_dir, :resources_dirs, :version, - :motiondir + variable :name, :files, :build_dir, :specs_dir, :resources_dirs, :motiondir # Internal only. attr_accessor :build_mode, :spec_mode, :distribution_mode, :dependencies, @@ -83,7 +82,6 @@ module Motion; module Project @resources_dirs = [File.join(project_dir, 'resources')] @build_dir = File.join(project_dir, 'build') @specs_dir = File.join(project_dir, 'spec') - @version = '1.0' @detect_dependencies = true @exclude_from_detect_dependencies = [] end diff --git a/lib/motion/project/xcode_config.rb b/lib/motion/project/xcode_config.rb index c03ecaaa..3d2a16d3 100644 --- a/lib/motion/project/xcode_config.rb +++ b/lib/motion/project/xcode_config.rb @@ -30,7 +30,8 @@ module Motion; module Project; class XcodeConfig < Config variable :xcode_dir, :sdk_version, :deployment_target, :frameworks, :weak_frameworks, :framework_search_paths, :libs, :identifier, - :codesign_certificate, :short_version, :entitlements, :delegate_class + :codesign_certificate, :short_version, :entitlements, :delegate_class, + :version def initialize(project_dir, build_mode) super @@ -46,6 +47,7 @@ module Motion; module Project; @delegate_class = 'AppDelegate' @spec_mode = false @vendor_projects = [] + @version = '1.0' end def xcode_dir