Permalink
Browse files

[Add] Cordova 2.1.0

  • Loading branch information...
1 parent 727b4c2 commit 062bdac3d7c9c07b588f27d96d16729d5dfc13fb @jerolimov jerolimov committed Sep 13, 2012
Showing with 34 additions and 0 deletions.
  1. +34 −0 Cordova/2.1.0/Cordova.podspec
View
34 Cordova/2.1.0/Cordova.podspec
@@ -0,0 +1,34 @@
+Pod::Spec.new do |s|
+ s.name = "Cordova"
+ s.version = "2.1.0"
+ s.summary = "Apache Cordova is a platform for building native mobile applications using HTML, CSS and JavaScript."
+ s.homepage = "http://incubator.apache.org/cordova/"
+ s.author = "Original developed by Nitobi (acquire by Adobe) and all other PhoneGap and Cordova Contributors"
+
+ s.license = 'Apache License, Version 2.0'
+
+ s.source = { :git => "http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios.git", :tag => "2.1.0" }
+# s.source = { :git => "https://github.com/apache/incubator-cordova-ios.git", :tag => "2.1.0" }
+ s.source_files = 'CordovaLib/Classes/*.{h,m}'
+ s.resources = 'CordovaLib/javascript/*.js', 'CordovaLib/VERSION'
+
+ s.platform = :ios, '4.3'
+ s.requires_arc = true
+
+ # TODO: Missing AddressBookUI here, but CocoaPods generates incorrect OTHER_LDFLAGS in Pods/Pods.xcconfig. Will analyse this soon..
+ # OTHER_LDFLAGS = -ObjC UI -framework AVFoundation <- incorrect UI argument here!
+
+ s.frameworks = 'AddressBook', 'AudioToolbox', 'AVFoundation', 'CoreLocation', 'MediaPlayer', 'QuartzCore', 'SystemConfiguration', 'MobileCoreServices', 'CoreMedia', 'UIKit'
+
+ # Note: This is not the same like the original JSONKit. Cordova developers decide to integrate
+ # *a changed copy* (with prefixed class and method names) of it instead of using CocoaPods. :S
+ # But they missed to translate it like the main project to use ARC, yet.
+ s.subspec 'JSON' do |json|
+ json.source_files = 'CordovaLib/Classes/JSON/*.{h,m}'
+ json.platform = :ios, '4.3'
+ json.requires_arc = false
+ # TODO requires_arc does not work for subproject, so set compiler flag by hand until CocoaPods 0.15(?) will support this.
+ json.compiler_flags = '-fno-objc-arc'
+ end
+
+end

0 comments on commit 062bdac

Please sign in to comment.