-
Notifications
You must be signed in to change notification settings - Fork 6
/
plugin.xml
executable file
·131 lines (110 loc) · 4.78 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-naver-sdk" name="cordova-plugin-naver-sdk" version="2.0.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>NaverCordovaSDK</name>
<description>Naver Cordova SDK Plugin</description>
<preference name="OAUTH_CLIENT_ID"/>
<preference name="OAUTH_CLIENT_SECRET"/>
<preference name="OAUTH_CLIENT_NAME"/>
<engines>
<!-- Requires Gradle building -->
<engine name="cordova-android" version=">=10.0.0"/>
<engine name="cordova-ios" version=">=3.5.0"/>
</engines>
<js-module name="NaverCordovaSDK" src="www/NaverCordovaSDK.js">
<clobbers target="NaverCordovaSDK" />
</js-module>
<!-- Android -->
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="NaverCordovaSDK">
<param name="android-package" value="com.raccoondev85.plugin.naver.NaverCordovaSDK"/>
</feature>
</config-file>
<resource-file src="src/android/res/values/naver_strings.xml" target="res/values/naver_strings.xml"/>
<config-file parent="/*" target="res/values/naver_strings.xml">
<string name="naver_client_id">$OAUTH_CLIENT_ID</string>
<string name="naver_client_secret">$OAUTH_CLIENT_SECRET</string>
<string name="naver_client_name">$OAUTH_CLIENT_NAME</string>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</config-file>
<framework src="src/android/naver.gradle" custom="true" type="gradleReference" />
<source-file src="src/android/NaverCordovaSDK.java" target-dir="src/com/raccoondev85/plugin/naver" />
<source-file src="src/android/NaverResources.java" target-dir="src/com/raccoondev85/plugin/naver" />
</platform>
<!-- ios -->
<platform name="ios">
<preference name="OAUTH_CLIENT_APP_SCHEME" />
<config-file parent="/*" target="config.xml">
<feature name="NaverCordovaSDK">
<param name="ios-package" value="NaverCordovaSDK"/>
</feature>
</config-file>
<config-file target="*-Info.plist" parent="NaverClientID">
<string>$OAUTH_CLIENT_ID</string>
</config-file>
<config-file target="*-Info.plist" parent="NaverClientSecret">
<string>$OAUTH_CLIENT_SECRET</string>
</config-file>
<config-file target="*-Info.plist" parent="NaverClientName">
<string>$OAUTH_CLIENT_NAME</string>
</config-file>
<config-file target="*-Info.plist" parent="NaverAppScheme">
<string>$OAUTH_CLIENT_APP_SCHEME</string>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>$OAUTH_CLIENT_APP_SCHEME</string>
</array>
</dict>
</array>
</config-file>
<config-file target="*-Info.plist" parent="NSAppTransportSecurity">
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>naver.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>naver.net</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>
</config-file>
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<string>naversearchapp</string>
<string>naversearchthirdlogin</string>
</array>
</config-file>
<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods >
<pod name="naveridlogin-sdk-ios" spec="~> 4.1.2" />
</pods>
</podspec>
<header-file src="src/ios/NaverCordovaSDK.h"/>
<source-file src="src/ios/NaverCordovaSDK.m"/>
</platform>
</plugin>