You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2019/07/15 10:30:09 UTC

[incubator-weex-playground] branch master updated: [iOS] configure weex_sdk source. (#6)

This is an automated email from the ASF dual-hosted git repository.

kyork pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex-playground.git


The following commit(s) were added to refs/heads/master by this push:
     new 1341be3  [iOS]  configure weex_sdk source. (#6)
1341be3 is described below

commit 1341be37c6184f61bae9e6f917b09005f29df974
Author: Renmin <33...@users.noreply.github.com>
AuthorDate: Mon Jul 15 18:30:04 2019 +0800

    [iOS]  configure weex_sdk source. (#6)
---
 ios/Podfile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/ios/Podfile b/ios/Podfile
index d5003ae..ddb2dae 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -3,14 +3,19 @@ platform :ios, '9.0'
 #inhibit_all_warnings!
 
 def common
-    pod 'WeexSDK', :git => 'https://github.com/apache/incubator-weex.git'
+    # check if weex-playground is a submodule
+    if File.file?('../../.gitmodules') && File.readlines('../../.gitmodules').grep(/submodule \"weex-playground\"/).size > 0
+    	pod 'WeexSDK', :path => '../../'
+    else
+        pod 'WeexSDK', :git => 'https://github.com/apache/incubator-weex.git'    
+    end
+    
     pod 'WXDevtool','0.20.0'
     pod 'SDWebImage', '3.7.5'
     pod 'SDWebImage/WebP'
     pod 'SocketRocket', '0.4.2'
     pod 'ATSDK-Weex', '0.0.1',:configurations => ['Debug']
     pod 'BindingX', '1.0.3'
-    
     # WeexGcanvas is added by Weex Plugin, more info at https://market.dotwe.org/ext/list.htm
     #pod 'WeexGcanvas'
 end
@@ -22,3 +27,4 @@ end
 target 'WeexUITestDemo' do
     common
 end
+