rhodes 3.2.1 → 3.2.2.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/Manifest.txt +36 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/jni/src/barcode.cpp +24 -3
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/CaptureActivity.java +11 -280
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/CameraManager.java +11 -4
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/rhomobile/barcode/Barcode.java +2 -1
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Barcode.xcodeproj/project.pbxproj +36 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.h +25 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.mm +195 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.h +59 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.m +346 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewFactory.h +7 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewFactory.mm +58 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewFactoryRegister.mm +18 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewManager.h +16 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewManager.mm +32 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/barcode.m +9 -2
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCameraSimulator.h +45 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCaptureReader.h +7 -1
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderView.h +21 -4
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderViewController.h +32 -2
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarSDK.h +1 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar.h +26 -5
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Decoder.h +1 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Symbol.h +2 -3
- data/lib/extensions/barcode/ext/barcode/platform/iphone/ZBarSDK/libzbar.a +0 -0
- data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode.i +3 -2
- data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode_wrap.c +7 -4
- data/lib/extensions/barcode/ext/barcode/shared/src/zbar.c +2 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +1 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraNewService.java +7 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraOldService.java +5 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraSemiService.java +8 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraService.java +4 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/ImageCapture.java +11 -6
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +21 -13
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +33 -11
- data/platform/android/build/android.rake +63 -1
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +4 -0
- data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +4 -0
- data/platform/iphone/icon.png +0 -0
- data/platform/iphone/rbuild/iphone.rake +6 -4
- data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +4 -1
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +4 -1
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +4 -0
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +4 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.Libraries.dll +0 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.dll +0 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/Microsoft.Dynamic.dll +0 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/Microsoft.Scripting.Core.dll +0 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/Microsoft.Scripting.dll +0 -0
- data/res/generators/rhogen.rb +191 -0
- data/res/generators/templates/extension/app/MontanaTest/controller.rb +20 -0
- data/res/generators/templates/extension/app/MontanaTest/index.erb +17 -0
- data/res/generators/templates/extension/extensions/montana/ext.yml +4 -0
- data/res/generators/templates/extension/extensions/montana/ext/build +17 -0
- data/res/generators/templates/extension/extensions/montana/ext/build.bat +36 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/Rakefile +77 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/ext_build.files +1 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/jni/src/montana.cpp +28 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/src/com/montana/Montana.java +10 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/bb/Montana.files +1 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/bb/Rakefile +97 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/bb/montana.jdp +48 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/bb/src/com/montana/Montana.java +118 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Classes/Montana.h +4 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Classes/Montana.m +24 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Montana.xcodeproj/project.pbxproj +300 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Montana_Prefix.pch +7 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/iphone/Rakefile +74 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/wm/Montana.vcproj +331 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/wm/Rakefile +62 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/wm/src/montana_wm.cpp +40 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/wm/src/montana_wm.h +2 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/shared/ruby/montana.i +15 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/shared/ruby/montana_wrap.c +2287 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/shared/src/montana.c +20 -0
- data/res/generators/templates/extension/extensions/montana/montana.rb +13 -0
- data/spec/framework_spec/build.yml +1 -1
- data/spec/phone_spec/build.yml +1 -1
- data/version +1 -1
- metadata +42 -5
@@ -0,0 +1 @@
|
|
1
|
+
ext/<%= name.downcase %>/platform/android/src/com/<%= name.downcase %>/<%= name.camel_case %>.java
|
@@ -0,0 +1,28 @@
|
|
1
|
+
#include <rhodes.h>
|
2
|
+
#include "rubyext/WebView.h"
|
3
|
+
#include <stdlib.h>
|
4
|
+
#include "ruby/ext/rho/rhoruby.h"
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
extern "C" VALUE <%= name.downcase %>_native_process_string(const char* str) {
|
9
|
+
|
10
|
+
JNIEnv *env = jnienv();
|
11
|
+
jclass cls = rho_find_class(env, "com/<%= name.downcase %>/<%= name.camel_case %>");
|
12
|
+
if (!cls) return rho_ruby_get_NIL();;
|
13
|
+
jmethodID mid = env->GetStaticMethodID( cls, "processString", "(Ljava/lang/String;)Ljava/lang/String;");
|
14
|
+
if (!mid) return rho_ruby_get_NIL();;
|
15
|
+
jstring objStr = env->NewStringUTF(str);
|
16
|
+
jstring jstr = (jstring)env->CallStaticObjectMethod(cls, mid, objStr);
|
17
|
+
env->DeleteLocalRef(objStr);
|
18
|
+
const char* buf = env->GetStringUTFChars(jstr,0);
|
19
|
+
VALUE result = rho_ruby_create_string(buf);
|
20
|
+
env->ReleaseStringUTFChars(jstr, buf);
|
21
|
+
return result;
|
22
|
+
}
|
23
|
+
|
24
|
+
|
25
|
+
extern "C" int <%= name.downcase %>_calc_summ(int x, int y) {
|
26
|
+
return (x+y);
|
27
|
+
}
|
28
|
+
|
data/res/generators/templates/extension/extensions/montana/ext/montana/platform/bb/Montana.files
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
src\com\<%= name.downcase %>\<%= name.camel_case %>.java
|
@@ -0,0 +1,97 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
|
4
|
+
USE_STLPORT = true
|
5
|
+
|
6
|
+
|
7
|
+
def build_extension
|
8
|
+
|
9
|
+
require File.join($rhoroot, 'lib/build/jake.rb')
|
10
|
+
|
11
|
+
vsrclist = "<%= name.camel_case %>.files"
|
12
|
+
|
13
|
+
args = []
|
14
|
+
args << "-g"
|
15
|
+
args << "-d"
|
16
|
+
args << $tempdir
|
17
|
+
args << "-classpath"
|
18
|
+
args << $rubyvmjar
|
19
|
+
args << "-bootclasspath"
|
20
|
+
args << $jde + "/lib/net_rim_api.jar"
|
21
|
+
args << "-source"
|
22
|
+
args << "1.3"
|
23
|
+
args << "-target"
|
24
|
+
args << "1.3"
|
25
|
+
args << "-nowarn"
|
26
|
+
args << "@#{vsrclist}"
|
27
|
+
puts "\texecuting javac"
|
28
|
+
puts Jake.run($javac,args)
|
29
|
+
unless $? == 0
|
30
|
+
puts "Error compiling java code"
|
31
|
+
exit 1
|
32
|
+
end
|
33
|
+
$stdout.flush
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
args2 = []
|
38
|
+
args2 << "cf"
|
39
|
+
args2 << $targetdir+"/<%= name.camel_case %>.jar"
|
40
|
+
#args2 << manifest
|
41
|
+
args2 << "-C"
|
42
|
+
args2 << $tempdir
|
43
|
+
args2 << "."
|
44
|
+
|
45
|
+
|
46
|
+
puts "\texecuting jar"
|
47
|
+
puts Jake.run($jar, args2)
|
48
|
+
unless $? == 0
|
49
|
+
puts "Error making JAR"
|
50
|
+
exit 1
|
51
|
+
end
|
52
|
+
$stdout.flush
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
end
|
57
|
+
|
58
|
+
namespace "build" do
|
59
|
+
task :config do
|
60
|
+
$targetdir = ENV['TARGET_TEMP_DIR']
|
61
|
+
raise "TARGET_TEMP_DIR is not set" if $targetdir.nil?
|
62
|
+
|
63
|
+
$javac = ENV['JAVAC_EXE']
|
64
|
+
raise "JAVAC_EXE is not set" if $javac.nil?
|
65
|
+
|
66
|
+
$jar = ENV['JAR_EXE']
|
67
|
+
raise "JAR_EXE is not set" if $jar.nil?
|
68
|
+
|
69
|
+
$jde = ENV['JDE_HOME']
|
70
|
+
raise "JDE_HOME is not set" if $jde.nil?
|
71
|
+
|
72
|
+
$tempdir = ENV['TEMP_FILES_DIR']
|
73
|
+
raise "TEMP_FILES_DIR is not set" if $tempdir.nil?
|
74
|
+
|
75
|
+
$jde = ENV['JDE_HOME']
|
76
|
+
raise "JDE_HOME is not set" if $jde.nil?
|
77
|
+
|
78
|
+
$rubyvmjar = ENV['RUBYVM_JAR']
|
79
|
+
raise "RUBYVM_JAR is not set" if $rubyvmjar.nil?
|
80
|
+
|
81
|
+
$rhoroot = ENV['RHO_ROOT']
|
82
|
+
raise "RHO_ROOT is not set" if $rhoroot.nil?
|
83
|
+
|
84
|
+
$bbver = ENV['BB_SDK_VERSION']
|
85
|
+
raise "BB_SDK_VERSION is not set" if $bbver.nil?
|
86
|
+
|
87
|
+
end
|
88
|
+
|
89
|
+
task :all => :config do
|
90
|
+
|
91
|
+
|
92
|
+
build_extension
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
task :default => "build:all"
|
data/res/generators/templates/extension/extensions/montana/ext/montana/platform/bb/montana.jdp
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
## RIM Java Development Environment
|
2
|
+
# RIM Project file
|
3
|
+
#
|
4
|
+
# This file is generated and managed by BlackBerry developer tools.
|
5
|
+
# It SHOULD NOT BE modified manually.
|
6
|
+
#
|
7
|
+
AddOn=0
|
8
|
+
AlwaysBuild=0
|
9
|
+
[AlxImports
|
10
|
+
]
|
11
|
+
AutoRestart=0
|
12
|
+
[ClassProtection
|
13
|
+
]
|
14
|
+
[CustomBuildFiles
|
15
|
+
]
|
16
|
+
[CustomBuildRules
|
17
|
+
]
|
18
|
+
[DefFiles
|
19
|
+
]
|
20
|
+
[DependsOn
|
21
|
+
]
|
22
|
+
ExcludeFromBuildAll=0
|
23
|
+
[Files
|
24
|
+
src\com\<%= name.downcase %>\<%= name.camel_case %>.java
|
25
|
+
]
|
26
|
+
HaveAlxImports=0
|
27
|
+
HaveDefs=0
|
28
|
+
HaveImports=0
|
29
|
+
[Icons
|
30
|
+
]
|
31
|
+
[ImplicitRules
|
32
|
+
]
|
33
|
+
[Imports
|
34
|
+
]
|
35
|
+
Listing=0
|
36
|
+
Options=-quiet
|
37
|
+
OutputFileName=<%= name.downcase %>
|
38
|
+
[PackageProtection
|
39
|
+
]
|
40
|
+
RibbonPosition=0
|
41
|
+
[RolloverIcons
|
42
|
+
]
|
43
|
+
RunOnStartup=0
|
44
|
+
StartupTier=7
|
45
|
+
SystemModule=0
|
46
|
+
Type=0
|
47
|
+
UserData=|src
|
48
|
+
Version=1.51
|
@@ -0,0 +1,118 @@
|
|
1
|
+
package com.<%= name.downcase %>;
|
2
|
+
|
3
|
+
import com.rho.RhodesApp;
|
4
|
+
import com.rho.file.SimpleFile;
|
5
|
+
import com.rho.net.IHttpConnection;
|
6
|
+
import com.rho.net.RhoConnection;
|
7
|
+
import com.rho.net.URI;
|
8
|
+
|
9
|
+
import javax.microedition.io.Connector;
|
10
|
+
import javax.microedition.io.file.FileConnection;
|
11
|
+
import javax.microedition.lcdui.Image;
|
12
|
+
import java.io.IOException;
|
13
|
+
import java.io.InputStream;
|
14
|
+
import java.util.Hashtable;
|
15
|
+
|
16
|
+
import com.rho.RhoClassFactory;
|
17
|
+
import com.rho.RhoEmptyLogger;
|
18
|
+
import com.rho.RhoLogger;
|
19
|
+
import com.rho.RhoRuby;
|
20
|
+
|
21
|
+
import com.xruby.runtime.builtin.ObjectFactory;
|
22
|
+
import com.xruby.runtime.builtin.RubyString;
|
23
|
+
import com.xruby.runtime.builtin.RubyFixnum;
|
24
|
+
import com.xruby.runtime.builtin.RubyInteger;
|
25
|
+
import com.xruby.runtime.lang.*;
|
26
|
+
|
27
|
+
public class <%= name.camel_case %> implements Runnable {
|
28
|
+
|
29
|
+
private static final RhoLogger LOG = RhoLogger.RHO_STRIP_LOG ? new RhoEmptyLogger() :
|
30
|
+
new RhoLogger("<%= name.camel_case %>");
|
31
|
+
|
32
|
+
public static RubyModule <%= name.camel_case %>Module;
|
33
|
+
|
34
|
+
|
35
|
+
public String doProcessString( String str ) {
|
36
|
+
return "<BB>" + str + "<BB>";
|
37
|
+
}
|
38
|
+
|
39
|
+
public int doCalcSumm( int x, int y ) {
|
40
|
+
return (x+y);
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
public void run() {
|
47
|
+
LOG.INFO("$$$ Register <%= name.camel_case %> Ruby class");
|
48
|
+
// register Ruby Module
|
49
|
+
<%= name.camel_case %>Module = RubyAPI.defineModule("<%= name.camel_case %>");
|
50
|
+
// register Ruby method
|
51
|
+
<%= name.camel_case %>Module.getSingletonClass().defineMethod("native_process_string", new RubyOneArgMethod() {
|
52
|
+
protected RubyValue run(RubyValue receiver, RubyValue arg0, RubyBlock block) {
|
53
|
+
if ( arg0 instanceof RubyString )
|
54
|
+
{
|
55
|
+
String str = arg0.toString();
|
56
|
+
String result = doProcessString(str);
|
57
|
+
return ObjectFactory.createString(result);
|
58
|
+
}
|
59
|
+
else {
|
60
|
+
throw new RubyException(RubyRuntime.ArgumentErrorClass, "in <%= name.camel_case %>.native_process_string: wrong argument type.Should be String");
|
61
|
+
}
|
62
|
+
}
|
63
|
+
});
|
64
|
+
<%= name.camel_case %>Module.getSingletonClass().defineMethod("calc_summ", new RubyTwoArgMethod() {
|
65
|
+
protected RubyValue run(RubyValue receiver, RubyValue arg1, RubyValue arg2, RubyBlock block) {
|
66
|
+
try {
|
67
|
+
int x = 0;
|
68
|
+
int y = 0;
|
69
|
+
if (arg1 instanceof RubyFixnum) {
|
70
|
+
RubyFixnum rv = (RubyFixnum)arg1;
|
71
|
+
x = rv.toInt();
|
72
|
+
}
|
73
|
+
else {
|
74
|
+
if (arg1 instanceof RubyInteger) {
|
75
|
+
RubyInteger rv = (RubyInteger)arg1;
|
76
|
+
x = rv.toInt();
|
77
|
+
}
|
78
|
+
else {
|
79
|
+
if (arg1 instanceof RubySymbol) {
|
80
|
+
RubySymbol rv = (RubySymbol)arg1;
|
81
|
+
x = rv.toInt();
|
82
|
+
}
|
83
|
+
else {
|
84
|
+
throw new RubyException(RubyRuntime.ArgumentErrorClass, "in <%= name.camel_case %>.calc_summ: wrong argument type.Should be Fixnum or Integer");
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
if (arg2 instanceof RubyFixnum) {
|
89
|
+
RubyFixnum rv = (RubyFixnum)arg2;
|
90
|
+
y = rv.toInt();
|
91
|
+
}
|
92
|
+
else {
|
93
|
+
if (arg2 instanceof RubyInteger) {
|
94
|
+
RubyInteger rv = (RubyInteger)arg2;
|
95
|
+
y = rv.toInt();
|
96
|
+
}
|
97
|
+
else {
|
98
|
+
if (arg2 instanceof RubySymbol) {
|
99
|
+
RubySymbol rv = (RubySymbol)arg2;
|
100
|
+
y = rv.toInt();
|
101
|
+
}
|
102
|
+
else {
|
103
|
+
throw new RubyException(RubyRuntime.ArgumentErrorClass, "in <%= name.camel_case %>.calc_summ: wrong argument type.Should be Fixnum or Integer");
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
int res = doCalcSumm(x,y);
|
108
|
+
return ObjectFactory.createInteger(res);
|
109
|
+
} catch(Exception e) {
|
110
|
+
e.printStackTrace();
|
111
|
+
LOG.ERROR("<%= name.camel_case %>.calc_summ failed with exception", e);
|
112
|
+
throw (e instanceof RubyException ? (RubyException)e : new RubyException(e.getMessage()));
|
113
|
+
}
|
114
|
+
}
|
115
|
+
});
|
116
|
+
}
|
117
|
+
|
118
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
#import "<%= name.camel_case %>.h"
|
3
|
+
|
4
|
+
#include "ruby/ext/rho/rhoruby.h"
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
VALUE <%= name.downcase %>_native_process_string(const char* str) {
|
9
|
+
|
10
|
+
NSString* os_string = @"<iOS>";
|
11
|
+
|
12
|
+
NSString* result_string = [os_string stringByAppendingString:[NSString stringWithUTF8String:str]];
|
13
|
+
result_string = [result_string stringByAppendingString:os_string];
|
14
|
+
|
15
|
+
VALUE result = rho_ruby_create_string([result_string UTF8String]);
|
16
|
+
|
17
|
+
return result;
|
18
|
+
}
|
19
|
+
|
20
|
+
|
21
|
+
int <%= name.downcase %>_calc_summ(int x, int y) {
|
22
|
+
return (x+y);
|
23
|
+
}
|
24
|
+
|
@@ -0,0 +1,300 @@
|
|
1
|
+
// !$*UTF8*$!
|
2
|
+
{
|
3
|
+
archiveVersion = 1;
|
4
|
+
classes = {
|
5
|
+
};
|
6
|
+
objectVersion = 45;
|
7
|
+
objects = {
|
8
|
+
|
9
|
+
/* Begin PBXBuildFile section */
|
10
|
+
FAC155E7145855CF0016F3BD /* <%= name.camel_case %>_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = FAD45FD51225FED600141873 /* <%= name.camel_case %>_Prefix.pch */; };
|
11
|
+
FAC155E8145855CF0016F3BD /* <%= name.camel_case %>.h in Headers */ = {isa = PBXBuildFile; fileRef = FAC155E01458523C0016F3BD /* <%= name.camel_case %>.h */; };
|
12
|
+
FAC155EA145855CF0016F3BD /* <%= name.downcase %>_wrap.c in Sources */ = {isa = PBXBuildFile; fileRef = FAC155D614584FD80016F3BD /* <%= name.downcase %>_wrap.c */; };
|
13
|
+
FAC155EB145855CF0016F3BD /* <%= name.downcase %>.c in Sources */ = {isa = PBXBuildFile; fileRef = FAC155D814584FE20016F3BD /* <%= name.downcase %>.c */; };
|
14
|
+
FAC155EC145855CF0016F3BD /* <%= name.camel_case %>.m in Sources */ = {isa = PBXBuildFile; fileRef = FAC155DE145851440016F3BD /* <%= name.camel_case %>.m */; };
|
15
|
+
FAC155EE145855CF0016F3BD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AACBBE490F95108600F1A2B1 /* Foundation.framework */; };
|
16
|
+
FAC155EF145855CF0016F3BD /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FAD4602C12260A8500141873 /* UIKit.framework */; };
|
17
|
+
/* End PBXBuildFile section */
|
18
|
+
|
19
|
+
/* Begin PBXFileReference section */
|
20
|
+
AACBBE490F95108600F1A2B1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
21
|
+
FAC155D614584FD80016F3BD /* <%= name.downcase %>_wrap.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = <%= name.downcase %>_wrap.c; path = ../../shared/ruby/<%= name.downcase %>_wrap.c; sourceTree = "<group>"; };
|
22
|
+
FAC155D814584FE20016F3BD /* <%= name.downcase %>.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = <%= name.downcase %>.c; path = ../../shared/src/<%= name.downcase %>.c; sourceTree = "<group>"; };
|
23
|
+
FAC155DE145851440016F3BD /* <%= name.camel_case %>.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = <%= name.camel_case %>.m; path = Classes/<%= name.camel_case %>.m; sourceTree = "<group>"; };
|
24
|
+
FAC155E01458523C0016F3BD /* <%= name.camel_case %>.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = <%= name.camel_case %>.h; path = Classes/<%= name.camel_case %>.h; sourceTree = "<group>"; };
|
25
|
+
FAC155F3145855CF0016F3BD /* lib<%= name.camel_case %>.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = lib<%= name.camel_case %>.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
26
|
+
FAD45FD51225FED600141873 /* <%= name.camel_case %>_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = <%= name.camel_case %>_Prefix.pch; sourceTree = "<group>"; };
|
27
|
+
FAD4602C12260A8500141873 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
28
|
+
/* End PBXFileReference section */
|
29
|
+
|
30
|
+
/* Begin PBXFrameworksBuildPhase section */
|
31
|
+
FAC155ED145855CF0016F3BD /* Frameworks */ = {
|
32
|
+
isa = PBXFrameworksBuildPhase;
|
33
|
+
buildActionMask = 2147483647;
|
34
|
+
files = (
|
35
|
+
FAC155EE145855CF0016F3BD /* Foundation.framework in Frameworks */,
|
36
|
+
FAC155EF145855CF0016F3BD /* UIKit.framework in Frameworks */,
|
37
|
+
);
|
38
|
+
runOnlyForDeploymentPostprocessing = 0;
|
39
|
+
};
|
40
|
+
/* End PBXFrameworksBuildPhase section */
|
41
|
+
|
42
|
+
/* Begin PBXGroup section */
|
43
|
+
034768DFFF38A50411DB9C8B /* Products */ = {
|
44
|
+
isa = PBXGroup;
|
45
|
+
children = (
|
46
|
+
FAC155F3145855CF0016F3BD /* lib<%= name.camel_case %>.a */,
|
47
|
+
);
|
48
|
+
name = Products;
|
49
|
+
sourceTree = "<group>";
|
50
|
+
};
|
51
|
+
0867D691FE84028FC02AAC07 /* Barcode */ = {
|
52
|
+
isa = PBXGroup;
|
53
|
+
children = (
|
54
|
+
08FB77AEFE84172EC02AAC07 /* Classes */,
|
55
|
+
32C88DFF0371C24200C91783 /* Other Sources */,
|
56
|
+
0867D69AFE84028FC02AAC07 /* Frameworks */,
|
57
|
+
034768DFFF38A50411DB9C8B /* Products */,
|
58
|
+
);
|
59
|
+
name = Barcode;
|
60
|
+
sourceTree = "<group>";
|
61
|
+
};
|
62
|
+
0867D69AFE84028FC02AAC07 /* Frameworks */ = {
|
63
|
+
isa = PBXGroup;
|
64
|
+
children = (
|
65
|
+
AACBBE490F95108600F1A2B1 /* Foundation.framework */,
|
66
|
+
FAD4602C12260A8500141873 /* UIKit.framework */,
|
67
|
+
);
|
68
|
+
name = Frameworks;
|
69
|
+
sourceTree = "<group>";
|
70
|
+
};
|
71
|
+
08FB77AEFE84172EC02AAC07 /* Classes */ = {
|
72
|
+
isa = PBXGroup;
|
73
|
+
children = (
|
74
|
+
FAC155DD1458511E0016F3BD /* iOS_specific */,
|
75
|
+
FAC155DA145850EB0016F3BD /* Shared */,
|
76
|
+
);
|
77
|
+
name = Classes;
|
78
|
+
sourceTree = "<group>";
|
79
|
+
};
|
80
|
+
32C88DFF0371C24200C91783 /* Other Sources */ = {
|
81
|
+
isa = PBXGroup;
|
82
|
+
children = (
|
83
|
+
FAD45FD51225FED600141873 /* <%= name.camel_case %>_Prefix.pch */,
|
84
|
+
);
|
85
|
+
name = "Other Sources";
|
86
|
+
sourceTree = "<group>";
|
87
|
+
};
|
88
|
+
FAC155DA145850EB0016F3BD /* Shared */ = {
|
89
|
+
isa = PBXGroup;
|
90
|
+
children = (
|
91
|
+
FAC155DC145851020016F3BD /* src */,
|
92
|
+
FAC155DB145850F80016F3BD /* Ruby */,
|
93
|
+
);
|
94
|
+
name = Shared;
|
95
|
+
sourceTree = "<group>";
|
96
|
+
};
|
97
|
+
FAC155DB145850F80016F3BD /* Ruby */ = {
|
98
|
+
isa = PBXGroup;
|
99
|
+
children = (
|
100
|
+
FAC155D614584FD80016F3BD /* <%= name.downcase %>_wrap.c */,
|
101
|
+
);
|
102
|
+
name = Ruby;
|
103
|
+
sourceTree = "<group>";
|
104
|
+
};
|
105
|
+
FAC155DC145851020016F3BD /* src */ = {
|
106
|
+
isa = PBXGroup;
|
107
|
+
children = (
|
108
|
+
FAC155D814584FE20016F3BD /* <%= name.downcase %>.c */,
|
109
|
+
);
|
110
|
+
name = src;
|
111
|
+
sourceTree = "<group>";
|
112
|
+
};
|
113
|
+
FAC155DD1458511E0016F3BD /* iOS_specific */ = {
|
114
|
+
isa = PBXGroup;
|
115
|
+
children = (
|
116
|
+
FAC155E01458523C0016F3BD /* <%= name.camel_case %>.h */,
|
117
|
+
FAC155DE145851440016F3BD /* <%= name.camel_case %>.m */,
|
118
|
+
);
|
119
|
+
name = iOS_specific;
|
120
|
+
sourceTree = "<group>";
|
121
|
+
};
|
122
|
+
/* End PBXGroup section */
|
123
|
+
|
124
|
+
/* Begin PBXHeadersBuildPhase section */
|
125
|
+
FAC155E6145855CF0016F3BD /* Headers */ = {
|
126
|
+
isa = PBXHeadersBuildPhase;
|
127
|
+
buildActionMask = 2147483647;
|
128
|
+
files = (
|
129
|
+
FAC155E7145855CF0016F3BD /* <%= name.camel_case %>_Prefix.pch in Headers */,
|
130
|
+
FAC155E8145855CF0016F3BD /* <%= name.camel_case %>.h in Headers */,
|
131
|
+
);
|
132
|
+
runOnlyForDeploymentPostprocessing = 0;
|
133
|
+
};
|
134
|
+
/* End PBXHeadersBuildPhase section */
|
135
|
+
|
136
|
+
/* Begin PBXNativeTarget section */
|
137
|
+
FAC155E5145855CF0016F3BD /* <%= name.camel_case %> */ = {
|
138
|
+
isa = PBXNativeTarget;
|
139
|
+
buildConfigurationList = FAC155F0145855CF0016F3BD /* Build configuration list for PBXNativeTarget "<%= name.camel_case %>" */;
|
140
|
+
buildPhases = (
|
141
|
+
FAC155E6145855CF0016F3BD /* Headers */,
|
142
|
+
FAC155E9145855CF0016F3BD /* Sources */,
|
143
|
+
FAC155ED145855CF0016F3BD /* Frameworks */,
|
144
|
+
);
|
145
|
+
buildRules = (
|
146
|
+
);
|
147
|
+
dependencies = (
|
148
|
+
);
|
149
|
+
name = <%= name.camel_case %>;
|
150
|
+
productName = Barcode;
|
151
|
+
productReference = FAC155F3145855CF0016F3BD /* lib<%= name.camel_case %>.a */;
|
152
|
+
productType = "com.apple.product-type.library.static";
|
153
|
+
};
|
154
|
+
/* End PBXNativeTarget section */
|
155
|
+
|
156
|
+
/* Begin PBXProject section */
|
157
|
+
0867D690FE84028FC02AAC07 /* Project object */ = {
|
158
|
+
isa = PBXProject;
|
159
|
+
buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "<%= name.camel_case %>" */;
|
160
|
+
compatibilityVersion = "Xcode 3.1";
|
161
|
+
developmentRegion = English;
|
162
|
+
hasScannedForEncodings = 1;
|
163
|
+
knownRegions = (
|
164
|
+
English,
|
165
|
+
Japanese,
|
166
|
+
French,
|
167
|
+
German,
|
168
|
+
);
|
169
|
+
mainGroup = 0867D691FE84028FC02AAC07 /* Barcode */;
|
170
|
+
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
|
171
|
+
projectDirPath = "";
|
172
|
+
projectRoot = "";
|
173
|
+
targets = (
|
174
|
+
FAC155E5145855CF0016F3BD /* <%= name.camel_case %> */,
|
175
|
+
);
|
176
|
+
};
|
177
|
+
/* End PBXProject section */
|
178
|
+
|
179
|
+
/* Begin PBXSourcesBuildPhase section */
|
180
|
+
FAC155E9145855CF0016F3BD /* Sources */ = {
|
181
|
+
isa = PBXSourcesBuildPhase;
|
182
|
+
buildActionMask = 2147483647;
|
183
|
+
files = (
|
184
|
+
FAC155EA145855CF0016F3BD /* <%= name.downcase %>_wrap.c in Sources */,
|
185
|
+
FAC155EB145855CF0016F3BD /* <%= name.downcase %>.c in Sources */,
|
186
|
+
FAC155EC145855CF0016F3BD /* <%= name.camel_case %>.m in Sources */,
|
187
|
+
);
|
188
|
+
runOnlyForDeploymentPostprocessing = 0;
|
189
|
+
};
|
190
|
+
/* End PBXSourcesBuildPhase section */
|
191
|
+
|
192
|
+
/* Begin XCBuildConfiguration section */
|
193
|
+
1DEB922308733DC00010E9CD /* Debug */ = {
|
194
|
+
isa = XCBuildConfiguration;
|
195
|
+
buildSettings = {
|
196
|
+
GCC_C_LANGUAGE_STANDARD = c99;
|
197
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
198
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
199
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
200
|
+
HEADER_SEARCH_PATHS = (
|
201
|
+
"$(RHO_ROOT)/platform/shared/common",
|
202
|
+
"$(RHO_ROOT)/platform/shared/rubyext",
|
203
|
+
"$(RHO_ROOT)/platform/shared/ruby/include",
|
204
|
+
"$(RHO_ROOT)/platform/shared/ruby/iphone",
|
205
|
+
"$(RHO_ROOT)/platform/shared",
|
206
|
+
);
|
207
|
+
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
|
208
|
+
ONLY_ACTIVE_ARCH = NO;
|
209
|
+
PREBINDING = NO;
|
210
|
+
SDKROOT = iphonesimulator4.1;
|
211
|
+
STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = static;
|
212
|
+
};
|
213
|
+
name = Debug;
|
214
|
+
};
|
215
|
+
1DEB922408733DC00010E9CD /* Release */ = {
|
216
|
+
isa = XCBuildConfiguration;
|
217
|
+
buildSettings = {
|
218
|
+
GCC_C_LANGUAGE_STANDARD = c99;
|
219
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
220
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
221
|
+
HEADER_SEARCH_PATHS = (
|
222
|
+
"$(RHO_ROOT)/platform/shared/common",
|
223
|
+
"$(RHO_ROOT)/platform/shared/rubyext",
|
224
|
+
"$(RHO_ROOT)/platform/shared/ruby/include",
|
225
|
+
"$(RHO_ROOT)/platform/shared/ruby/iphone",
|
226
|
+
"$(RHO_ROOT)/platform/shared",
|
227
|
+
);
|
228
|
+
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
|
229
|
+
ONLY_ACTIVE_ARCH = NO;
|
230
|
+
PREBINDING = NO;
|
231
|
+
SDKROOT = iphonesimulator4.1;
|
232
|
+
STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = static;
|
233
|
+
};
|
234
|
+
name = Release;
|
235
|
+
};
|
236
|
+
FAC155F1145855CF0016F3BD /* Debug */ = {
|
237
|
+
isa = XCBuildConfiguration;
|
238
|
+
buildSettings = {
|
239
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
240
|
+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
241
|
+
COPY_PHASE_STRIP = NO;
|
242
|
+
DSTROOT = /tmp/<%= name.camel_case %>.dst;
|
243
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
244
|
+
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
245
|
+
GCC_MODEL_TUNING = G5;
|
246
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
247
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
248
|
+
GCC_PREFIX_HEADER = <%= name.camel_case %>_Prefix.pch;
|
249
|
+
INSTALL_PATH = /usr/local/lib;
|
250
|
+
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
|
251
|
+
MACOSX_DEPLOYMENT_TARGET = 10.5;
|
252
|
+
PRODUCT_NAME = <%= name.camel_case %>;
|
253
|
+
SDKROOT = iphoneos;
|
254
|
+
VALID_ARCHS = "i386 armv6 armv7";
|
255
|
+
};
|
256
|
+
name = Debug;
|
257
|
+
};
|
258
|
+
FAC155F2145855CF0016F3BD /* Release */ = {
|
259
|
+
isa = XCBuildConfiguration;
|
260
|
+
buildSettings = {
|
261
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
262
|
+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
263
|
+
DSTROOT = /tmp/<%= name.camel_case %>.dst;
|
264
|
+
GCC_MODEL_TUNING = G5;
|
265
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
266
|
+
GCC_PREFIX_HEADER = <%= name.camel_case %>_Prefix.pch;
|
267
|
+
INSTALL_PATH = /usr/local/lib;
|
268
|
+
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
|
269
|
+
MACOSX_DEPLOYMENT_TARGET = 10.5;
|
270
|
+
PRODUCT_NAME = <%= name.camel_case %>;
|
271
|
+
SDKROOT = iphoneos;
|
272
|
+
VALID_ARCHS = "i386 armv6 armv7";
|
273
|
+
};
|
274
|
+
name = Release;
|
275
|
+
};
|
276
|
+
/* End XCBuildConfiguration section */
|
277
|
+
|
278
|
+
/* Begin XCConfigurationList section */
|
279
|
+
1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "<%= name.camel_case %>" */ = {
|
280
|
+
isa = XCConfigurationList;
|
281
|
+
buildConfigurations = (
|
282
|
+
1DEB922308733DC00010E9CD /* Debug */,
|
283
|
+
1DEB922408733DC00010E9CD /* Release */,
|
284
|
+
);
|
285
|
+
defaultConfigurationIsVisible = 0;
|
286
|
+
defaultConfigurationName = Release;
|
287
|
+
};
|
288
|
+
FAC155F0145855CF0016F3BD /* Build configuration list for PBXNativeTarget "<%= name.camel_case %>" */ = {
|
289
|
+
isa = XCConfigurationList;
|
290
|
+
buildConfigurations = (
|
291
|
+
FAC155F1145855CF0016F3BD /* Debug */,
|
292
|
+
FAC155F2145855CF0016F3BD /* Release */,
|
293
|
+
);
|
294
|
+
defaultConfigurationIsVisible = 0;
|
295
|
+
defaultConfigurationName = Release;
|
296
|
+
};
|
297
|
+
/* End XCConfigurationList section */
|
298
|
+
};
|
299
|
+
rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
|
300
|
+
}
|