rhoconnect-client 7.1.17 → 7.4.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
2
  SHA1:
3
- metadata.gz: 643d24220f141a84aaefaae3282b3ce0f52e303b
4
- data.tar.gz: 3a1b216aad6f2a8f91f716b8986d1fefd261f2ad
3
+ metadata.gz: a76b1027a569cee7360e2640ffe2b47e6362babd
4
+ data.tar.gz: 0714d4f39f6e893f3f8a51cc0042f935199251d7
5
5
  SHA512:
6
- metadata.gz: 257d9c730010aaaab18f224bf770321b4cc325c14f8baba0fb5b6ee539a88e9cb46e41f61ac7373b0119b1f048f384af873a962074f0e90a87cda5fe1fac7a83
7
- data.tar.gz: 1b01c385d9b7510614af08421d82ae6c6504618efcd6f494aa24a9a6c68014c847ac2aadf3508bef328955ff2274866bc45cd0263c8ada8150a45c887527f821
6
+ metadata.gz: 6258bca04cdca6484e9d4dd6d7d4427ce3eff45e0a774b9b9a8231d0c6f3bb6574897484d6f756c9226059658078123d571150bd769b5fc782ec1c31dd0a12fd
7
+ data.tar.gz: eeef5492a9b85571217f0836176ca57f7a1c3a7baf017d6586e9062965c8a5d7f67de66c49f4d97d5702c8728fa4b30fd3a6d54f46e4cedfda47c68643559b52
@@ -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: 7.1.17
4
+ version: 7.4.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-11-28 00:00:00.000000000 Z
11
+ date: 2021-10-06 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"