* [ios] update license header script
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/e4333210 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/e4333210 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/e4333210 Branch: refs/heads/0.12-dev Commit: e43332101477b45ff544df7219111efaeac3c3b0 Parents: b0260a2 Author: acton393 <zhangxing610...@gmail.com> Authored: Tue Apr 18 11:06:58 2017 +0800 Committer: acton393 <zhangxing610...@gmail.com> Committed: Tue Apr 18 11:06:58 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/WeexSDK.h | 33 +++++++++++++++++---------------- ios/sdk/buildScripts.sh | 25 ++++++++++++++++++------- 2 files changed, 35 insertions(+), 23 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e4333210/ios/sdk/WeexSDK/Sources/WeexSDK.h ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/WeexSDK.h b/ios/sdk/WeexSDK/Sources/WeexSDK.h index 400324e..d8ac443 100644 --- a/ios/sdk/WeexSDK/Sources/WeexSDK.h +++ b/ios/sdk/WeexSDK/Sources/WeexSDK.h @@ -1,20 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. */ #ifdef __OBJC__ @@ -48,6 +48,7 @@ #import "WXDefine.h" #import "WXDebugTool.h" #import "WXConvert.h" +#import "WXConfigProtocol.h" #import "WXComponentManager.h" #import "WXComponent.h" #import "WXBridgeProtocol.h" http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e4333210/ios/sdk/buildScripts.sh ---------------------------------------------------------------------- diff --git a/ios/sdk/buildScripts.sh b/ios/sdk/buildScripts.sh index 8e168b4..8f8fe80 100644 --- a/ios/sdk/buildScripts.sh +++ b/ios/sdk/buildScripts.sh @@ -5,12 +5,23 @@ function generateFileHeader() { headerFilePath=$1 headerFileName=`basename $1` - echo '/**' > $headerFilePath - echo ' * Created by Weex.' >> $headerFilePath - echo ' * Copyright (c) 2016, Alibaba, Inc. All rights reserved.' >> $headerFilePath - echo ' * ' >> $headerFilePath - echo ' * This source code is licensed under the Apache Licence 2.0.' >> $headerFilePath - echo ' * For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.' >> $headerFilePath + echo '/*' > $headerFilePath +echo '* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License.' >> $headerFilePath echo ' */' >> $headerFilePath echo '' >> $headerFilePath echo '#ifdef __OBJC__' >> $headerFilePath @@ -101,4 +112,4 @@ function generateSDKHeader() { rm $publicHeaderFilePath fi generateHeader "${PROJECT_DIR}/${PROJECT_NAME}.xcodeproj" "${publicHeaderFilePath}" 'Public' $sdkName -} \ No newline at end of file +}