Permalink
Browse files

Remove unused app files

  • Loading branch information...
1 parent db43d88 commit b2a75eaa7b2cc81ef6045038875da93830e87ecb Dave Johnson committed Jul 12, 2011
Showing with 0 additions and 33,725 deletions.
  1. +0 −45 app/Makefile
  2. +0 −15 app/bin/build/android
  3. +0 −20 app/bin/build/android-copy-icons
  4. +0 −16 app/bin/build/blackberry
  5. +0 −3 app/bin/build/blackberry-copy-icons
  6. +0 −21 app/bin/build/ios
  7. +0 −184 app/bin/build/ios-add-plugins
  8. +0 −12 app/bin/build/ios-copy-icons
  9. +0 −5 app/bin/build/webos
  10. +0 −50 app/bin/create/android
  11. +0 −15 app/bin/create/android-convert-config
  12. +0 −21 app/bin/create/blackberry
  13. +0 −106 app/bin/create/ios
  14. +0 −16 app/bin/create/templates/android/Activity.java
  15. +0 −17 app/bin/create/templates/android/intents.xml
  16. BIN app/bin/create/templates/android/phonegap-0.9.4.jar
  17. +0 −4,227 app/bin/create/templates/android/phonegap-0.9.4.js
  18. +0 −254 app/bin/create/templates/blackberry/build.xml
  19. +0 −33 app/bin/create/templates/blackberry/config.xml
  20. BIN app/bin/create/templates/blackberry/ext/phonegap.0.9.4.jar
  21. BIN app/bin/create/templates/blackberry/img/icon.png
  22. BIN app/bin/create/templates/blackberry/img/icon_hover.png
  23. BIN app/bin/create/templates/blackberry/img/loading_foreground.png
  24. +0 −2,796 app/bin/create/templates/blackberry/javascript/phonegap-0.9.4.js
  25. +0 −8 app/bin/create/templates/blackberry/javascript/phonegap-0.9.4.min.js
  26. +0 −47 app/bin/create/templates/blackberry/lib/ant-contrib/LICENSE.txt
  27. BIN app/bin/create/templates/blackberry/lib/ant-contrib/ant-contrib-1.0b3.jar
  28. BIN app/bin/create/templates/blackberry/lib/phonegap.0.9.4/ext/phonegap.0.9.4.jar
  29. +0 −2,796 app/bin/create/templates/blackberry/lib/phonegap.0.9.4/javascript/phonegap.0.9.4.js
  30. +0 −8 app/bin/create/templates/blackberry/lib/phonegap.0.9.4/javascript/phonegap.0.9.4.min.js
  31. +0 −51 app/bin/create/templates/blackberry/project.properties
  32. +0 −6 app/bin/create/templates/ios/.gitignore
  33. +0 −16 app/bin/create/templates/ios/Classes/___PROJECTNAMEASIDENTIFIER___AppDelegate.h
  34. +0 −81 app/bin/create/templates/ios/Classes/___PROJECTNAMEASIDENTIFIER___AppDelegate.m
  35. BIN app/bin/create/templates/ios/Default-Landscape.png
  36. BIN app/bin/create/templates/ios/Default-Portrait.png
  37. BIN app/bin/create/templates/ios/Default.png
  38. +0 −14 app/bin/create/templates/ios/PhoneGap.plist
  39. +0 −8 app/bin/create/templates/ios/PhoneGapBuildSettings.xcconfig
  40. +0 −1 app/bin/create/templates/ios/Plugins/README
  41. +0 −49 app/bin/create/templates/ios/___PROJECTNAMEASIDENTIFIER___-Info.plist
  42. +0 −8 app/bin/create/templates/ios/___PROJECTNAMEASIDENTIFIER____Prefix.pch
  43. BIN app/bin/create/templates/ios/___PROJECTNAME___.xcodeproj/TemplateIcon.icns
  44. +0 −8 app/bin/create/templates/ios/___PROJECTNAME___.xcodeproj/TemplateInfo.plist
  45. +0 −451 app/bin/create/templates/ios/___PROJECTNAME___.xcodeproj/project.pbxproj
  46. BIN app/bin/create/templates/ios/icon-72.png
  47. BIN app/bin/create/templates/ios/icon.png
  48. BIN app/bin/create/templates/ios/icon@2x.png
  49. +0 −17 app/bin/create/templates/ios/main.m
  50. +0 −45 app/bin/create/templates/ios/www/index.html
  51. +0 −9 app/bin/create/templates/webos/appinfo.json
  52. +0 −16 app/bin/create/templates/webos/index.html
  53. +0 −41 app/bin/create/webos
  54. +0 −6 app/bin/debug/android
  55. +0 −6 app/bin/debug/blackberry
  56. +0 −7 app/bin/debug/ios
  57. +0 −5 app/bin/debug/webos
  58. +0 −3 app/bin/emulate/android
  59. +0 −3 app/bin/emulate/ios
  60. +0 −3 app/bin/emulate/webos
  61. +0 −3 app/bin/log/android
  62. +0 −5 app/bin/log/ios
  63. +0 −3 app/bin/log/webos
  64. +0 −15 app/bin/plugin/find
  65. +0 −28 app/bin/plugin/install
  66. +0 −3 app/bin/plugin/list
  67. +0 −5 app/bin/plugin/register
  68. +0 −3 app/bin/plugin/remove
  69. +0 −21 app/bin/plugin/shotgun/android
  70. +0 −29 app/bin/plugin/shotgun/ios
  71. +0 −44 app/bin/plugin/validate
  72. +0 −6 app/bin/test/android
  73. +0 −6 app/bin/test/ios
  74. +0 −5 app/bin/test/webos
  75. +0 −2,014 app/bin/util/BeautifulSoup.py
  76. +0 −66 app/bin/util/read-config
  77. +0 −42 app/bin/util/validate-config
  78. +0 −30 app/bin/util/version-index
  79. BIN app/bin/util/weinre.jar
  80. +0 −1 app/lib/README.md
  81. +0 −1 app/lib/plugin/README.md
  82. +0 −18 app/test/index.html
  83. +0 −215 app/test/qunit.css
  84. +0 −1,444 app/test/qunit.js
  85. +0 −314 app/test/test.js
  86. +0 −10 app/tmp/android/AndroidManifest.xml
  87. +0 −16 app/tmp/android/assets/www/config.xml
  88. +0 −4,551 app/tmp/android/assets/www/facebook.js
  89. BIN app/tmp/android/assets/www/icon.png
  90. +0 −131 app/tmp/android/assets/www/index.html
  91. +0 −4,227 app/tmp/android/assets/www/phonegap-0.9.4.js
  92. +0 −17 app/tmp/android/build.properties
  93. +0 −79 app/tmp/android/build.xml
  94. +0 −11 app/tmp/android/default.properties
  95. +0 −22 app/tmp/android/gen/com/phonegap/example/R.java
  96. BIN app/tmp/android/libs/facebook-android-sdk.jar
  97. BIN app/tmp/android/libs/phonegap-0.9.4.jar
  98. +0 −10 app/tmp/android/local.properties
  99. +0 −36 app/tmp/android/proguard.cfg
  100. BIN app/tmp/android/res/drawable-hdpi/icon.png
  101. BIN app/tmp/android/res/drawable-ldpi/icon.png
  102. BIN app/tmp/android/res/drawable-mdpi/icon.png
  103. +0 −13 app/tmp/android/res/layout/main.xml
  104. +0 −4 app/tmp/android/res/values/strings.xml
  105. +0 −137 app/tmp/android/src/com/facebook/phonegap/ConnectPlugin.java
  106. +0 −16 app/tmp/android/src/com/phonegap/example/ExampleApp.java
  107. +0 −16 app/tmp/android/src/com/phonegap/example/ExampleApp.java''
  108. +0 −13 app/tmp/ios.log
  109. +0 −6 app/tmp/ios/.gitignore
  110. +0 −16 app/tmp/ios/Classes/ExampleAppAppDelegate.h
  111. +0 −81 app/tmp/ios/Classes/ExampleAppAppDelegate.m
  112. BIN app/tmp/ios/Default-Landscape.png
  113. BIN app/tmp/ios/Default-Portrait.png
  114. BIN app/tmp/ios/Default.png
  115. +0 −49 app/tmp/ios/ExampleApp-Info.plist
  116. BIN app/tmp/ios/ExampleApp.xcodeproj/TemplateIcon.icns
  117. +0 −8 app/tmp/ios/ExampleApp.xcodeproj/TemplateInfo.plist
  118. +0 −451 app/tmp/ios/ExampleApp.xcodeproj/project.pbxproj
  119. +0 −8 app/tmp/ios/ExampleApp_Prefix.pch
  120. +0 −14 app/tmp/ios/PhoneGap.plist
  121. +0 −8 app/tmp/ios/PhoneGapBuildSettings.xcconfig
  122. BIN app/tmp/ios/icon-72.png
  123. BIN app/tmp/ios/icon.png
  124. BIN app/tmp/ios/icon@2x.png
  125. +0 −17 app/tmp/ios/main.m
  126. +0 −16 app/tmp/ios/www/config.xml
  127. +0 −4,551 app/tmp/ios/www/facebook.js
  128. BIN app/tmp/ios/www/icon.png
  129. +0 −131 app/tmp/ios/www/index.html
  130. +0 −3,169 app/tmp/ios/www/phonegap.0.9.5.js
  131. +0 −1 app/tmp/ios/www/phonegap.0.9.5.min.js
View
@@ -1,45 +0,0 @@
-all: help
-
-help:
- @echo try one of these commands:
- @echo " create .... writes out native code to ./tmp directory based on config.xml"
- @echo " debug ..... copies www, compiles native src, installs and launches"
- @echo " web ....... serve www at http://localhost:8000"
- @echo " weinre .... launch weinre at http://localhost:8080"
- @echo " test ...... compiles ./test into native"
- @echo " release ... this is for you to implement!"
- @echo " emulate ... launch platform emulators"
-
-create:
- # write out the source for each native platform
- # careful, this is destructive!!!
- ./bin/util/validate-config
- #./bin/create/blackberry
- ./bin/create/android
- ./bin/create/ios
-
-debug:
- #./bin/debug/blackberry
- ./bin/debug/android
- ./bin/debug/ios
-
-web:
- cd ./www && python -m SimpleHTTPServer
-
-weinre:
- java -jar ./bin/util/weinre.jar
-
-test:
- @echo "WARNING: Blackberry testing not yet implemented"
- ./bin/test/android
- ./bin/test/ios
-
-release:
- @echo TODO this would be a good place for shortlog for changelog, minificaiton, key signing, etc
-
-emulate:
- @echo "WARNING: Blackberry must be emulated on Windows"
- ./bin/emulate/android
- ./bin/emulate/ios
-
-.PHONY: all help create debug web weinre test log release emulate
View
@@ -1,15 +0,0 @@
-#! /bin/sh
-
-# copy in any icons
-./bin/build/android-copy-icons
-
-# add any ./lib/plugins/* native and web code to android project
-./bin/plugin/shotgun/android
-
-# since we clobber www every time we need to copy in phonegap.js ...
-cp ./bin/create/templates/android/phonegap-0.9.4.js ./tmp/android/assets/www/phonegap-0.9.4.js
-
-# finally run the actual build
-cd ./tmp/android && ant debug install
-
-# FIXME launch app here with monkeyrunner
@@ -1,20 +0,0 @@
-#! /bin/sh
-
-# copies in the largest icon defined in config.xml to android folders
-# FIXME need something better for android icons..
-
-largest=$(./bin/util/read-config large-icon)
-
-if [ ! -d ./tmp/android/res/drawable-hdpi ]; then
- mkdir ./tmp/android/res/drawable-hdpi
-fi
-if [ ! -d ./tmp/android/res/drawable-ldpi ]; then
- mkdir ./tmp/android/res/drawable-ldpi
-fi
-if [ ! -d ./tmp/android/res/drawable-mdpi ]; then
- mkdir ./tmp/android/res/drawable-mdpi
-fi
-
-cp $largest ./tmp/android/res/drawable-hdpi/icon.png
-cp $largest ./tmp/android/res/drawable-ldpi/icon.png
-cp $largest ./tmp/android/res/drawable-mdpi/icon.png
View
@@ -1,16 +0,0 @@
-#! /bin/sh
-
-PROJECT_NAME=$(./bin/util/read-config name | sed 's/ //g')
-
-#copy in any icons
-./bin/build/blackberry-copy-icons
-
-# add blackberry specfic config.xml and ext directory
-cp ./bin/create/templates/blackberry/config.xml ./tmp/blackberry/www/
-cp -r ./bin/create/templates/blackberry/ext ./tmp/blackberry/www/
-cp -r ./bin/create/templates/blackberry/javascript/phonegap-0.9.4.js ./tmp/blackberry/www/
-
-# change project name in config.xml
-sed -i "" "s/__PROJECTNAME__/$PROJECT_NAME/g" ./tmp/blackberry/www/config.xml
-
-echo "INFO: run \`ant load-simulator\` on Windows to launch Blackberry simulator"
@@ -1,3 +0,0 @@
-#! /bin/sh
-
-cp ./bin/create/templates/blackberry/img/* ./tmp/blackberry/www/img/
View
@@ -1,21 +0,0 @@
-#! /bin/sh
-
-# copy in the icons
-./bin/build/ios-copy-icons
-
-# copy ./lib/tmp/plugin/* into native and www in ./tmp
-./bin/plugin/shotgun/ios
-
-# update the xcode proj.pbxproj file
-./bin/build/ios-add-plugins
-
-# finally run the actual build
-NAME=$(./bin/util/read-config name | sed 's/ //g')
-PRJ="$NAME.xcodeproj"
-APP="build/Release-iphonesimulator/$NAME.app"
-
-cd ./tmp/ios
-xcodebuild -project $PRJ -sdk iphonesimulator4.2
-
-# kick up the simulator
-ios-sim launch $APP --stderr ./../ios.log --stdout ./../ios.log &
@@ -1,184 +0,0 @@
-#! /usr/bin/env ruby
-require 'ftools'
-#
-# thank you @alunny for suffering this before I had to - @brianleroux
-#
-# a little module for munging pbxproj files
-# with a stupid name
-module PabstProj
- # struct to contain all of the data for each file
- if !defined?(PluginFile)
- PluginFile = Class.new(Struct.new(:name, :type, :identifier, :fileref, :path))
-
- class PluginFile
- def group
- case self.type
- when :source
- "Sources"
- when :resource
- "Resources"
- end
- end
-
- def last_type
- case File.extname(self.name)
- when '.png'
- 'image.png'
- when '.m'
- 'sourcecode.c.objc'
- when '.h'
- 'sourcecode.c.h'
- when '.xib'
- 'file.xib'
- when '.plist'
- 'text.plist.xml'
- else
- 'text'
- end
- end
- end
- end
-
- XCODE_GUID_MATCH = /[0-9A-F]{24}/
- DELIMITERS = {
- :PBXBUILD_END => "/* End PBXBuildFile section */",
- :PBXFILEREF_END => "/* End PBXFileReference section */",
- :PBXGROUP_END => "\t\t\t);\n\t\t\tpath = Plugins;",
- :PBXRESOURCES_END => "\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase",
- :PBXSOURCES_END => "\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase"
- }
-
- attr_reader :guid_list, :source_files, :header_files, :resource_files
-
-
- def add_plugins plugins_dir, pbxproj
- read_all_guids pbxproj
-
- parse_all_filenames plugins_dir
-
- rewrite_project pbxproj
- end
-
- def read_all_guids pbxproj
- @guid_list = File.read(pbxproj).scan(XCODE_GUID_MATCH).uniq
- end
-
- def parse_all_filenames plugins_dir
- plugin_filepaths = Dir.glob("#{ plugins_dir }/**/*").select { |f| !File.directory? f }
- plugin_files = []
-
- plugin_filepaths.each do |filepath|
- name = File.basename(filepath)
- type = type_from_extn(File.extname(filepath))
-
- plugin_files << PluginFile.new(name, type, new_guid, new_guid, filepath)
- end
-
- @source_files = plugin_files.select { |f| f.type == :source }
- @header_files = plugin_files.select { |f| f.type == :header }
- @resource_files = plugin_files.select { |f| f.type == :resource }
- end
-
- def new_guid
- s4 = lambda { (100 + rand(899)).to_s }
- new_one = lambda do
- s4.call + s4.call + s4.call + s4.call + s4.call + s4.call + s4.call + s4.call
- end
- #new_one = UUIDTools::UUID.timestamp_create.to_s.gsub('-','').upcase[0,24]
- guid_list.include?(new_one) ? new_guid : new_one.call
- end
-
- def type_from_extn extn
- case extn
- when ".m"
- :source
- when ".h"
- :header
- else
- :resource
- end
- end
-
- # make it work, then make it good
- def rewrite_project pbxproj
- project_data = File.read(pbxproj)
-
- pbxbuildfile_files = @source_files + @resource_files
- pbxfilereference_files = @source_files + @header_files + @resource_files
- pbxgroup_files = @source_files + @header_files + @resource_files
- pbxresources_files = @resource_files
- pbxsources_files = @source_files
-
- pbxbuildfile = pbxbuildfile_files.map { |f| pbxbuildfile_line(f) }
- pbxfilereference = pbxfilereference_files.map { |f| pbxfilereference_line(f) }
- pbxgroup = pbxgroup_files.map { |f| pbxgroup_line(f) }
- pbxresources = pbxresources_files.map { |f| pbxresourcesbuild_line(f) }
- pbxsources = pbxsources_files.map { |f| pbxsourcesbuildphase_line(f) }
-
- pbxbuildfile.each do |file_line|
- index = project_data.index(DELIMITERS[:PBXBUILD_END])
- project_data.insert(index, file_line)
- end
-
- pbxfilereference.each do |file_line|
- index = project_data.index(DELIMITERS[:PBXFILEREF_END])
- project_data.insert(index, file_line)
- end
-
- pbxgroup.each do |file_line|
- index = project_data.index(DELIMITERS[:PBXGROUP_END])
- project_data.insert(index, file_line)
- end
-
- pbxresources.each do |file_line|
- index = project_data.index(DELIMITERS[:PBXRESOURCES_END])
- project_data.insert(index, file_line)
- end
-
- pbxsources.each do |file_line|
- index = project_data.index(DELIMITERS[:PBXSOURCES_END])
- project_data.insert(index, file_line)
- end
-
- open(pbxproj, 'w') { |f| f.puts(project_data) }
- end
-
- def pbxbuildfile_line f
- "\t\t#{ f.identifier } /* #{ f.name } in #{ f.group } */ = {isa = PBXBuildFile; fileRef = #{ f.fileref } /* #{ f.name } */; };\n"
- end
-
- def pbxfilereference_line f
- "\t\t#{ f.fileref } /* #{ f.name } */ = {isa = PBXFileReference; lastKnownFileType = #{ f.last_type }; name = #{ f.name }; path = #{ f.path }; sourceTree = SOURCE_ROOT; };\n"
- end
-
- def pbxgroup_line f
- "\t\t\t\t#{ f.fileref } /* #{ f.name } */,\n"
- end
-
- def pbxresourcesbuild_line f
- "\t\t\t\t#{ f.identifier } /* #{ f.name } in Resources */,\n"
- end
-
- def pbxsourcesbuildphase_line f
- "\t\t\t\t#{ f.identifier } /* #{ f.name } in Sources */,\n"
- end
-end
-
-if __FILE__ == $PROGRAM_NAME
- name = `./bin/util/read-config name`.strip()
- name = name.gsub(' ', '')
- name = "./tmp/ios/#{ name }.xcodeproj/project.pbxproj"
- back = "#{name}.bak"
-
- include PabstProj
- # create a backup of the pbxproj, once
- FileUtils.cp(name, back) unless File.exists? back
- # clobber the old pbxproj:
- FileUtils.rm name
- FileUtils.cp back name
- # add in the plugins
- add_plugins './tmp/ios/Plugins', name
- # now remove the ./tmp/ios/ str from the file
- old = File.read(name).gsub('./tmp/ios/','')
- open(name, 'w') { |f| f.write old }
-end
@@ -1,12 +0,0 @@
-#! /bin/sh
-
-# copies icons in config.xml to ios folder
-# FIXME need to find better solution for icons in general
-
-small=$(./bin/util/read-config small-icon)
-medium=$(./bin/util/read-config medium-icon)
-largest=$(./bin/util/read-config large-icon)
-
-cp $small ./tmp/ios/icon.png
-cp $medium ./tmp/ios/icon-72.png
-cp $largest ./tmp/ios/icon@2x.png
View
@@ -1,5 +0,0 @@
-#! /bin/sh
-
-palm-package -o ./tmp/webos/ ./tmp/webos/
-palm-install $(find ./tmp/webos -name '*.ipk')
-palm-launch $(./bin/util/read-config id)
View
@@ -1,50 +0,0 @@
-#! /bin/sh
-
-PKG=$(./bin/util/read-config id)
-ACT=$(./bin/util/read-config name | sed 's/ //g')
-PTH=$(echo $PKG | sed 's/\./\//g')
-FULL="./tmp/android/src/"$PTH"/"$ACT".java"
-
-# clobber existing build sludge
-rm -rf ./tmp/android
-
-
-
-if [ `uname -o` = "Cygwin" ]; then
- # Cygwin specific stuff
- ANDROID="android.bat"
- SEDARG=""
-elif [ `uname -o` = "GNU/Linux" ]; then
- # Linux
- ANDROID="android"
- SEDARG=""
-else
- # Other UNIX (Linux, etc.) specific stuff
- ANDROID="android"
- SEDARG="''"
-fi
-
-# get the android target
-TARGET=$($ANDROID list targets | grep 'id: ' | sed 's/id: \([0-9]\).*/\1/g' | tail -1)
-
-# create the android project
-$ANDROID create project --target $TARGET --path ./tmp/android --package $PKG --activity $ACT
-
-# copy contents of www
-mkdir -p ./tmp/android/assets
-cp -r ./www ./tmp/android/assets/www/
-
-# copy in phonegap.js
-cp ./bin/create/templates/android/phonegap-0.9.4.js ./tmp/android/assets/www/phonegap-0.9.4.js
-
-# copy in ./libs/phonegap.jar
-mkdir -p ./tmp/android/libs
-cp ./bin/create/templates/android/phonegap-0.9.4.jar ./tmp/android/libs/phonegap-0.9.4.jar
-
-# copy in default activity
-cat ./bin/create/templates/android/Activity.java > $FULL
-find "$FULL" | xargs grep '__ACTIVITY__' -sl | xargs -L1 sed -i ${SEDARG} "s/__ACTIVITY__/${ACT}/g"
-find "$FULL" | xargs grep '__ID__' -sl | xargs -L1 sed -i ${SEDARG} "s/__ID__/${PKG}/g"
-
-# copy in intents
-./bin/create/android-convert-config
@@ -1,15 +0,0 @@
-#! /usr/bin/env python
-import os, sys
-from xml.dom.minidom import parse
-
-intents = parse(os.path.join(os.curdir, 'bin/create/templates/android/intents.xml'))
-manifest_path = os.path.join(os.curdir, 'tmp/android/AndroidManifest.xml')
-manifest_xml = parse(manifest_path)
-manifest_xml.getElementsByTagName("application")[0].attributes['android:icon'] = '@drawable/icon'
-manifest_xml.getElementsByTagName("activity")[0].attributes['android:configChanges'] = 'orientation|keyboardHidden'
-app_element = manifest_xml.firstChild
-for feature in intents.getElementsByTagName('uses-permission'):
- app_element.appendChild(feature)
-f = open(manifest_path, 'w')
-manifest_xml.writexml(f) #toprettyxml?
-f.close()
Oops, something went wrong.

0 comments on commit b2a75ea

Please sign in to comment.