rhodes 1.5.5 → 2.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/Manifest.txt +214 -32
- data/Rakefile +33 -10
- data/bin/upgrade-rhodes-app +0 -1
- data/lib/build/compileERB/bb.rb +2 -2
- data/lib/build/compileERB/default.rb +7 -5
- data/lib/build/jake.rb +1 -1
- data/lib/extensions/digest-md5/ext.yml +1 -1
- data/lib/extensions/digest-md5/ext/Rakefile +35 -36
- data/lib/extensions/digest-md5/ext/build.bat +1 -0
- data/lib/extensions/digest-md5/ext/digest-md5.vcproj +203 -0
- data/lib/extensions/digest-sha1/ext.yml +1 -1
- data/lib/extensions/digest/ext.yml +1 -1
- data/lib/extensions/digest/ext/Rakefile +35 -39
- data/lib/extensions/digest/ext/build.bat +1 -2
- data/lib/extensions/digest/ext/digest.vcproj +203 -0
- data/lib/framework/rho/render.rb +79 -22
- data/lib/framework/rho/rho.rb +294 -56
- data/lib/framework/rho/rhoapplication.rb +10 -0
- data/lib/framework/rho/rhofsconnector.rb +2 -6
- data/lib/framework/rho/rhoutils.rb +56 -14
- data/lib/framework/rho/rhoviewhelpers.rb +2 -0
- data/lib/framework/rhodes.rb +2 -2
- data/lib/framework/rhom/rhom.rb +42 -15
- data/lib/framework/rhom/rhom_db_adapter.rb +165 -159
- data/lib/framework/rhom/rhom_object.rb +0 -1
- data/lib/framework/rhom/rhom_object_factory.rb +343 -166
- data/lib/framework/rhom/rhom_source.rb +28 -15
- data/lib/framework/version.rb +2 -2
- data/lib/rhodes.rb +2 -2
- data/platform/android/Rhodes/AndroidManifest.xml +2 -2
- data/platform/android/Rhodes/gen/com/rhomobile/rhodes/R.java +39 -44
- data/platform/android/Rhodes/jni/include/JNIRhodes.h +1 -1
- data/platform/android/Rhodes/jni/include/details/rhojava.inc +23 -20
- data/platform/android/Rhodes/jni/include/jni/com_rhomobile_rhodes_RhoMenu.h +61 -0
- data/platform/android/Rhodes/jni/include/jni/com_rhomobile_rhodes_Rhodes.h +16 -0
- data/platform/android/Rhodes/jni/include/jni/com_rhomobile_rhodes_alert_Alert.h +21 -0
- data/platform/android/Rhodes/jni/include/sslimpl.h +1 -1
- data/platform/android/Rhodes/jni/src/alert.cpp +32 -5
- data/platform/android/Rhodes/jni/src/callbacks.cpp +51 -21
- data/platform/android/Rhodes/jni/src/mapview.cpp +3 -8
- data/platform/android/Rhodes/jni/src/menu.cpp +70 -0
- data/platform/android/Rhodes/jni/src/navbar.cpp +16 -0
- data/platform/android/Rhodes/jni/src/rhodes.cpp +37 -0
- data/platform/android/Rhodes/jni/src/sslimpl.cpp +3 -3
- data/platform/android/Rhodes/jni/src/webview.cpp +21 -7
- data/platform/android/Rhodes/res/drawable/alert_alert.png +0 -0
- data/platform/android/Rhodes/res/drawable/alert_info.png +0 -0
- data/platform/android/Rhodes/res/drawable/alert_question.png +0 -0
- data/platform/android/Rhodes/res/drawable/camera.png +0 -0
- data/platform/android/Rhodes/res/layout/camera.xml +18 -3
- data/platform/android/Rhodes/res/menu/options.xml +0 -10
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/AndroidR.java +5 -10
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Capabilities.java +12 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMenu.java +105 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Rhodes.java +157 -122
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/SplashScreen.java +7 -58
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +16 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/Alert.java +220 -17
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/Camera.java +22 -4
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/ImageCapture.java +44 -25
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +10 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/MainView.java +3 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +10 -21
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +15 -12
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/Phonebook.java +44 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +47 -3
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/MailUriHandler.java +13 -6
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/TelUriHandler.java +11 -5
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/UriHandler.java +1 -4
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/VideoUriHandler.java +61 -0
- data/platform/android/build/RhodesSRC_build.files +3 -0
- data/platform/android/build/android.rake +173 -60
- data/platform/android/build/androidcommon.rb +1 -2
- data/platform/android/build/librhocommon_build.files +5 -0
- data/platform/android/build/librhodes_build.files +2 -0
- data/platform/android/build/libruby_build.files +2 -1
- data/platform/bb/Hsqldb/Hsqldb.jdp +0 -3
- data/platform/bb/Hsqldb/src/com/rho/db/FileUtilBB.java +1 -1
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBResult.java +16 -1
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBRowResult.java +5 -0
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBStorage.java +25 -4
- data/platform/bb/Hsqldb/src/com/rho/db/Journal.java +1 -1
- data/platform/bb/Hsqldb/src/com/rho/file/FileAccessBB.java +0 -1
- data/platform/bb/Hsqldb/src/j2me/math/Number.java +6 -3
- data/platform/bb/Hsqldb/src/org/hsqldb/CompiledStatementExecutor.java +2 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/Expression.java +1 -0
- data/platform/bb/Hsqldb/src/org/hsqldb/Parser.java +1 -0
- data/platform/bb/Hsqldb/src/org/hsqldb/Result.java +2 -0
- data/platform/bb/Hsqldb/src/org/hsqldb/Select.java +12 -6
- data/platform/bb/Hsqldb/src/org/hsqldb/Session.java +19 -12
- data/platform/bb/Hsqldb/src/org/hsqldb/Table.java +10 -4
- data/platform/bb/Hsqldb/src/org/hsqldb/Token.java +10 -2
- data/platform/bb/Hsqldb/src/org/hsqldb/Tokenizer.java +3 -3
- data/platform/bb/Hsqldb/src/org/hsqldb/lib/java/JavaSystem.java +1 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/persist/HsqlProperties.java +2 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/persist/ScaledRAFile.java +1 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/scriptio/ScriptReaderText.java +1 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/scriptio/ScriptWriterBase.java +1 -1
- data/platform/bb/RubyVM/RubyVM.jdp +9 -10
- data/platform/bb/build/RubyVM_build.files +9 -7
- data/platform/bb/build/bb.rake +13 -3
- data/platform/bb/build/hsqldb_build.files +0 -2
- data/platform/bb/build/rhodes_build.files +5 -2
- data/platform/bb/rhodes/platform/4.7/com/rho/RhoMainScreen.java +8 -0
- data/platform/bb/rhodes/platform/5.0/com/rho/BrowserAdapter5.java +154 -0
- data/platform/bb/rhodes/platform/5.0/com/rho/RhoMainScreen.java +8 -0
- data/platform/bb/rhodes/platform/common/com/rho/BrowserAdapter5.java +28 -0
- data/platform/bb/rhodes/rhodes.jdp +12 -7
- data/platform/bb/rhodes/src/com/rho/BrowserAdapter.java +331 -0
- data/platform/bb/rhodes/src/com/rho/BrowserAdapter5.java +28 -0
- data/platform/bb/rhodes/src/com/rho/IBrowserAdapter.java +10 -0
- data/platform/bb/rhodes/src/com/rho/RhoMainScreen.java +4 -0
- data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +2 -4
- data/platform/bb/rhodes/src/com/rho/{Jsr75File.java → file/Jsr75File.java} +83 -36
- data/platform/bb/{Hsqldb → rhodes}/src/com/rho/file/Jsr75RAFileImpl.java +0 -1
- data/platform/bb/{Hsqldb → rhodes}/src/com/rho/file/PersistRAFileImpl.java +0 -2
- data/platform/bb/rhodes/src/com/rho/net/NetworkAccess.java +8 -10
- data/platform/bb/rhodes/src/com/rho/rubyext/Alert.java +1 -1
- data/platform/bb/rhodes/src/com/rho/rubyext/GeoLocation.java +39 -0
- data/platform/bb/rhodes/src/com/rho/rubyext/System.java +63 -2
- data/platform/bb/rhodes/src/com/rho/rubyext/WebView.java +100 -0
- data/platform/bb/rhodes/src/rhomobile/LogScreen.java +1 -1
- data/platform/bb/rhodes/src/rhomobile/PushListeningThread.java +13 -1
- data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +138 -492
- data/platform/bb/rhodes/src/rhomobile/SecondaryResourceFetchThread.java +11 -2
- data/platform/bb/rhodes/src/rhomobile/Utilities.java +14 -10
- data/platform/bb/rhodes/src/rhomobile/camera/CameraScreen.java +5 -14
- data/platform/bb/rhodes/src/rhomobile/camera/ImageBrowserScreen.java +1 -1
- data/platform/bb/rhodes/src/rhomobile/mapview/GoogleMapField.java +2 -2
- data/platform/iphone/Classes/AppManager/AppManager.m +37 -14
- data/platform/iphone/Classes/Camera/PickImageDelegate.h +15 -4
- data/platform/iphone/Classes/Camera/PickImageDelegate.m +53 -50
- data/platform/iphone/Classes/DateTimePicker.h +17 -0
- data/platform/iphone/Classes/DateTimePicker.m +35 -0
- data/platform/iphone/Classes/GeoLocation/LocationController.m +2 -3
- data/platform/iphone/Classes/LogOptionsController.m +3 -2
- data/platform/iphone/Classes/LogViewController.m +4 -2
- data/platform/iphone/Classes/MapView/GoogleGeocoder.m +12 -20
- data/platform/iphone/Classes/MapView/MapAnnotation.h +9 -13
- data/platform/iphone/Classes/MapView/MapAnnotation.m +17 -65
- data/platform/iphone/Classes/MapView/MapViewController.h +1 -7
- data/platform/iphone/Classes/MapView/MapViewController.m +51 -25
- data/platform/iphone/Classes/NativeBar.h +0 -12
- data/platform/iphone/Classes/NativeBar.m +121 -2
- data/platform/iphone/Classes/NavBar.h +16 -0
- data/platform/iphone/Classes/NavBar.m +115 -0
- data/platform/iphone/Classes/RhoAlert.h +19 -0
- data/platform/iphone/Classes/RhoAlert.m +258 -0
- data/platform/iphone/Classes/RhoDelegate.m +1 -0
- data/platform/iphone/Classes/RhoMainView.h +33 -0
- data/platform/iphone/Classes/Rhodes.h +56 -0
- data/platform/iphone/Classes/Rhodes.m +533 -0
- data/platform/iphone/Classes/RingtoneManager.h +17 -0
- data/platform/iphone/Classes/RingtoneManager.m +73 -0
- data/platform/iphone/Classes/SimpleMainView.h +30 -0
- data/platform/iphone/Classes/SimpleMainView.m +380 -0
- data/platform/iphone/Classes/TabbedMainView.h +24 -0
- data/platform/iphone/Classes/TabbedMainView.m +202 -0
- data/platform/iphone/Classes/WebView.m +123 -0
- data/platform/iphone/Classes/rho/net/NetRequestImpl.m +2 -2
- data/platform/iphone/Classes/rho/net/sslimpl.cpp +13 -1
- data/platform/iphone/Classes/rho/net/sslimpl.h +1 -1
- data/platform/iphone/Info.plist +1 -1
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +44 -0
- data/platform/iphone/main.m +1 -2
- data/platform/iphone/rbuild/iphone.rake +8 -16
- data/platform/iphone/rhoextlib/dosyscall.c +1 -1
- data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +6 -4
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +12 -0
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +97 -62
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +12 -0
- data/platform/osx/Rhodes Launcher/launch.rb +14 -21
- data/platform/shared/common/AppMenu.cpp +122 -0
- data/platform/shared/common/AppMenu.h +46 -0
- data/platform/shared/common/PosixThreadImpl.cpp +1 -1
- data/platform/shared/common/RhoConf.cpp +27 -2
- data/platform/shared/common/RhoConf.h +5 -0
- data/platform/shared/common/RhoFilePath.h +21 -0
- data/platform/shared/common/RhoStd.h +44 -5
- data/platform/shared/common/RhoTime.h +20 -7
- data/platform/shared/common/RhodesApp.cpp +236 -177
- data/platform/shared/common/RhodesApp.h +36 -13
- data/platform/shared/common/SplashScreen.cpp +2 -2
- data/platform/shared/common/StringConverter.h +10 -11
- data/platform/shared/common/rhoparams.c +0 -6
- data/platform/shared/curl/lib/rhossl.c +3 -2
- data/platform/shared/curl/lib/url.c +0 -5
- data/platform/shared/db/DBAdapter.cpp +304 -81
- data/platform/shared/db/DBAdapter.h +24 -7
- data/platform/shared/db/DBAttrManager.cpp +83 -30
- data/platform/shared/db/DBAttrManager.h +6 -0
- data/platform/shared/db/DBResult.h +15 -4
- data/platform/shared/json/JSONIterator.cpp +100 -3
- data/platform/shared/json/JSONIterator.h +28 -3
- data/platform/shared/net/AsyncHttp.cpp +25 -22
- data/platform/shared/net/AsyncHttp.h +10 -6
- data/platform/shared/net/CURLNetRequest.cpp +115 -36
- data/platform/shared/net/CURLNetRequest.h +6 -0
- data/platform/shared/net/HttpServer.cpp +6 -4
- data/platform/shared/net/HttpServer.h +0 -1
- data/platform/shared/net/INetRequest.h +19 -3
- data/platform/shared/net/URI.cpp +2 -2
- data/platform/shared/net/ssl.cpp +2 -2
- data/platform/shared/net/ssl.h +2 -2
- data/platform/shared/ruby/ext/alert/alert.i +14 -2
- data/platform/shared/ruby/ext/alert/alert_wrap.c +40 -20
- data/platform/shared/ruby/ext/asynchttp/asynchttp.i +8 -8
- data/platform/shared/ruby/ext/asynchttp/asynchttp_wrap.c +112 -16
- data/platform/shared/ruby/ext/geolocation/geolocation.i +16 -12
- data/platform/shared/ruby/ext/geolocation/geolocation_wrap.c +481 -125
- data/platform/shared/ruby/ext/navbar/navbar.i +20 -0
- data/platform/shared/ruby/ext/navbar/navbar_wrap.c +1859 -0
- data/platform/shared/ruby/ext/rho/extensions.c +1 -1
- data/platform/shared/ruby/ext/rho/rhoruby.c +32 -2
- data/platform/shared/ruby/ext/rho/rhoruby.h +7 -2
- data/platform/shared/ruby/ext/rhoconf/rhoconf.i +4 -0
- data/platform/shared/ruby/ext/rhoconf/rhoconf_wrap.c +31 -0
- data/platform/shared/ruby/ext/sqlite3_api/sqlite3_api_wrap.c +188 -3226
- data/platform/shared/ruby/ext/syncengine/syncengine.i +14 -25
- data/platform/shared/ruby/ext/syncengine/syncengine_wrap.c +96 -104
- data/platform/shared/ruby/ext/system/system.i +12 -0
- data/platform/shared/ruby/ext/system/system_wrap.c +101 -7
- data/platform/shared/ruby/ext/webview/webview.i +20 -15
- data/platform/shared/ruby/ext/webview/webview_wrap.c +42 -16
- data/platform/shared/ruby/thread_pthread.c +4 -4
- data/platform/shared/ruby/thread_win32.c +4 -4
- data/platform/shared/ruby/wince/io_wce.c +0 -1
- data/platform/shared/rubyJVM/src/com/rho/FilePath.java +18 -2
- data/platform/shared/rubyJVM/src/com/rho/IRhoRubyHelper.java +1 -0
- data/platform/shared/rubyJVM/src/com/rho/Properties.java +9 -0
- data/platform/shared/rubyJVM/src/com/rho/RhoClassFactory.java +2 -3
- data/platform/shared/rubyJVM/src/com/rho/RhoConf.java +47 -8
- data/platform/shared/rubyJVM/src/com/rho/RhoLogConf.java +1 -0
- data/platform/shared/rubyJVM/src/com/rho/RhoLogFileSink.java +1 -0
- data/platform/shared/rubyJVM/src/com/rho/RhoRuby.java +43 -5
- data/platform/shared/rubyJVM/src/com/rho/RhodesApp.java +98 -3
- data/platform/shared/rubyJVM/src/com/rho/db/DBAdapter.java +460 -175
- data/platform/shared/rubyJVM/src/com/rho/db/DBAttrManager.java +81 -33
- data/platform/shared/rubyJVM/src/com/rho/db/IDBCallback.java +3 -5
- data/platform/shared/rubyJVM/src/com/rho/db/IDBResult.java +2 -0
- data/platform/shared/rubyJVM/src/com/rho/db/IDBStorage.java +2 -0
- data/platform/shared/rubyJVM/src/com/rho/{IFile.java → file/IFile.java} +1 -1
- data/platform/shared/rubyJVM/src/com/rho/{IFileAccess.java → file/IFileAccess.java} +1 -1
- data/platform/shared/rubyJVM/src/com/rho/{IRAFile.java → file/IRAFile.java} +1 -1
- data/platform/{bb/Hsqldb/src/com/rho/db → shared/rubyJVM/src/com/rho/file}/RandomAccessFile.java +1 -2
- data/platform/shared/rubyJVM/src/com/rho/{SimpleFile.java → file/SimpleFile.java} +5 -1
- data/platform/shared/rubyJVM/src/com/rho/net/AsyncHttp.java +23 -18
- data/platform/shared/rubyJVM/src/com/rho/net/NetRequest.java +167 -250
- data/platform/shared/rubyJVM/src/com/rho/net/RhoConnection.java +100 -30
- data/platform/shared/rubyJVM/src/com/rho/net/URI.java +0 -1
- data/platform/shared/rubyJVM/src/com/rho/sync/ClientRegister.java +30 -33
- data/platform/shared/rubyJVM/src/com/rho/sync/ISyncProtocol.java +20 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/JSONEntry.java +5 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/JSONStructIterator.java +74 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncEngine.java +486 -257
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncNotify.java +89 -58
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncProtocol_3.java +79 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncSource.java +634 -495
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncThread.java +74 -90
- data/platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubySymbol_Methods.java +1 -0
- data/platform/shared/rubyJVM/src/com/xruby/runtime/builtin/RubyThread.java +6 -0
- data/platform/shared/rubyJVM/src/com/xruby/runtime/lang/RubyRuntime.java +6 -2
- data/platform/shared/rubyJVM/src/com/xruby/runtime/lang/RubySymbol.java +17 -1
- data/platform/shared/rubyJVM/src/com/xruby/runtime/lang/RubyValue.java +1 -0
- data/platform/shared/rubyJVM/src/org/json/me/JSONObject.java +3 -0
- data/platform/shared/rubyext/GeoLocation.cpp +23 -0
- data/platform/shared/rubyext/GeoLocation.h +2 -0
- data/platform/shared/rubyext/RhoRuby.cpp +31 -0
- data/platform/shared/rubyext/RhoRuby.h +32 -0
- data/platform/shared/rubyext/System.cpp +14 -3
- data/platform/shared/rubyext/WebView.h +21 -0
- data/platform/shared/sync/ClientRegister.cpp +23 -28
- data/platform/shared/sync/ClientRegister.h +6 -2
- data/platform/shared/sync/ISyncProtocol.h +29 -0
- data/platform/shared/sync/SyncEngine.cpp +450 -190
- data/platform/shared/sync/SyncEngine.h +28 -38
- data/platform/shared/sync/SyncNotify.cpp +43 -41
- data/platform/shared/sync/SyncNotify.h +7 -7
- data/platform/shared/sync/SyncProtocol_3.h +86 -0
- data/platform/shared/sync/SyncSource.cpp +535 -371
- data/platform/shared/sync/SyncSource.h +48 -55
- data/platform/shared/sync/SyncThread.cpp +59 -103
- data/platform/shared/sync/SyncThread.h +10 -23
- data/platform/shared/unzip/unzip.cpp +3 -2
- data/platform/shared/unzip/unzip.h +5 -1
- data/platform/shared/wtl80/include/atlapp.h +10 -10
- data/platform/wm/RhoLib/RhoLib.vcproj +32 -0
- data/platform/wm/build/build_inf.js +40 -3
- data/platform/wm/build/wm.rake +95 -9
- data/platform/wm/rhodes/Alert.cpp +4 -0
- data/platform/wm/rhodes/DateTimePicker.cpp +183 -0
- data/platform/wm/rhodes/DateTimePicker.h +100 -0
- data/platform/wm/rhodes/MainWindow.cpp +222 -209
- data/platform/wm/rhodes/MainWindow.h +28 -35
- data/platform/wm/rhodes/Rhodes.cpp +20 -60
- data/platform/wm/rhodes/Rhodes.rc +41 -7
- data/platform/wm/rhodes/Utils.cpp +65 -0
- data/platform/wm/rhodes/Utils.h +9 -0
- data/platform/wm/rhodes/camera/Camera.cpp +2 -2
- data/platform/wm/rhodes/menubar.cpp +2 -33
- data/platform/wm/rhodes/menubar.h +0 -14
- data/platform/wm/rhodes/resource.h +13 -11
- data/platform/wm/rhodes/rho/net/NetRequest.cpp +16 -35
- data/platform/wm/rhodes/rho/net/NetRequest.h +8 -2
- data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +264 -46
- data/platform/wm/rhodes/rho/net/NetRequestImpl.h +14 -4
- data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.cpp +1 -1
- data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.h +1 -1
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +77 -4
- data/platform/wm/rhodes/rho/rubyext/WebView.cpp +63 -0
- data/platform/wm/rhodes/rhodes.vcproj +20 -66
- data/platform/wm/rhodes/stdafx.h +22 -0
- data/platform/wm/rubylib/rubylib.vcproj +4 -0
- data/platform/wm/syncengine/syncengine.vcproj +8 -0
- data/platform/wm/tools/detool.sln +66 -0
- data/platform/wm/tools/detool/DEMComInterface.tlb +0 -0
- data/platform/wm/tools/detool/ReadMe.txt +33 -0
- data/platform/wm/tools/detool/detool.cpp +559 -0
- data/platform/wm/tools/detool/detool.h +5 -0
- data/platform/wm/tools/detool/detool.vcproj +233 -0
- data/platform/wm/tools/detool/stdafx.cpp +8 -0
- data/platform/wm/tools/detool/stdafx.h +15 -0
- data/platform/wm/tools/detool/targetver.h +24 -0
- data/platform/wm/tools/rhosetup/ReadMe.txt +41 -0
- data/platform/wm/tools/rhosetup/rhosetup.cpp +52 -0
- data/platform/wm/tools/rhosetup/rhosetup.vcproj +641 -0
- data/platform/wm/tools/rhosetup/stdafx.cpp +8 -0
- data/platform/wm/tools/rhosetup/stdafx.h +59 -0
- data/rakefile.rb +33 -10
- data/res/build-tools/db/syncdb.schema +25 -23
- data/res/build-tools/db/syncdb.triggers +1 -1
- data/res/build-tools/detool.exe +0 -0
- data/res/build-tools/rhosetup.dll +0 -0
- data/res/generators/rhogen.rb +27 -22
- data/res/generators/templates/application/app/Settings/controller.rb +3 -1
- data/res/generators/templates/application/app/Settings/home.bb.erb +17 -0
- data/res/generators/templates/application/app/Settings/home.erb +21 -12
- data/res/generators/templates/application/app/Settings/index.bb.erb +32 -0
- data/res/generators/templates/application/app/Settings/index.erb +44 -15
- data/res/generators/templates/application/app/Settings/login.bb.erb +35 -0
- data/res/generators/templates/application/app/Settings/login.erb +29 -30
- data/res/generators/templates/application/app/Settings/reset.bb.erb +15 -0
- data/res/generators/templates/application/app/Settings/reset.erb +16 -13
- data/res/generators/templates/application/app/Settings/wait.bb.erb +3 -0
- data/res/generators/templates/application/app/Settings/wait.erb +4 -4
- data/res/generators/templates/application/app/application.rb +8 -0
- data/res/generators/templates/application/app/helpers/browser_helper.rb +13 -0
- data/res/generators/templates/application/app/index.bb.erb +26 -0
- data/res/generators/templates/application/app/index.erb +21 -12
- data/res/generators/templates/application/app/layout.erb +9 -11
- data/res/generators/templates/application/public/css/android.css +285 -0
- data/res/generators/templates/application/public/css/blackberry.css +85 -78
- data/res/generators/templates/application/public/css/iphone.css +286 -296
- data/res/generators/templates/application/public/css/webkit.css +34 -0
- data/res/generators/templates/application/public/css/windows_mobile.css +208 -0
- data/res/generators/templates/application/public/icons/Read me first - license.txt +14 -0
- data/res/generators/templates/application/public/icons/about.png +0 -0
- data/res/generators/templates/application/public/icons/airplane.png +0 -0
- data/res/generators/templates/application/public/icons/baby.png +0 -0
- data/res/generators/templates/application/public/icons/badge.png +0 -0
- data/res/generators/templates/application/public/icons/bandaid.png +0 -0
- data/res/generators/templates/application/public/icons/bar-chart.png +0 -0
- data/res/generators/templates/application/public/icons/battery.png +0 -0
- data/res/generators/templates/application/public/icons/beaker.png +0 -0
- data/res/generators/templates/application/public/icons/beaker2.png +0 -0
- data/res/generators/templates/application/public/icons/beermug.png +0 -0
- data/res/generators/templates/application/public/icons/bird.png +0 -0
- data/res/generators/templates/application/public/icons/book.png +0 -0
- data/res/generators/templates/application/public/icons/bookmark.png +0 -0
- data/res/generators/templates/application/public/icons/brightness.png +0 -0
- data/res/generators/templates/application/public/icons/bug.png +0 -0
- data/res/generators/templates/application/public/icons/cabinet.png +0 -0
- data/res/generators/templates/application/public/icons/calendar.png +0 -0
- data/res/generators/templates/application/public/icons/camera.png +0 -0
- data/res/generators/templates/application/public/icons/changeName.rb +22 -0
- data/res/generators/templates/application/public/icons/chat2.png +0 -0
- data/res/generators/templates/application/public/icons/chicken.png +0 -0
- data/res/generators/templates/application/public/icons/clock.png +0 -0
- data/res/generators/templates/application/public/icons/cloud.png +0 -0
- data/res/generators/templates/application/public/icons/coffee.png +0 -0
- data/res/generators/templates/application/public/icons/compass.png +0 -0
- data/res/generators/templates/application/public/icons/contrast.png +0 -0
- data/res/generators/templates/application/public/icons/dashboard.png +0 -0
- data/res/generators/templates/application/public/icons/display.png +0 -0
- data/res/generators/templates/application/public/icons/dogpaw.png +0 -0
- data/res/generators/templates/application/public/icons/download.png +0 -0
- data/res/generators/templates/application/public/icons/dumbbell.png +0 -0
- data/res/generators/templates/application/public/icons/ekg.png +0 -0
- data/res/generators/templates/application/public/icons/envelope.png +0 -0
- data/res/generators/templates/application/public/icons/equalizer.png +0 -0
- data/res/generators/templates/application/public/icons/eye.png +0 -0
- data/res/generators/templates/application/public/icons/film-roll.png +0 -0
- data/res/generators/templates/application/public/icons/flag.png +0 -0
- data/res/generators/templates/application/public/icons/fork-and-knife.png +0 -0
- data/res/generators/templates/application/public/icons/fuel.png +0 -0
- data/res/generators/templates/application/public/icons/gameplan.png +0 -0
- data/res/generators/templates/application/public/icons/gear.png +0 -0
- data/res/generators/templates/application/public/icons/gear2.png +0 -0
- data/res/generators/templates/application/public/icons/gift.png +0 -0
- data/res/generators/templates/application/public/icons/heart.png +0 -0
- data/res/generators/templates/application/public/icons/house.png +0 -0
- data/res/generators/templates/application/public/icons/inbox.png +0 -0
- data/res/generators/templates/application/public/icons/index-cards.png +0 -0
- data/res/generators/templates/application/public/icons/iphone.png +0 -0
- data/res/generators/templates/application/public/icons/ipod.png +0 -0
- data/res/generators/templates/application/public/icons/key.png +0 -0
- data/res/generators/templates/application/public/icons/lifebuoy.png +0 -0
- data/res/generators/templates/application/public/icons/lightbulb.png +0 -0
- data/res/generators/templates/application/public/icons/line-chart.png +0 -0
- data/res/generators/templates/application/public/icons/location.png +0 -0
- data/res/generators/templates/application/public/icons/lock.png +0 -0
- data/res/generators/templates/application/public/icons/loopback.png +0 -0
- data/res/generators/templates/application/public/icons/magnifying-glass.png +0 -0
- data/res/generators/templates/application/public/icons/map-marker.png +0 -0
- data/res/generators/templates/application/public/icons/map.png +0 -0
- data/res/generators/templates/application/public/icons/medical-bag.png +0 -0
- data/res/generators/templates/application/public/icons/medical.png +0 -0
- data/res/generators/templates/application/public/icons/microphone.png +0 -0
- data/res/generators/templates/application/public/icons/movie1.png +0 -0
- data/res/generators/templates/application/public/icons/movie2.png +0 -0
- data/res/generators/templates/application/public/icons/network.png +0 -0
- data/res/generators/templates/application/public/icons/note.png +0 -0
- data/res/generators/templates/application/public/icons/outlet.png +0 -0
- data/res/generators/templates/application/public/icons/palette.png +0 -0
- data/res/generators/templates/application/public/icons/paperclip.png +0 -0
- data/res/generators/templates/application/public/icons/phone.png +0 -0
- data/res/generators/templates/application/public/icons/photos.png +0 -0
- data/res/generators/templates/application/public/icons/piano.png +0 -0
- data/res/generators/templates/application/public/icons/picture-frame.png +0 -0
- data/res/generators/templates/application/public/icons/pill.png +0 -0
- data/res/generators/templates/application/public/icons/pin.png +0 -0
- data/res/generators/templates/application/public/icons/pinetree.png +0 -0
- data/res/generators/templates/application/public/icons/planet.png +0 -0
- data/res/generators/templates/application/public/icons/puzzle.png +0 -0
- data/res/generators/templates/application/public/icons/radar.png +0 -0
- data/res/generators/templates/application/public/icons/redo.png +0 -0
- data/res/generators/templates/application/public/icons/refresh.png +0 -0
- data/res/generators/templates/application/public/icons/runner.png +0 -0
- data/res/generators/templates/application/public/icons/shoebox.png +0 -0
- data/res/generators/templates/application/public/icons/shopping-bag.png +0 -0
- data/res/generators/templates/application/public/icons/shopping-cart.png +0 -0
- data/res/generators/templates/application/public/icons/shuffle.png +0 -0
- data/res/generators/templates/application/public/icons/signpost.png +0 -0
- data/res/generators/templates/application/public/icons/skull-n-crossbones.png +0 -0
- data/res/generators/templates/application/public/icons/skull.png +0 -0
- data/res/generators/templates/application/public/icons/sliders.png +0 -0
- data/res/generators/templates/application/public/icons/spraycan.png +0 -0
- data/res/generators/templates/application/public/icons/squiggle.png +0 -0
- data/res/generators/templates/application/public/icons/star.png +0 -0
- data/res/generators/templates/application/public/icons/stopwatch.png +0 -0
- data/res/generators/templates/application/public/icons/suitcase.png +0 -0
- data/res/generators/templates/application/public/icons/tag.png +0 -0
- data/res/generators/templates/application/public/icons/tags.png +0 -0
- data/res/generators/templates/application/public/icons/target.png +0 -0
- data/res/generators/templates/application/public/icons/testtube.png +0 -0
- data/res/generators/templates/application/public/icons/thermometer.png +0 -0
- data/res/generators/templates/application/public/icons/toolbox.png +0 -0
- data/res/generators/templates/application/public/icons/trophy.png +0 -0
- data/res/generators/templates/application/public/icons/tshirt.png +0 -0
- data/res/generators/templates/application/public/icons/tv.png +0 -0
- data/res/generators/templates/application/public/icons/umbrella.png +0 -0
- data/res/generators/templates/application/public/icons/walk.png +0 -0
- data/res/generators/templates/application/public/icons/weather.png +0 -0
- data/res/generators/templates/application/public/icons/widescreen.png +0 -0
- data/res/generators/templates/application/public/icons/wineglass.png +0 -0
- data/res/generators/templates/application/public/icons/zap.png +0 -0
- data/res/generators/templates/application/public/images/android/btn_check_off.png +0 -0
- data/res/generators/templates/application/public/images/android/btn_check_on.png +0 -0
- data/res/generators/templates/application/public/images/android/btn_radio_off.png +0 -0
- data/res/generators/templates/application/public/images/android/btn_radio_on.png +0 -0
- data/res/generators/templates/application/public/images/android/ic_menu_more.png +0 -0
- data/res/generators/templates/application/public/images/iphone/disclosure.png +0 -0
- data/res/generators/templates/application/public/images/iphone/disclosure_detail.png +0 -0
- data/res/generators/templates/application/public/images/iphone/radiobutton.png +0 -0
- data/res/generators/templates/application/public/images/iphone/select.png +0 -0
- data/res/generators/templates/application/public/images/iphone/switch.png +0 -0
- data/res/generators/templates/application/public/images/listArrow.png +0 -0
- data/res/generators/templates/application/public/images/listArrowDown.png +0 -0
- data/res/generators/templates/model/controller.rb +2 -0
- data/res/generators/templates/model/edit.bb.erb +24 -0
- data/res/generators/templates/model/edit.erb +21 -25
- data/res/generators/templates/model/index.bb.erb +21 -0
- data/res/generators/templates/model/index.erb +28 -14
- data/res/generators/templates/model/new.bb.erb +24 -0
- data/res/generators/templates/model/new.erb +20 -20
- data/res/generators/templates/model/show.bb.erb +21 -0
- data/res/generators/templates/model/show.erb +15 -15
- data/rhobuild.yml +37 -0
- data/rhodes.gemspec +1 -1
- data/spec/framework_spec/app/Account/config.rb +57 -1
- data/spec/framework_spec/app/Case/config.rb +1 -1
- data/spec/framework_spec/app/Customer/config.rb +1 -1
- data/spec/framework_spec/app/Product/config.rb +15 -1
- data/spec/framework_spec/app/spec/fixtures/object_values.txt +90 -90
- data/spec/framework_spec/app/spec/pagination/fixtures/object_values.txt +91 -91
- data/spec/framework_spec/app/spec/rho_spec.rb +1 -1
- data/spec/framework_spec/app/spec/rhom_object_spec.rb +47 -28
- data/spec/framework_spec/app/spec/rhom_spec.rb +8 -8
- data/spec/framework_spec/app/spec/spec_helper.rb +13 -5
- data/spec/framework_spec/app/spec_runner.rb +5 -4
- data/spec/framework_spec/public/css/base.css +0 -1
- data/spec/framework_spec/public/css/iphone.css +0 -1
- data/spec/framework_spec/rhoconfig.txt +3 -1
- metadata +220 -37
- data/platform/bb/rhodes/src/rhomobile/WebView.java +0 -90
- data/platform/iphone/Classes/BarItem.h +0 -27
- data/platform/iphone/Classes/BarItem.m +0 -32
- data/platform/iphone/Classes/JSString.h +0 -12
- data/platform/iphone/Classes/JSString.m +0 -7
- data/platform/iphone/Classes/RhoRunnerAppDelegate.h +0 -48
- data/platform/iphone/Classes/RhoRunnerAppDelegate.m +0 -617
- data/platform/iphone/Classes/Server/ServerHost.h +0 -81
- data/platform/iphone/Classes/Server/ServerHost.m +0 -597
- data/platform/iphone/Classes/Server/WebViewUrl.h +0 -13
- data/platform/iphone/Classes/Server/WebViewUrl.m +0 -8
- data/platform/iphone/Classes/TabBarDelegate.h +0 -39
- data/platform/iphone/Classes/TabBarDelegate.m +0 -151
- data/platform/iphone/Classes/Utils/unzip.cpp +0 -4328
- data/platform/iphone/Classes/Utils/unzip.h +0 -234
- data/platform/iphone/Classes/WebViewController.h +0 -59
- data/platform/iphone/Classes/WebViewController.m +0 -472
- data/platform/wm/rhodes/GetURLDialog.cpp +0 -64
- data/platform/wm/rhodes/GetURLDialog.h +0 -39
- data/res/generators/templates/application/public/css/base.css +0 -39
- data/res/generators/templates/application/public/css/rho.css +0 -3
- data/res/generators/templates/application/public/css/xhtml.css +0 -114
- data/spec/framework_spec/app/Question/config.rb +0 -3
- data/spec/generator_spec/source_generator_spec.rb +0 -27
@@ -0,0 +1,24 @@
|
|
1
|
+
//
|
2
|
+
// TabbedMainView.h
|
3
|
+
// rhorunner
|
4
|
+
//
|
5
|
+
// Created by Dmitry Moskalchuk on 26.03.10.
|
6
|
+
// Copyright 2010 Rhomobile. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
#import "RhoMainView.h"
|
11
|
+
|
12
|
+
@interface TabbedMainView : UIViewController<RhoMainView> {
|
13
|
+
UIView *parent;
|
14
|
+
UITabBarController *tabbar;
|
15
|
+
NSArray *tabbarData;
|
16
|
+
}
|
17
|
+
|
18
|
+
@property (nonatomic,retain) UITabBarController *tabbar;
|
19
|
+
@property (nonatomic,retain) NSArray *tabbarData;
|
20
|
+
|
21
|
+
- (id)initWithParentView:(UIView*)v items:(NSArray*)items;
|
22
|
+
- (id)initWithParentView:(UIView*)v frame:(CGRect)frame items:(NSArray*)items;
|
23
|
+
|
24
|
+
@end
|
@@ -0,0 +1,202 @@
|
|
1
|
+
//
|
2
|
+
// TabbedMainView.m
|
3
|
+
// rhorunner
|
4
|
+
//
|
5
|
+
// Created by Dmitry Moskalchuk on 26.03.10.
|
6
|
+
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "TabbedMainView.h"
|
10
|
+
#import "SimpleMainView.h"
|
11
|
+
#import "Rhodes.h"
|
12
|
+
#import "AppManager.h"
|
13
|
+
#import "logging/RhoLog.h"
|
14
|
+
|
15
|
+
#undef DEFAULT_LOGCATEGORY
|
16
|
+
#define DEFAULT_LOGCATEGORY "TabbedMainView"
|
17
|
+
|
18
|
+
@interface RhoTabBarData : NSObject {
|
19
|
+
@public
|
20
|
+
NSString *url;
|
21
|
+
BOOL loaded;
|
22
|
+
BOOL reload;
|
23
|
+
}
|
24
|
+
|
25
|
+
@property (retain) NSString *url;
|
26
|
+
@property (assign) BOOL loaded;
|
27
|
+
@property (assign) BOOL reload;
|
28
|
+
|
29
|
+
- (id)init;
|
30
|
+
- (void)dealloc;
|
31
|
+
|
32
|
+
@end
|
33
|
+
|
34
|
+
@implementation RhoTabBarData
|
35
|
+
|
36
|
+
@synthesize url, loaded, reload;
|
37
|
+
|
38
|
+
- (id)init {
|
39
|
+
url = nil;
|
40
|
+
loaded = NO;
|
41
|
+
reload = NO;
|
42
|
+
return self;
|
43
|
+
}
|
44
|
+
|
45
|
+
- (void)dealloc {
|
46
|
+
[url release];
|
47
|
+
[super dealloc];
|
48
|
+
}
|
49
|
+
|
50
|
+
@end
|
51
|
+
|
52
|
+
|
53
|
+
@implementation TabbedMainView
|
54
|
+
|
55
|
+
@synthesize tabbar, tabbarData;
|
56
|
+
|
57
|
+
- (id)initWithParentView:(UIView *)v items:(NSArray *)items {
|
58
|
+
return [self initWithParentView:v frame:v.frame items:items];
|
59
|
+
}
|
60
|
+
|
61
|
+
- (id)initWithParentView:(UIView *)v frame:(CGRect)frame items:(NSArray*)items {
|
62
|
+
parent = v;
|
63
|
+
|
64
|
+
tabbar = [[UITabBarController alloc] initWithNibName:nil bundle:nil];
|
65
|
+
tabbar.delegate = [Rhodes sharedInstance];
|
66
|
+
tabbar.view.frame = frame;
|
67
|
+
tabbar.selectedIndex = 0;
|
68
|
+
|
69
|
+
int count = [items count]/4;
|
70
|
+
NSMutableArray *views = [NSMutableArray arrayWithCapacity:count];
|
71
|
+
NSMutableArray *tabs = [[NSMutableArray alloc] initWithCapacity:count];
|
72
|
+
|
73
|
+
for (int i = 0; i < count; ++i) {
|
74
|
+
int index = i*4 - 1;
|
75
|
+
NSString *label = [items objectAtIndex:++index];
|
76
|
+
NSString *url = [items objectAtIndex:++index];
|
77
|
+
NSString *icon = [items objectAtIndex:++index];
|
78
|
+
NSString *reload = [items objectAtIndex:++index];
|
79
|
+
|
80
|
+
if (label && url && icon) {
|
81
|
+
RhoTabBarData *td = [[RhoTabBarData alloc] init];
|
82
|
+
td.url = url;
|
83
|
+
td.reload = [reload isEqualToString:@"true"];
|
84
|
+
|
85
|
+
SimpleMainView *subController = [[SimpleMainView alloc] initWithParentView:tabbar.view];
|
86
|
+
subController.title = label;
|
87
|
+
NSString *imagePath = [[AppManager getApplicationsRootPath] stringByAppendingPathComponent:icon];
|
88
|
+
subController.tabBarItem.image = [UIImage imageWithContentsOfFile:imagePath];
|
89
|
+
[subController navigate:url tab:0];
|
90
|
+
|
91
|
+
[tabs addObject:td];
|
92
|
+
[views addObject:subController];
|
93
|
+
|
94
|
+
[td release];
|
95
|
+
[subController release];
|
96
|
+
}
|
97
|
+
}
|
98
|
+
tabbar.viewControllers = views;
|
99
|
+
tabbar.customizableViewControllers = NO;
|
100
|
+
tabbar.view.hidden = NO;
|
101
|
+
|
102
|
+
self.tabbarData = tabs;
|
103
|
+
[tabs release];
|
104
|
+
|
105
|
+
CGRect vFrame = tabbar.view.frame;
|
106
|
+
CGRect tbFrame = tabbar.tabBar.frame;
|
107
|
+
tbFrame.origin.y = vFrame.size.height - tbFrame.size.height - vFrame.origin.y;
|
108
|
+
tabbar.tabBar.frame = tbFrame;
|
109
|
+
|
110
|
+
return self;
|
111
|
+
}
|
112
|
+
|
113
|
+
- (void)didReceiveMemoryWarning {
|
114
|
+
// Releases the view if it doesn't have a superview.
|
115
|
+
[super didReceiveMemoryWarning];
|
116
|
+
|
117
|
+
// Release any cached data, images, etc that aren't in use.
|
118
|
+
}
|
119
|
+
|
120
|
+
- (void)viewDidUnload {
|
121
|
+
[super viewDidUnload];
|
122
|
+
self.tabbar = nil;
|
123
|
+
}
|
124
|
+
|
125
|
+
- (void)dealloc {
|
126
|
+
[tabbar release];
|
127
|
+
[super dealloc];
|
128
|
+
}
|
129
|
+
|
130
|
+
- (SimpleMainView*)subView:(int)index {
|
131
|
+
return (SimpleMainView*)[tabbar.viewControllers objectAtIndex:index];
|
132
|
+
}
|
133
|
+
|
134
|
+
- (RhoTabBarData*)tabData:(int)index {
|
135
|
+
return (RhoTabBarData*)[tabbarData objectAtIndex:index];
|
136
|
+
}
|
137
|
+
|
138
|
+
// RhoMainView implementation
|
139
|
+
|
140
|
+
- (UIView*)view {
|
141
|
+
return tabbar.view;
|
142
|
+
}
|
143
|
+
|
144
|
+
- (void)loadHTMLString:(NSString *)data {
|
145
|
+
[[self subView:[self activeTab]] loadHTMLString:data];
|
146
|
+
}
|
147
|
+
|
148
|
+
- (void)back:(int)index {
|
149
|
+
[[self subView:index] back:0];
|
150
|
+
}
|
151
|
+
|
152
|
+
- (void)forward:(int)index {
|
153
|
+
[[self subView:index] forward:0];
|
154
|
+
}
|
155
|
+
|
156
|
+
- (void)navigate:(NSString *)url tab:(int)index {
|
157
|
+
[[self subView:index] navigate:url tab:0];
|
158
|
+
}
|
159
|
+
|
160
|
+
- (void)navigateRedirect:(NSString *)url tab:(int)index {
|
161
|
+
[[self subView:index] navigateRedirect:url tab:0];
|
162
|
+
}
|
163
|
+
|
164
|
+
- (void)reload:(int)index {
|
165
|
+
[[self subView:index] reload:0];
|
166
|
+
}
|
167
|
+
|
168
|
+
- (void)executeJs:(NSString*)js tab:(int)index {
|
169
|
+
RAWLOG_INFO1("Executing JS: %s", [js UTF8String]);
|
170
|
+
[[self subView:index] executeJs:js tab:0];
|
171
|
+
}
|
172
|
+
|
173
|
+
- (NSString*)currentLocation:(int)index {
|
174
|
+
return [[self subView:index] currentLocation:0];
|
175
|
+
}
|
176
|
+
|
177
|
+
- (void)switchTab:(int)index {
|
178
|
+
tabbar.selectedIndex = index;
|
179
|
+
}
|
180
|
+
|
181
|
+
- (void)onSwitchTab {
|
182
|
+
int index = [self activeTab];
|
183
|
+
RhoTabBarData *td = [self tabData:index];
|
184
|
+
if (!td.loaded || td.reload) {
|
185
|
+
[self navigateRedirect:td.url tab:index];
|
186
|
+
td.loaded = YES;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
- (int)activeTab {
|
191
|
+
return tabbar.selectedIndex;
|
192
|
+
}
|
193
|
+
|
194
|
+
- (void)setNavBar:(NSString*)title left:(NSArray*)left right:(NSArray*)right {
|
195
|
+
[[self subView:[self activeTab]] setNavBar:title left:left right:right];
|
196
|
+
}
|
197
|
+
|
198
|
+
- (void)removeNavBar {
|
199
|
+
[[self subView:[self activeTab]] removeNavBar];
|
200
|
+
}
|
201
|
+
|
202
|
+
@end
|
@@ -0,0 +1,123 @@
|
|
1
|
+
//
|
2
|
+
// RhoMainView.m
|
3
|
+
// rhorunner
|
4
|
+
//
|
5
|
+
// Created by Dmitry Moskalchuk on 26.03.10.
|
6
|
+
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
//#import "RhoMainView.h"
|
10
|
+
#import "Rhodes.h"
|
11
|
+
#include "common/RhodesApp.h"
|
12
|
+
#include "ruby/ext/rho/rhoruby.h"
|
13
|
+
|
14
|
+
@interface RhoWebViewNavigateTask : NSObject {}
|
15
|
+
+ (void)run:(NSString*)url :(NSValue*)index;
|
16
|
+
@end
|
17
|
+
|
18
|
+
@implementation RhoWebViewNavigateTask
|
19
|
+
+ (void)run:(NSString*)url :(NSValue*)value {
|
20
|
+
// Workaround:
|
21
|
+
// Navigation MUST be done through 'redirect_to' - otherwise WebView does not
|
22
|
+
// perform actual url loading from time to time
|
23
|
+
int index;
|
24
|
+
[value getValue:&index];
|
25
|
+
[[[Rhodes sharedInstance] mainView] navigateRedirect:url tab:index];
|
26
|
+
}
|
27
|
+
@end
|
28
|
+
|
29
|
+
@interface RhoWebViewNavigateBackTask : NSObject {}
|
30
|
+
+ (void)run;
|
31
|
+
@end
|
32
|
+
|
33
|
+
@implementation RhoWebViewNavigateBackTask
|
34
|
+
+ (void)run {
|
35
|
+
id mainView = [[Rhodes sharedInstance] mainView];
|
36
|
+
[mainView back:[mainView activeTab]];
|
37
|
+
}
|
38
|
+
@end
|
39
|
+
|
40
|
+
@interface RhoWebViewActiveTabTask : NSObject {}
|
41
|
+
+ (void)run:(NSValue*)value;
|
42
|
+
@end
|
43
|
+
|
44
|
+
@implementation RhoWebViewActiveTabTask
|
45
|
+
+ (void)run:(NSValue*)value {
|
46
|
+
int *pIndex = [value pointerValue];
|
47
|
+
*pIndex = [[[Rhodes sharedInstance] mainView] activeTab];
|
48
|
+
}
|
49
|
+
@end
|
50
|
+
|
51
|
+
@interface RhoWebViewReloadTask : NSObject {}
|
52
|
+
+ (void)run:(NSValue*)value;
|
53
|
+
@end
|
54
|
+
|
55
|
+
@implementation RhoWebViewReloadTask
|
56
|
+
+ (void)run:(NSValue*)value {
|
57
|
+
int index;
|
58
|
+
[value getValue:&index];
|
59
|
+
[[[Rhodes sharedInstance] mainView] reload:index];
|
60
|
+
}
|
61
|
+
@end
|
62
|
+
|
63
|
+
@interface RhoWebViewExecuteJsTask : NSObject {}
|
64
|
+
+ (void)run:(NSString*)js :(NSValue*)value;
|
65
|
+
@end
|
66
|
+
|
67
|
+
@implementation RhoWebViewExecuteJsTask
|
68
|
+
+ (void)run:(NSString*)js :(NSValue*)value {
|
69
|
+
int index;
|
70
|
+
[value getValue:&index];
|
71
|
+
[[[Rhodes sharedInstance] mainView] executeJs:js tab:index];
|
72
|
+
}
|
73
|
+
@end
|
74
|
+
|
75
|
+
|
76
|
+
void rho_webview_navigate(const char* url, int index) {
|
77
|
+
id runnable = [RhoWebViewNavigateTask class];
|
78
|
+
id arg1 = [NSString stringWithUTF8String:url];
|
79
|
+
id arg2 = [NSValue valueWithBytes:&index objCType:@encode(int)];
|
80
|
+
[Rhodes performOnUiThread:runnable arg:arg1 arg:arg2 wait:NO];
|
81
|
+
}
|
82
|
+
|
83
|
+
int rho_webview_active_tab() {
|
84
|
+
int index;
|
85
|
+
id runnable = [RhoWebViewActiveTabTask class];
|
86
|
+
id arg = [NSValue valueWithPointer:&index];
|
87
|
+
[Rhodes performOnUiThread:runnable arg:arg wait:YES];
|
88
|
+
return index;
|
89
|
+
}
|
90
|
+
|
91
|
+
void rho_webview_refresh(int index) {
|
92
|
+
id runnable = [RhoWebViewReloadTask class];
|
93
|
+
id arg = [NSValue valueWithBytes:&index objCType:@encode(int)];
|
94
|
+
[Rhodes performOnUiThread:runnable arg:arg wait:NO];
|
95
|
+
}
|
96
|
+
|
97
|
+
const char* rho_webview_execute_js(const char* js, int index) {
|
98
|
+
id runnable = [RhoWebViewExecuteJsTask class];
|
99
|
+
id arg1 = [NSString stringWithUTF8String:js];
|
100
|
+
id arg2 = [NSValue valueWithBytes:&index objCType:@encode(int)];
|
101
|
+
[Rhodes performOnUiThread:runnable arg:arg1 arg:arg2 wait:NO];
|
102
|
+
return "";
|
103
|
+
}
|
104
|
+
|
105
|
+
const char* rho_webview_current_location(int index) {
|
106
|
+
return rho_rhodesapp_getcurrenturl(index);
|
107
|
+
}
|
108
|
+
|
109
|
+
void rho_webview_set_menu_items(VALUE valMenu) {
|
110
|
+
rho_rhodesapp_setViewMenu(valMenu);
|
111
|
+
}
|
112
|
+
|
113
|
+
void rho_webview_navigate_back()
|
114
|
+
{
|
115
|
+
id runnable = [RhoWebViewNavigateBackTask class];
|
116
|
+
[Rhodes performOnUiThread:runnable wait:NO];
|
117
|
+
}
|
118
|
+
|
119
|
+
void rho_webview_full_screen_mode(int enable)
|
120
|
+
{
|
121
|
+
[Rhodes setStatusBarHidden:enable];
|
122
|
+
}
|
123
|
+
|
@@ -72,13 +72,13 @@ int isNetworkAvailableFlags(SCNetworkReachabilityFlags *outFlags)
|
|
72
72
|
BOOL isReachable = FALSE;
|
73
73
|
int reachable = 0;
|
74
74
|
SCNetworkReachabilityRef defaultRouteReachability;
|
75
|
-
NSString *hostNameOrAddress;
|
75
|
+
//NSString *hostNameOrAddress;
|
76
76
|
bzero(&zeroAddress, sizeof(zeroAddress));
|
77
77
|
zeroAddress.sin_len = sizeof(zeroAddress);
|
78
78
|
zeroAddress.sin_family = AF_INET;
|
79
79
|
|
80
80
|
defaultRouteReachability = SCNetworkReachabilityCreateWithAddress(NULL, (struct sockaddr *)&zeroAddress);
|
81
|
-
hostNameOrAddress = @"0.0.0.0";
|
81
|
+
//hostNameOrAddress = @"0.0.0.0";
|
82
82
|
|
83
83
|
SCNetworkReachabilityFlags flags;
|
84
84
|
BOOL gotFlags = SCNetworkReachabilityGetFlags(defaultRouteReachability, &flags);
|
@@ -47,7 +47,7 @@ void SSLImpl::freeStorage(void *ptr)
|
|
47
47
|
free(ptr);
|
48
48
|
}
|
49
49
|
|
50
|
-
CURLcode SSLImpl::connect(int sockfd, int nonblocking, int *done, void *storage)
|
50
|
+
CURLcode SSLImpl::connect(int sockfd, int nonblocking, int *done, int ssl_verify_peer, void *storage)
|
51
51
|
{
|
52
52
|
ssl_data_t *data = (ssl_data_t*)storage;
|
53
53
|
|
@@ -56,6 +56,18 @@ CURLcode SSLImpl::connect(int sockfd, int nonblocking, int *done, void *storage)
|
|
56
56
|
CFReadStreamSetProperty(data->readStream, kCFStreamPropertySocketSecurityLevel, kCFStreamSocketSecurityLevelSSLv3);
|
57
57
|
CFWriteStreamSetProperty(data->writeStream, kCFStreamPropertySocketSecurityLevel, kCFStreamSocketSecurityLevelSSLv3);
|
58
58
|
|
59
|
+
CFMutableDictionaryRef dict = CFDictionaryCreateMutable(kCFAllocatorDefault, 0,
|
60
|
+
&kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
|
61
|
+
if (!dict) {
|
62
|
+
RAWLOG_ERROR("Can not allocate CFMutableDictionaryRef");
|
63
|
+
return CURLE_SSL_CONNECT_ERROR;
|
64
|
+
}
|
65
|
+
|
66
|
+
CFDictionarySetValue(dict, kCFStreamSSLValidatesCertificateChain, ssl_verify_peer ? kCFBooleanTrue : kCFBooleanFalse);
|
67
|
+
CFReadStreamSetProperty(data->readStream, kCFStreamPropertySSLSettings, dict);
|
68
|
+
CFWriteStreamSetProperty(data->writeStream, kCFStreamPropertySSLSettings, dict);
|
69
|
+
CFRelease(dict);
|
70
|
+
|
59
71
|
if (!CFReadStreamOpen(data->readStream) || !CFWriteStreamOpen(data->writeStream)) {
|
60
72
|
RAWLOG_ERROR("SSL connection error");
|
61
73
|
return CURLE_SSL_CONNECT_ERROR;
|
@@ -22,7 +22,7 @@ public:
|
|
22
22
|
void *createStorage();
|
23
23
|
void freeStorage(void *ptr);
|
24
24
|
|
25
|
-
CURLcode connect(int sockfd, int nonblocking, int *done, void *storage);
|
25
|
+
CURLcode connect(int sockfd, int nonblocking, int *done, int ssl_verify_peer, void *storage);
|
26
26
|
void shutdown(void *storage);
|
27
27
|
ssize_t send(const void *mem, size_t len, void *storage);
|
28
28
|
ssize_t recv(char *buf, size_t size, int *wouldblock, void *storage);
|
data/platform/iphone/Info.plist
CHANGED
@@ -7,9 +7,13 @@
|
|
7
7
|
objects = {
|
8
8
|
|
9
9
|
/* Begin PBXBuildFile section */
|
10
|
+
5C2F10BB116146930054AC80 /* RhoRuby.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C2F10B9116146930054AC80 /* RhoRuby.cpp */; };
|
11
|
+
5C2F10BC116146930054AC80 /* RhoRuby.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C2F10BA116146930054AC80 /* RhoRuby.h */; };
|
10
12
|
5C5335530FC2977600F268F0 /* IRhoThreadImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C5335500FC2977600F268F0 /* IRhoThreadImpl.h */; };
|
11
13
|
5C5335540FC2977600F268F0 /* RhoThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C5335510FC2977600F268F0 /* RhoThread.cpp */; };
|
12
14
|
5C5335550FC2977600F268F0 /* RhoThread.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C5335520FC2977600F268F0 /* RhoThread.h */; };
|
15
|
+
5C59BF4D115B4BC300E96ADE /* unzip.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C59BF4B115B4BC300E96ADE /* unzip.cpp */; };
|
16
|
+
5C59BF4E115B4BC300E96ADE /* unzip.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C59BF4C115B4BC300E96ADE /* unzip.h */; };
|
13
17
|
5C6855E910A02EAA008DA047 /* RhodesApp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C6855E610A02EAA008DA047 /* RhodesApp.cpp */; };
|
14
18
|
5C6855EA10A02EAA008DA047 /* RhodesApp.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C6855E710A02EAA008DA047 /* RhodesApp.h */; };
|
15
19
|
5C6B448C0F946589003CB43A /* RhoConf.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5C6B448A0F946589003CB43A /* RhoConf.cpp */; };
|
@@ -46,6 +50,8 @@
|
|
46
50
|
5C98174E0FBC4FCE002597A5 /* irhoclassfactory.h in Headers */ = {isa = PBXBuildFile; fileRef = 5C98174B0FBC4FCE002597A5 /* irhoclassfactory.h */; };
|
47
51
|
5CBD462A1087399700107D0D /* URI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5CBD46271087399700107D0D /* URI.cpp */; };
|
48
52
|
5CBD462B1087399700107D0D /* URI.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CBD46281087399700107D0D /* URI.h */; };
|
53
|
+
5CCD7EBC116CE2D5005E6CA3 /* AppMenu.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5CCD7EBA116CE2D5005E6CA3 /* AppMenu.cpp */; };
|
54
|
+
5CCD7EBD116CE2D5005E6CA3 /* AppMenu.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CCD7EBB116CE2D5005E6CA3 /* AppMenu.h */; };
|
49
55
|
5CE294121009D8D9009A75F6 /* isysteminfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CE294111009D8D9009A75F6 /* isysteminfo.h */; };
|
50
56
|
5CECDBB3113FE3620084A75B /* System.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5CECDBB2113FE3620084A75B /* System.cpp */; };
|
51
57
|
BD2C950810AE0D4B008D4692 /* PosixThreadImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BD2C950610AE0D4B008D4692 /* PosixThreadImpl.cpp */; };
|
@@ -64,9 +70,13 @@
|
|
64
70
|
/* End PBXBuildFile section */
|
65
71
|
|
66
72
|
/* Begin PBXFileReference section */
|
73
|
+
5C2F10B9116146930054AC80 /* RhoRuby.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RhoRuby.cpp; path = ../../shared/rubyext/RhoRuby.cpp; sourceTree = SOURCE_ROOT; };
|
74
|
+
5C2F10BA116146930054AC80 /* RhoRuby.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RhoRuby.h; path = ../../shared/rubyext/RhoRuby.h; sourceTree = SOURCE_ROOT; };
|
67
75
|
5C5335500FC2977600F268F0 /* IRhoThreadImpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = IRhoThreadImpl.h; path = ../../shared/common/IRhoThreadImpl.h; sourceTree = SOURCE_ROOT; };
|
68
76
|
5C5335510FC2977600F268F0 /* RhoThread.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RhoThread.cpp; path = ../../shared/common/RhoThread.cpp; sourceTree = SOURCE_ROOT; };
|
69
77
|
5C5335520FC2977600F268F0 /* RhoThread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RhoThread.h; path = ../../shared/common/RhoThread.h; sourceTree = SOURCE_ROOT; };
|
78
|
+
5C59BF4B115B4BC300E96ADE /* unzip.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = unzip.cpp; path = ../../shared/unzip/unzip.cpp; sourceTree = SOURCE_ROOT; };
|
79
|
+
5C59BF4C115B4BC300E96ADE /* unzip.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = unzip.h; path = ../../shared/unzip/unzip.h; sourceTree = SOURCE_ROOT; };
|
70
80
|
5C6855E610A02EAA008DA047 /* RhodesApp.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RhodesApp.cpp; path = ../../shared/common/RhodesApp.cpp; sourceTree = SOURCE_ROOT; };
|
71
81
|
5C6855E710A02EAA008DA047 /* RhodesApp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RhodesApp.h; path = ../../shared/common/RhodesApp.h; sourceTree = SOURCE_ROOT; };
|
72
82
|
5C6B448A0F946589003CB43A /* RhoConf.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RhoConf.cpp; path = ../../shared/common/RhoConf.cpp; sourceTree = SOURCE_ROOT; };
|
@@ -103,6 +113,8 @@
|
|
103
113
|
5C98174B0FBC4FCE002597A5 /* irhoclassfactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = irhoclassfactory.h; path = ../../shared/common/irhoclassfactory.h; sourceTree = SOURCE_ROOT; };
|
104
114
|
5CBD46271087399700107D0D /* URI.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = URI.cpp; path = ../../shared/net/URI.cpp; sourceTree = SOURCE_ROOT; };
|
105
115
|
5CBD46281087399700107D0D /* URI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = URI.h; path = ../../shared/net/URI.h; sourceTree = SOURCE_ROOT; };
|
116
|
+
5CCD7EBA116CE2D5005E6CA3 /* AppMenu.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AppMenu.cpp; path = ../../shared/common/AppMenu.cpp; sourceTree = SOURCE_ROOT; };
|
117
|
+
5CCD7EBB116CE2D5005E6CA3 /* AppMenu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppMenu.h; path = ../../shared/common/AppMenu.h; sourceTree = SOURCE_ROOT; };
|
106
118
|
5CE294111009D8D9009A75F6 /* isysteminfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = isysteminfo.h; path = ../../shared/common/isysteminfo.h; sourceTree = SOURCE_ROOT; };
|
107
119
|
5CECDBB2113FE3620084A75B /* System.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = System.cpp; path = ../../shared/rubyext/System.cpp; sourceTree = SOURCE_ROOT; };
|
108
120
|
BD2C950610AE0D4B008D4692 /* PosixThreadImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = PosixThreadImpl.cpp; path = ../../shared/common/PosixThreadImpl.cpp; sourceTree = SOURCE_ROOT; };
|
@@ -145,6 +157,7 @@
|
|
145
157
|
08FB7795FE84155DC02AAC07 /* Source */ = {
|
146
158
|
isa = PBXGroup;
|
147
159
|
children = (
|
160
|
+
5C59BF4A115B4BA300E96ADE /* unzip */,
|
148
161
|
5C798931113BD10C005F8736 /* rubyext */,
|
149
162
|
5CBD46251087397B00107D0D /* net */,
|
150
163
|
5C6B45280F9468C5003CB43A /* statistic */,
|
@@ -162,6 +175,15 @@
|
|
162
175
|
name = Products;
|
163
176
|
sourceTree = "<group>";
|
164
177
|
};
|
178
|
+
5C59BF4A115B4BA300E96ADE /* unzip */ = {
|
179
|
+
isa = PBXGroup;
|
180
|
+
children = (
|
181
|
+
5C59BF4B115B4BC300E96ADE /* unzip.cpp */,
|
182
|
+
5C59BF4C115B4BC300E96ADE /* unzip.h */,
|
183
|
+
);
|
184
|
+
name = unzip;
|
185
|
+
sourceTree = "<group>";
|
186
|
+
};
|
165
187
|
5C6B45280F9468C5003CB43A /* statistic */ = {
|
166
188
|
isa = PBXGroup;
|
167
189
|
children = (
|
@@ -174,6 +196,8 @@
|
|
174
196
|
5C7162600F8B7DEE0096B6AA /* common */ = {
|
175
197
|
isa = PBXGroup;
|
176
198
|
children = (
|
199
|
+
5CCD7EBA116CE2D5005E6CA3 /* AppMenu.cpp */,
|
200
|
+
5CCD7EBB116CE2D5005E6CA3 /* AppMenu.h */,
|
177
201
|
BDD11ECB113664E700349BE3 /* rhoparams.c */,
|
178
202
|
BDD11ECC113664E700349BE3 /* rhoparams.h */,
|
179
203
|
BD2C950610AE0D4B008D4692 /* PosixThreadImpl.cpp */,
|
@@ -226,6 +250,8 @@
|
|
226
250
|
5C798931113BD10C005F8736 /* rubyext */ = {
|
227
251
|
isa = PBXGroup;
|
228
252
|
children = (
|
253
|
+
5C2F10B9116146930054AC80 /* RhoRuby.cpp */,
|
254
|
+
5C2F10BA116146930054AC80 /* RhoRuby.h */,
|
229
255
|
5CECDBB2113FE3620084A75B /* System.cpp */,
|
230
256
|
5C798932113BD148005F8736 /* GeoLocation.cpp */,
|
231
257
|
5C798933113BD148005F8736 /* GeoLocation.h */,
|
@@ -299,6 +325,9 @@
|
|
299
325
|
BDD11ECE113664E700349BE3 /* rhoparams.h in Headers */,
|
300
326
|
5C798935113BD148005F8736 /* GeoLocation.h in Headers */,
|
301
327
|
BD8DF8891147C8090041A968 /* SplashScreen.h in Headers */,
|
328
|
+
5C59BF4E115B4BC300E96ADE /* unzip.h in Headers */,
|
329
|
+
5C2F10BC116146930054AC80 /* RhoRuby.h in Headers */,
|
330
|
+
5CCD7EBD116CE2D5005E6CA3 /* AppMenu.h in Headers */,
|
302
331
|
);
|
303
332
|
runOnlyForDeploymentPostprocessing = 0;
|
304
333
|
};
|
@@ -364,6 +393,9 @@
|
|
364
393
|
5C798934113BD148005F8736 /* GeoLocation.cpp in Sources */,
|
365
394
|
5CECDBB3113FE3620084A75B /* System.cpp in Sources */,
|
366
395
|
BD8DF8881147C8090041A968 /* SplashScreen.cpp in Sources */,
|
396
|
+
5C59BF4D115B4BC300E96ADE /* unzip.cpp in Sources */,
|
397
|
+
5C2F10BB116146930054AC80 /* RhoRuby.cpp in Sources */,
|
398
|
+
5CCD7EBC116CE2D5005E6CA3 /* AppMenu.cpp in Sources */,
|
367
399
|
);
|
368
400
|
runOnlyForDeploymentPostprocessing = 0;
|
369
401
|
};
|
@@ -382,6 +414,10 @@
|
|
382
414
|
INSTALL_PATH = /usr/local/lib;
|
383
415
|
ONLY_ACTIVE_ARCH = YES;
|
384
416
|
OTHER_CFLAGS = "";
|
417
|
+
OTHER_CPLUSPLUSFLAGS = (
|
418
|
+
"$(OTHER_CFLAGS)",
|
419
|
+
"-fvisibility=hidden",
|
420
|
+
);
|
385
421
|
PRODUCT_NAME = rholib;
|
386
422
|
SDKROOT = iphonesimulator2.2.1;
|
387
423
|
SYMROOT = ../build;
|
@@ -398,6 +434,10 @@
|
|
398
434
|
INSTALL_PATH = /usr/local/lib;
|
399
435
|
ONLY_ACTIVE_ARCH = YES;
|
400
436
|
OTHER_CFLAGS = "";
|
437
|
+
OTHER_CPLUSPLUSFLAGS = (
|
438
|
+
"$(OTHER_CFLAGS)",
|
439
|
+
"-fvisibility=hidden",
|
440
|
+
);
|
401
441
|
PRODUCT_NAME = rholib;
|
402
442
|
SDKROOT = iphoneos2.2.1;
|
403
443
|
SYMROOT = ../build;
|
@@ -452,6 +492,10 @@
|
|
452
492
|
INSTALL_PATH = /usr/local/lib;
|
453
493
|
ONLY_ACTIVE_ARCH = YES;
|
454
494
|
OTHER_CFLAGS = "";
|
495
|
+
OTHER_CPLUSPLUSFLAGS = (
|
496
|
+
"$(OTHER_CFLAGS)",
|
497
|
+
"-fvisibility=hidden",
|
498
|
+
);
|
455
499
|
PRODUCT_NAME = rholib;
|
456
500
|
SDKROOT = iphoneos2.2.1;
|
457
501
|
SYMROOT = ../build;
|