Skip to content

Commit f658301

Browse files
committed
updated project for 64 bit archs
1 parent 7ad2a94 commit f658301

File tree

6 files changed

+24
-20
lines changed

6 files changed

+24
-20
lines changed

Classes/ComOmorandiModule.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ -(void)startup
3232
// this method is called when the module is first loaded
3333
// you *must* call the superclass
3434
[super startup];
35-
36-
NSLog(@"[INFO] %@ loaded",self);
3735
}
3836

3937
-(void)shutdown:(id)sender

build.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def replace_vars(config,token):
2626
token = token.replace('$(%s)' % key, config[key])
2727
idx = token.find('$(')
2828
return token
29-
30-
29+
30+
3131
def read_ti_xcconfig():
3232
contents = open(os.path.join(cwd,'titanium.xcconfig')).read()
3333
config = {}
@@ -60,18 +60,18 @@ def generate_doc(config):
6060
def compile_js(manifest,config):
6161
js_file = os.path.join(cwd,'assets','com.omorandi.js')
6262
if not os.path.exists(js_file): return
63-
63+
6464
sdk = config['TITANIUM_SDK']
6565
iphone_dir = os.path.join(sdk,'iphone')
6666
sys.path.insert(0,iphone_dir)
6767
from compiler import Compiler
68-
68+
6969
path = os.path.basename(js_file)
7070
metadata = Compiler.make_function_from_file(path,js_file)
7171
method = metadata['method']
7272
eq = path.replace('.','_')
7373
method = ' return %s;' % method
74-
74+
7575
f = os.path.join(cwd,'Classes','ComOmorandiModuleAssets.m')
7676
c = open(f).read()
7777
idx = c.find('return ')
@@ -82,24 +82,24 @@ def compile_js(manifest,config):
8282
@end
8383
"""
8484
newc = before + method + after
85-
85+
8686
if newc!=c:
8787
x = open(f,'w')
8888
x.write(newc)
8989
x.close()
90-
90+
9191
def die(msg):
9292
print msg
9393
sys.exit(1)
9494

9595
def warn(msg):
96-
print "[WARN] %s" % msg
96+
print "[WARN] %s" % msg
9797

9898
def validate_license():
9999
c = open('LICENSE').read()
100100
if c.find(module_license_default)!=1:
101101
warn('please update the LICENSE file with your license text before distributing')
102-
102+
103103
def validate_manifest():
104104
path = os.path.join(cwd,'manifest')
105105
f = open(path)
@@ -112,7 +112,7 @@ def validate_manifest():
112112
key,value = line.split(':')
113113
manifest[key.strip()]=value.strip()
114114
for key in required_module_keys:
115-
if not manifest.has_key(key): die("missing required manifest key '%s'" % key)
115+
if not manifest.has_key(key): die("missing required manifest key '%s'" % key)
116116
if module_defaults.has_key(key):
117117
defvalue = module_defaults[key]
118118
curvalue = manifest[key]
@@ -126,12 +126,12 @@ def zip_dir(zf,dir,basepath,ignore=[]):
126126
for root, dirs, files in os.walk(dir):
127127
for name in ignoreDirs:
128128
if name in dirs:
129-
dirs.remove(name) # don't visit ignored directories
129+
dirs.remove(name) # don't visit ignored directories
130130
for file in files:
131131
if file in ignoreFiles: continue
132132
e = os.path.splitext(file)
133133
if len(e)==2 and e[1]=='.pyc':continue
134-
from_ = os.path.join(root, file)
134+
from_ = os.path.join(root, file)
135135
to_ = from_.replace(dir, basepath, 1)
136136
zf.write(from_, to_)
137137

@@ -154,9 +154,11 @@ def build_module(manifest,config):
154154
libpaths = ''
155155
for libfile in glob_libfiles():
156156
libpaths+='%s ' % libfile
157-
157+
158158
os.system("lipo %s -create -output build/lib%s.a" %(libpaths,moduleid))
159-
159+
os.system("lipo -info build/lib%s.a" %moduleid)
160+
161+
160162
def package_module(manifest,mf,config):
161163
name = manifest['name'].lower()
162164
moduleid = manifest['moduleid'].lower()
@@ -174,7 +176,7 @@ def package_module(manifest,mf,config):
174176
zf.write('LICENSE','%s/LICENSE' % modulepath)
175177
zf.write('module.xcconfig','%s/module.xcconfig' % modulepath)
176178
zf.close()
177-
179+
178180

179181
if __name__ == '__main__':
180182
manifest,mf = validate_manifest()

com.omorandi-iphone-1.1.1.zip

-121 KB
Binary file not shown.

com.omorandi-iphone-1.1.2.zip

167 KB
Binary file not shown.

manifest

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# this is your module manifest and used by Titanium
33
# during compilation, packaging, distribution, etc.
44
#
5-
version: 1.1.1
5+
version: 1.1.2
66
description: The SMSDialog Module extends the Appcelerator Titanium Mobile framework implementing an iPhone dialog window that enables you to send in application text messages on behalf of the app user, exposing an API very similar to the one of the Ti.UI.EmailDialog object. Both recipients and body fields can be pre-populated from your application.
77
author: Olivier Morandi
88
license: MIT license
@@ -14,4 +14,5 @@ name: smsdialog
1414
moduleid: com.omorandi
1515
guid: 87f37de9-e076-43cb-a2a0-a840e45af0d7
1616
platform: iphone
17-
minsdk: 3.2.3.GA
17+
minsdk: 3.4.1.GA
18+
architectures: armv7 arm64 i386 x86_64

smsdialog.xcodeproj/project.pbxproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
0867D690FE84028FC02AAC07 /* Project object */ = {
157157
isa = PBXProject;
158158
attributes = {
159-
LastUpgradeCheck = 0510;
159+
LastUpgradeCheck = 0610;
160160
};
161161
buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "smsdialog" */;
162162
compatibilityVersion = "Xcode 3.2";
@@ -263,6 +263,8 @@
263263
GCC_OPTIMIZATION_LEVEL = 0;
264264
GCC_WARN_ABOUT_RETURN_TYPE = YES;
265265
GCC_WARN_UNUSED_VARIABLE = YES;
266+
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
267+
ONLY_ACTIVE_ARCH = NO;
266268
OTHER_LDFLAGS = "";
267269
PREBINDING = NO;
268270
SDKROOT = iphoneos;
@@ -276,6 +278,7 @@
276278
GCC_C_LANGUAGE_STANDARD = c99;
277279
GCC_WARN_ABOUT_RETURN_TYPE = YES;
278280
GCC_WARN_UNUSED_VARIABLE = YES;
281+
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
279282
OTHER_LDFLAGS = "";
280283
PREBINDING = NO;
281284
SDKROOT = iphoneos;

0 commit comments

Comments
 (0)