Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1483A987D for ; Fri, 20 Jan 2012 00:01:24 +0000 (UTC) Received: (qmail 59055 invoked by uid 500); 20 Jan 2012 00:01:23 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 59032 invoked by uid 500); 20 Jan 2012 00:01:23 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 59022 invoked by uid 99); 20 Jan 2012 00:01:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 00:01:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shazron@gmail.com designates 209.85.161.175 as permitted sender) Received: from [209.85.161.175] (HELO mail-gx0-f175.google.com) (209.85.161.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 00:01:18 +0000 Received: by ggno1 with SMTP id o1so10551ggn.6 for ; Thu, 19 Jan 2012 16:00:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=FOYtLjrj8HLqT58G3z7RAOyLR13jVIlJdbW+n6LIx+4=; b=HTv1EaqrGI+8rvK4GGwEQpxqnsImtmJFVAihn0tGpjFhMHRwj1qapKUqrKcUkhXK3J gtmcATd0wVahUaLvo7131ob2gKWbYpzRylbtWzBG06IqUl1IDtGSokjY0XIBsJi2k9aO UzZb/bWRldrzZWO1D85ttuf7QRxhbdqjJOEJw= Received: by 10.50.156.138 with SMTP id we10mr27489260igb.10.1327017657303; Thu, 19 Jan 2012 16:00:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.33.133 with HTTP; Thu, 19 Jan 2012 16:00:16 -0800 (PST) From: Shazron Date: Thu, 19 Jan 2012 16:00:16 -0800 Message-ID: Subject: [iOS] Renaming from PhoneGap to Cordova To: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 I have a branch here where I have my changes related to renaming, and using the new icons: https://github.com/shazron/incubator-cordova-ios/tree/rename-pg-to-cordova PhoneGapLib --> CordovaLib PhoneGap-based Application --> Cordova-based Application /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework --> /Users/Shared/Cordova/Frameworks/Cordova.framework The only real issues are with _upgrades_. For an app using PhoneGapLib as a subproject, this will break. The fix is to rename the name of "PhoneGapLib" in the Project Navigator to "CordovaLib" and update other Build Phase items and it should just work. This relies on keeping the PHONEGAPLIB Xcode variable unchanged and still available. I purposely didn't do any fancy symlinking to make older projects work because it will just cause more problems. For an app using PhoneGap.framework, it should work as usual. I removed the old framework and symlinked it to the new one, as well as adding a symlink called 'PhoneGap' to the Cordova binary in the framework bundle. Some items that I didn't rename because of the headaches for upgraders: 1. PhoneGap.plist --> this is read explicitly to load app settings, the whitelist settings, and plugin settings. This file is included in each project, but read by the CordovaLib/Cordova.framework so it will break things if we changed the name. A fix would be to try to read from both the old and new files (fallback). 2. PhoneGapBuildSettings.xcconfig --> related to PHONEGAPLIB Xcode variable below 3. PHONEGAPLIB Xcode variable --> this only relates to projects using the PhoneGapLib sub-project. This variable is used in locating the PhoneGapLib folder, as well as location of the header files used in a project. There's no easy way to "upgrade" a user's existing project unless we require them to edit their .pbxproj file which is inside their .xcodeproj bundle (or provide a tool to do so). 1 and 2 can be worked around, 3 not so easily.