<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (c) 2025 Huawei Device, Inc. Ltd. and <马弓手>.
 
  Licensed 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.
-->
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
        id="cordova-plugin-weibosdk"
        version="0.6.4">
    <name>weibosdk</name>
    <description>Cordova weibosdk Plugin</description>
    <license>Apache 2.0</license>
    <keywords>cordova,weibosdk</keywords>
    <repo>https://gitcode.com/OpenHarmony-Cordova/cordova-plugin-weibosdk.git</repo>
    <issue>https://gitcode.com/OpenHarmony-Cordova/cordova-plugin-weibosdk/issues</issue>

    <preference name="weibosdkAPPID" />
    <engines>
        <engine name="@cordova-ohos/ohos" version=">=2.0.0" />
    </engines>

    <platform name="ohos">
        <config-file target="src/main/resources/rawfile/config.xml" parent="/*" modules-targets-name="default">
            <feature name="WeiboSDK">
                <param name="harmony-package" value="WeiboSDKPlugin" />
            </feature>
        </config-file>

        <CMakeLists target="src/main/cpp/CMakeLists.txt" modules-name="cordova">
            <param target="add_library" value="Weibo/WeiboSDKPlugin.cpp"/>
        </CMakeLists>

        <source-file type="h" src="src/main/cpp/Weibo/WeiboSDKPlugin.h" target-dir="src/main/cpp/Weibo" modules-name="cordova"/>
        <source-file type="cpp" src="src/main/cpp/Weibo/WeiboSDKPlugin.cpp" target-dir="src/main/cpp/Weibo" modules-name="cordova"/>
        <source-file type="ets" src="src/main/ets/components/WeiboAction/WeiboAction.ets" target-dir="src/main/ets/components/WeiboAction" modules-name="cordova" runtimeOnly="true"/>

        <js-module src="www/weibo.js" name="WeiboSDK" modules-targets-name="default">
            <clobbers target="WeiboSDK" />
        </js-module>
        
    </platform>
</plugin>