rhoconnect-client 6.2.0 → 7.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a571a25415dc890011d3eb532b900746fc557a7a
4
- data.tar.gz: 14a1882c9b5723f6080093d73ef3889f13684c18
2
+ SHA256:
3
+ metadata.gz: 9006a52a783e8fcee9e05b89607f8554b645ac40fae00e19fb97c1faac37e1af
4
+ data.tar.gz: 16a271c620bff88ac2cd3062bfa423246ecd8a9ea6add5da416c4c6eeaf9da1c
5
5
  SHA512:
6
- metadata.gz: 593fab3d7626608c84b71d13160c972b37cae08aeb77735625e1d372b8959490a1cf1a62e1772160611122af198595e44b5b4ac95ca0f0ff15b5ca86d4542d29
7
- data.tar.gz: 8ae7cb963f87dfad2974829ae904b7a18252c4d50b07157f4b019c41ce0cd98511eedfc3d7028dd070ced1b0913cdfa12eb6d23e0d6fc3faf7501c6701ef4920
6
+ metadata.gz: 0555fa42a841a5ffda7a04fbfacc17e5715f9657a42bcc63b995f01c86c6872cbd074c8e513c1f3e7dda72b7dd8db2a4e74205bf4cb14a1715b0987a49159c83
7
+ data.tar.gz: 1a9ee6b432c168f23c01b6e38f4db37eed552533ee96e919f2e3c8670a99a1c062683368b0e09f33c48c435189b816dc07f6d8fb3f550d52e523bdc3ff31a5ca
@@ -0,0 +1,17 @@
1
+ require 'fileutils'
2
+ include FileUtils
3
+
4
+ #Hack for linux (we should have a writable dirs in the gem subdirs)
5
+ chmod_R 0777, File.dirname(__FILE__) + "/.."
6
+
7
+ #This is the hack, we make all the things to make it look like an extension has compiled
8
+
9
+ File.open('Makefile', 'w') { |f| f.write "all:\n\ninstall:\n\n" }
10
+ File.open('make', 'w') do |f|
11
+ f.write '#!/bin/sh'
12
+ f.chmod f.stat.mode | 0111
13
+ end
14
+ File.open('rhodes_postinstallhack' + '.so', 'w') { |f| f.chmod 0777}
15
+ File.open('rhodes_postinstallhack' + '.dll', 'w') { |f| f.chmod 0777}
16
+ File.open('nmake.bat', 'w') { |f| f.write "ECHO \"Done\""
17
+ f.chmod 0777}
@@ -16,6 +16,11 @@ elif [ "$RHO_PLATFORM" = "osx" ]; then
16
16
  cd platform/qt
17
17
  rake --trace
18
18
 
19
+ elif [ "$RHO_PLATFORM" = "linux" ]; then
20
+
21
+ cd platform/qt
22
+ rake --trace
23
+
19
24
  else
20
25
 
21
26
  rake --trace
@@ -1,74 +1,20 @@
1
1
  require 'fileutils'
2
2
 
3
- USE_STLPORT = true
4
-
5
- puts "Rhoconnect-client extension !"
6
-
7
3
  namespace "build" do
4
+ task :all do
5
+ rhorootdir = ENV['RHO_ROOT']
6
+ raise "RHO_ROOT is not set" if rhorootdir.nil?
8
7
 
9
- task :config do
10
-
11
- $targetdir = ENV['TARGET_TEMP_DIR']
12
- raise "TARGET_TEMP_DIR is not set" if $targetdir.nil?
13
-
14
- $tempdir = ENV['TEMP_FILES_DIR']
15
- raise "TEMP_FILES_DIR is not set" if $tempdir.nil?
16
-
17
- $rootdir = ENV['RHO_ROOT']
18
- raise "RHO_ROOT is not set" if $rootdir.nil?
19
-
20
- $xcodebuild = ENV['XCODEBUILD']
21
- raise "XCODEBUILD is not set" if $xcodebuild.nil?
22
-
23
- $configuration = ENV['CONFIGURATION']
24
- raise "CONFIGURATION is not set" if $configuration.nil?
25
-
26
- $sdk = ENV['SDK_NAME']
27
- raise "SDK_NAME is not set" if $sdk.nil?
28
-
29
- $bindir = ENV['PLATFORM_DEVELOPER_BIN_DIR']
30
- raise "PLATFORM_DEVELOPER_BIN_DIR is not set" if $bindir.nil?
31
-
32
- $sdkroot = ENV['SDKROOT']
33
- raise "SDKROOT is not set" if $sdkroot.nil?
34
-
35
- $arch = ENV['ARCHS']
36
- raise "ARCHS is not set" if $arch.nil?
37
-
38
- $gccbin = $bindir + '/gcc-4.2'
39
- $arbin = $bindir + '/ar'
40
-
41
- end
8
+ require File.join(rhorootdir, 'platform','iphone','rbuild','buildextension')
42
9
 
43
- task :all => :config do
10
+ IPhoneBuild.load_env_for_build_rhodes_ios_extension
44
11
 
45
- iphone_path = '.'
12
+ extension_name = "Rhoconnect-client"
13
+ extension_lib_name = extension_name
14
+ extension_xcode_target_name = extension_name
46
15
 
47
- simulator = $sdk =~ /iphonesimulator/
48
-
49
- if $configuration == 'Distribution'
50
- $configuration = 'Release'
16
+ ret= IPhoneBuild.build_rhodes_ios_extension(extension_name, extension_lib_name, extension_xcode_target_name)
51
17
  end
52
-
53
- result_lib = iphone_path + '/build/' + $configuration + '-' + ( simulator ? "iphonesimulator" : "iphoneos") + '/libRhoconnect-client.a'
54
- target_lib = $targetdir + '/libRhoconnect-client.a'
55
-
56
- rm_rf 'build'
57
- rm_rf target_lib
58
-
59
- args = ['build', '-target', 'Rhoconnect-client', '-configuration', $configuration, '-sdk', $sdk]
60
-
61
- require $rootdir + '/lib/build/jake.rb'
62
-
63
- puts Jake.run($xcodebuild,args)
64
- ret = $?
65
-
66
- # copy result to $targetdir
67
- cp result_lib,target_lib
68
-
69
- end
70
-
71
-
72
18
  end
73
19
 
74
20
  task :default => "build:all"
@@ -68,23 +68,20 @@ win32 {
68
68
  }
69
69
 
70
70
  unix:!macx {
71
- OBJECTS_DIR = $$RHODES_ROOT/platform/linux/bin/extensions/rhoconnect-client
72
- INCLUDEPATH += $$RHODES_ROOT/platform/shared/ruby/sailfish
73
-
74
-
75
- contains(DEFINES, OS_LINUX) {
76
- DESTDIR = $$RHODES_ROOT/platform/linux/bin/extensions
77
- }
78
-
79
- contains(DEFINES, OS_SAILFISH) {
80
- INCLUDEPATH += $$RHODES_ROOT/platform/shared/qt/sailfish/src
81
- INCLUDEPATH += $$RHODES_ROOT/platform/shared/qt/sailfish
82
- }
83
-
71
+ DEFINES += OS_LINUX
72
+ OBJECTS_DIR = $$RHODES_ROOT/platform/linux/bin/extensions/rhoconnect-client
73
+ DESTDIR = $$RHODES_ROOT/platform/linux/bin/extensions
74
+ INCLUDEPATH += $$RHODES_ROOT/platform/shared/ruby/linux
75
+
76
+ contains(DEFINES, OS_SAILFISH) {
77
+ INCLUDEPATH += $$RHODES_ROOT/platform/shared/qt/sailfish/src
78
+ INCLUDEPATH += $$RHODES_ROOT/platform/shared/qt/sailfish
79
+ INCLUDEPATH += $$RHODES_ROOT/platform/shared/ruby/sailfish
80
+ }
84
81
 
85
- DEFINES += HAVE_CONFIG_H OS_LINUX
86
- QMAKE_CFLAGS += -fvisibility=hidden
87
- QMAKE_CXXFLAGS += -fvisibility=hidden
82
+ DEFINES += HAVE_CONFIG_H OS_LINUX
83
+ QMAKE_CFLAGS += -fvisibility=hidden
84
+ QMAKE_CXXFLAGS += -fvisibility=hidden
88
85
 
89
86
  }
90
87
 
@@ -231,7 +231,7 @@ void CClientRegister::run()
231
231
 
232
232
  String CClientRegister::getRegisterBody(const String& strClientID)
233
233
  {
234
- #ifndef OS_SAILFISH
234
+ #if !defined(OS_SAILFISH) && !defined(OS_LINUX)
235
235
  String strPushType = rho::push::CPushManager::getInstance()->getDefaultID();
236
236
  #else
237
237
  String strPushType = "";
metadata CHANGED
@@ -1,23 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhoconnect-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 7.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rhomobile Dev Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-09 00:00:00.000000000 Z
11
+ date: 2022-07-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: RhoConnect client extension
14
14
  email: rhomobile@googlegroups.com
15
15
  executables: []
16
- extensions: []
16
+ extensions:
17
+ - "./ext/extconf-chmod.rb"
17
18
  extra_rdoc_files:
18
19
  - README.md
19
20
  - LICENSE
20
21
  files:
22
+ - "./ext/extconf-chmod.rb"
21
23
  - "./ext/rhoconnect-client/RhoConnectClient.rb"
22
24
  - "./ext/rhoconnect-client/ext.yml"
23
25
  - "./ext/rhoconnect-client/ext/RhoConnectClient.xml"
@@ -308,8 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
308
310
  - !ruby/object:Gem::Version
309
311
  version: '0'
310
312
  requirements: []
311
- rubyforge_project: rhoconnect-client
312
- rubygems_version: 2.4.5.1
313
+ rubygems_version: 3.0.3.1
313
314
  signing_key:
314
315
  specification_version: 4
315
316
  summary: RhoConnect client in the form of a Rhodes/RhoElements native extension.