@wisdomgarden/capacitor-plugin-beacon 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/README.md +117 -0
  2. package/WisdomgardenCapacitorPluginBeacon.podspec +17 -0
  3. package/android/build.gradle +52 -0
  4. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  5. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  6. package/android/gradle.properties +24 -0
  7. package/android/gradlew +188 -0
  8. package/android/gradlew.bat +100 -0
  9. package/android/proguard-rules.pro +21 -0
  10. package/android/settings.gradle +2 -0
  11. package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +26 -0
  12. package/android/src/main/AndroidManifest.xml +20 -0
  13. package/android/src/main/java/com/wisdomgarden/mobile/beacon/Beacon.java +294 -0
  14. package/android/src/main/java/com/wisdomgarden/mobile/beacon/BeaconUtils.java +118 -0
  15. package/android/src/main/res/layout/bridge_layout_main.xml +15 -0
  16. package/android/src/main/res/values/colors.xml +3 -0
  17. package/android/src/main/res/values/strings.xml +3 -0
  18. package/android/src/main/res/values/styles.xml +3 -0
  19. package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +18 -0
  20. package/dist/esm/definitions.d.ts +49 -0
  21. package/dist/esm/definitions.js +2 -0
  22. package/dist/esm/definitions.js.map +1 -0
  23. package/dist/esm/index.d.ts +2 -0
  24. package/dist/esm/index.js +3 -0
  25. package/dist/esm/index.js.map +1 -0
  26. package/dist/esm/web.d.ts +25 -0
  27. package/dist/esm/web.js +61 -0
  28. package/dist/esm/web.js.map +1 -0
  29. package/dist/plugin.js +70 -0
  30. package/dist/plugin.js.map +1 -0
  31. package/ios/Plugin/BeaconUtils.swift +103 -0
  32. package/ios/Plugin/Info.plist +30 -0
  33. package/ios/Plugin/Plugin.h +10 -0
  34. package/ios/Plugin/Plugin.m +14 -0
  35. package/ios/Plugin/Plugin.swift +342 -0
  36. package/ios/Plugin.xcodeproj/project.pbxproj +556 -0
  37. package/ios/Plugin.xcodeproj/xcuserdata/peixinliu.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
  38. package/ios/Plugin.xcworkspace/contents.xcworkspacedata +10 -0
  39. package/ios/Plugin.xcworkspace/xcuserdata/peixinliu.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  40. package/ios/PluginTests/Info.plist +22 -0
  41. package/ios/PluginTests/PluginTests.swift +35 -0
  42. package/ios/Podfile +16 -0
  43. package/ios/Podfile.lock +22 -0
  44. package/ios/Pods/Local Podspecs/Capacitor.podspec.json +30 -0
  45. package/ios/Pods/Local Podspecs/CapacitorCordova.podspec.json +22 -0
  46. package/ios/Pods/Manifest.lock +22 -0
  47. package/ios/Pods/Pods.xcodeproj/project.pbxproj +1381 -0
  48. package/ios/Pods/Pods.xcodeproj/xcuserdata/peixinliu.xcuserdatad/xcschemes/Capacitor.xcscheme +58 -0
  49. package/ios/Pods/Pods.xcodeproj/xcuserdata/peixinliu.xcuserdatad/xcschemes/CapacitorCordova.xcscheme +58 -0
  50. package/ios/Pods/Pods.xcodeproj/xcuserdata/peixinliu.xcuserdatad/xcschemes/Pods-Plugin.xcscheme +58 -0
  51. package/ios/Pods/Pods.xcodeproj/xcuserdata/peixinliu.xcuserdatad/xcschemes/Pods-PluginTests.xcscheme +58 -0
  52. package/ios/Pods/Pods.xcodeproj/xcuserdata/peixinliu.xcuserdatad/xcschemes/xcschememanagement.plist +39 -0
  53. package/ios/Pods/Target Support Files/Capacitor/Capacitor-Info.plist +26 -0
  54. package/ios/Pods/Target Support Files/Capacitor/Capacitor-dummy.m +5 -0
  55. package/ios/Pods/Target Support Files/Capacitor/Capacitor-prefix.pch +12 -0
  56. package/ios/Pods/Target Support Files/Capacitor/Capacitor-umbrella.h +23 -0
  57. package/ios/Pods/Target Support Files/Capacitor/Capacitor.debug.xcconfig +16 -0
  58. package/ios/Pods/Target Support Files/Capacitor/Capacitor.modulemap +6 -0
  59. package/ios/Pods/Target Support Files/Capacitor/Capacitor.release.xcconfig +16 -0
  60. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-Info.plist +26 -0
  61. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-dummy.m +5 -0
  62. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-prefix.pch +12 -0
  63. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-umbrella.h +33 -0
  64. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.debug.xcconfig +13 -0
  65. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.modulemap +6 -0
  66. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.release.xcconfig +13 -0
  67. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-Info.plist +26 -0
  68. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.markdown +3 -0
  69. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.plist +29 -0
  70. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-dummy.m +5 -0
  71. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-umbrella.h +16 -0
  72. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig +14 -0
  73. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.modulemap +6 -0
  74. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig +14 -0
  75. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-Info.plist +26 -0
  76. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.markdown +3 -0
  77. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.plist +29 -0
  78. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-dummy.m +5 -0
  79. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh +188 -0
  80. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-umbrella.h +16 -0
  81. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig +15 -0
  82. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.modulemap +6 -0
  83. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig +15 -0
  84. package/package.json +64 -0
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>${PODS_DEVELOPMENT_LANGUAGE}</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>${EXECUTABLE_NAME}</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>${PRODUCT_NAME}</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>FMWK</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>${CURRENT_PROJECT_VERSION}</string>
23
+ <key>NSPrincipalClass</key>
24
+ <string></string>
25
+ </dict>
26
+ </plist>
@@ -0,0 +1,3 @@
1
+ # Acknowledgements
2
+ This application makes use of the following third party libraries:
3
+ Generated by CocoaPods - https://cocoapods.org
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>PreferenceSpecifiers</key>
6
+ <array>
7
+ <dict>
8
+ <key>FooterText</key>
9
+ <string>This application makes use of the following third party libraries:</string>
10
+ <key>Title</key>
11
+ <string>Acknowledgements</string>
12
+ <key>Type</key>
13
+ <string>PSGroupSpecifier</string>
14
+ </dict>
15
+ <dict>
16
+ <key>FooterText</key>
17
+ <string>Generated by CocoaPods - https://cocoapods.org</string>
18
+ <key>Title</key>
19
+ <string></string>
20
+ <key>Type</key>
21
+ <string>PSGroupSpecifier</string>
22
+ </dict>
23
+ </array>
24
+ <key>StringsTable</key>
25
+ <string>Acknowledgements</string>
26
+ <key>Title</key>
27
+ <string>Acknowledgements</string>
28
+ </dict>
29
+ </plist>
@@ -0,0 +1,5 @@
1
+ #import <Foundation/Foundation.h>
2
+ @interface PodsDummy_Pods_PluginTests : NSObject
3
+ @end
4
+ @implementation PodsDummy_Pods_PluginTests
5
+ @end
@@ -0,0 +1,188 @@
1
+ #!/bin/sh
2
+ set -e
3
+ set -u
4
+ set -o pipefail
5
+
6
+ function on_error {
7
+ echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
8
+ }
9
+ trap 'on_error $LINENO' ERR
10
+
11
+ if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
12
+ # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
13
+ # frameworks to, so exit 0 (signalling the script phase was successful).
14
+ exit 0
15
+ fi
16
+
17
+ echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
18
+ mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
19
+
20
+ COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}"
21
+ SWIFT_STDLIB_PATH="${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
22
+ BCSYMBOLMAP_DIR="BCSymbolMaps"
23
+
24
+
25
+ # This protects against multiple targets copying the same framework dependency at the same time. The solution
26
+ # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html
27
+ RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????")
28
+
29
+ # Copies and strips a vendored framework
30
+ install_framework()
31
+ {
32
+ if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
33
+ local source="${BUILT_PRODUCTS_DIR}/$1"
34
+ elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then
35
+ local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
36
+ elif [ -r "$1" ]; then
37
+ local source="$1"
38
+ fi
39
+
40
+ local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
41
+
42
+ if [ -L "${source}" ]; then
43
+ echo "Symlinked..."
44
+ source="$(readlink -f "${source}")"
45
+ fi
46
+
47
+ if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then
48
+ # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied
49
+ find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do
50
+ echo "Installing $f"
51
+ install_bcsymbolmap "$f" "$destination"
52
+ rm "$f"
53
+ done
54
+ rmdir "${source}/${BCSYMBOLMAP_DIR}"
55
+ fi
56
+
57
+ # Use filter instead of exclude so missing patterns don't throw errors.
58
+ echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
59
+ rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
60
+
61
+ local basename
62
+ basename="$(basename -s .framework "$1")"
63
+ binary="${destination}/${basename}.framework/${basename}"
64
+
65
+ if ! [ -r "$binary" ]; then
66
+ binary="${destination}/${basename}"
67
+ elif [ -L "${binary}" ]; then
68
+ echo "Destination binary is symlinked..."
69
+ dirname="$(dirname "${binary}")"
70
+ binary="${dirname}/$(readlink "${binary}")"
71
+ fi
72
+
73
+ # Strip invalid architectures so "fat" simulator / device frameworks work on device
74
+ if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then
75
+ strip_invalid_archs "$binary"
76
+ fi
77
+
78
+ # Resign the code if required by the build settings to avoid unstable apps
79
+ code_sign_if_enabled "${destination}/$(basename "$1")"
80
+
81
+ # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
82
+ if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
83
+ local swift_runtime_libs
84
+ swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u)
85
+ for lib in $swift_runtime_libs; do
86
+ echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
87
+ rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
88
+ code_sign_if_enabled "${destination}/${lib}"
89
+ done
90
+ fi
91
+ }
92
+ # Copies and strips a vendored dSYM
93
+ install_dsym() {
94
+ local source="$1"
95
+ warn_missing_arch=${2:-true}
96
+ if [ -r "$source" ]; then
97
+ # Copy the dSYM into the targets temp dir.
98
+ echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\""
99
+ rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}"
100
+
101
+ local basename
102
+ basename="$(basename -s .dSYM "$source")"
103
+ binary_name="$(ls "$source/Contents/Resources/DWARF")"
104
+ binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}"
105
+
106
+ # Strip invalid architectures from the dSYM.
107
+ if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then
108
+ strip_invalid_archs "$binary" "$warn_missing_arch"
109
+ fi
110
+ if [[ $STRIP_BINARY_RETVAL == 0 ]]; then
111
+ # Move the stripped file into its final destination.
112
+ echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\""
113
+ rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}"
114
+ else
115
+ # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing.
116
+ mkdir -p "${DWARF_DSYM_FOLDER_PATH}"
117
+ touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM"
118
+ fi
119
+ fi
120
+ }
121
+
122
+ # Used as a return value for each invocation of `strip_invalid_archs` function.
123
+ STRIP_BINARY_RETVAL=0
124
+
125
+ # Strip invalid architectures
126
+ strip_invalid_archs() {
127
+ binary="$1"
128
+ warn_missing_arch=${2:-true}
129
+ # Get architectures for current target binary
130
+ binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)"
131
+ # Intersect them with the architectures we are building for
132
+ intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)"
133
+ # If there are no archs supported by this binary then warn the user
134
+ if [[ -z "$intersected_archs" ]]; then
135
+ if [[ "$warn_missing_arch" == "true" ]]; then
136
+ echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)."
137
+ fi
138
+ STRIP_BINARY_RETVAL=1
139
+ return
140
+ fi
141
+ stripped=""
142
+ for arch in $binary_archs; do
143
+ if ! [[ "${ARCHS}" == *"$arch"* ]]; then
144
+ # Strip non-valid architectures in-place
145
+ lipo -remove "$arch" -output "$binary" "$binary"
146
+ stripped="$stripped $arch"
147
+ fi
148
+ done
149
+ if [[ "$stripped" ]]; then
150
+ echo "Stripped $binary of architectures:$stripped"
151
+ fi
152
+ STRIP_BINARY_RETVAL=0
153
+ }
154
+
155
+ # Copies the bcsymbolmap files of a vendored framework
156
+ install_bcsymbolmap() {
157
+ local bcsymbolmap_path="$1"
158
+ local destination="${BUILT_PRODUCTS_DIR}"
159
+ echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}""
160
+ rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"
161
+ }
162
+
163
+ # Signs a framework with the provided identity
164
+ code_sign_if_enabled() {
165
+ if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
166
+ # Use the current code_sign_identity
167
+ echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
168
+ local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'"
169
+
170
+ if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
171
+ code_sign_cmd="$code_sign_cmd &"
172
+ fi
173
+ echo "$code_sign_cmd"
174
+ eval "$code_sign_cmd"
175
+ fi
176
+ }
177
+
178
+ if [[ "$CONFIGURATION" == "Debug" ]]; then
179
+ install_framework "${BUILT_PRODUCTS_DIR}/Capacitor/Capacitor.framework"
180
+ install_framework "${BUILT_PRODUCTS_DIR}/CapacitorCordova/Cordova.framework"
181
+ fi
182
+ if [[ "$CONFIGURATION" == "Release" ]]; then
183
+ install_framework "${BUILT_PRODUCTS_DIR}/Capacitor/Capacitor.framework"
184
+ install_framework "${BUILT_PRODUCTS_DIR}/CapacitorCordova/Cordova.framework"
185
+ fi
186
+ if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then
187
+ wait
188
+ fi
@@ -0,0 +1,16 @@
1
+ #ifdef __OBJC__
2
+ #import <UIKit/UIKit.h>
3
+ #else
4
+ #ifndef FOUNDATION_EXPORT
5
+ #if defined(__cplusplus)
6
+ #define FOUNDATION_EXPORT extern "C"
7
+ #else
8
+ #define FOUNDATION_EXPORT extern
9
+ #endif
10
+ #endif
11
+ #endif
12
+
13
+
14
+ FOUNDATION_EXPORT double Pods_PluginTestsVersionNumber;
15
+ FOUNDATION_EXPORT const unsigned char Pods_PluginTestsVersionString[];
16
+
@@ -0,0 +1,15 @@
1
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
3
+ FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Capacitor" "${PODS_CONFIGURATION_BUILD_DIR}/CapacitorCordova"
4
+ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
5
+ HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Capacitor/Capacitor.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/CapacitorCordova/Cordova.framework/Headers"
6
+ LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift "$(PLATFORM_DIR)/Developer/Library/Frameworks" '@executable_path/Frameworks' '@loader_path/Frameworks'
7
+ LIBRARY_SEARCH_PATHS = $(inherited) "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift
8
+ OTHER_LDFLAGS = $(inherited) -framework "Capacitor" -framework "Cordova" -framework "WebKit"
9
+ OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
10
+ PODS_BUILD_DIR = ${BUILD_DIR}
11
+ PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
12
+ PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
13
+ PODS_ROOT = ${SRCROOT}/Pods
14
+ PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates
15
+ USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES
@@ -0,0 +1,6 @@
1
+ framework module Pods_PluginTests {
2
+ umbrella header "Pods-PluginTests-umbrella.h"
3
+
4
+ export *
5
+ module * { export * }
6
+ }
@@ -0,0 +1,15 @@
1
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
3
+ FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Capacitor" "${PODS_CONFIGURATION_BUILD_DIR}/CapacitorCordova"
4
+ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
5
+ HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/Capacitor/Capacitor.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/CapacitorCordova/Cordova.framework/Headers"
6
+ LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift "$(PLATFORM_DIR)/Developer/Library/Frameworks" '@executable_path/Frameworks' '@loader_path/Frameworks'
7
+ LIBRARY_SEARCH_PATHS = $(inherited) "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift
8
+ OTHER_LDFLAGS = $(inherited) -framework "Capacitor" -framework "Cordova" -framework "WebKit"
9
+ OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
10
+ PODS_BUILD_DIR = ${BUILD_DIR}
11
+ PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
12
+ PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
13
+ PODS_ROOT = ${SRCROOT}/Pods
14
+ PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates
15
+ USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@wisdomgarden/capacitor-plugin-beacon",
3
+ "version": "0.0.1",
4
+ "description": "Capacitor plugin for Bluetooth beacon broadcasting and monitoring",
5
+ "main": "dist/plugin.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "scripts": {
9
+ "lint": "yarn run prettier -- --check && yarn run swiftlint -- lint",
10
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
11
+ "swiftlint": "node-swiftlint",
12
+ "build": "yarn run clean && tsc && rollup -c rollup.config.js",
13
+ "clean": "rimraf ./dist",
14
+ "watch": "tsc --watch",
15
+ "prepublishOnly": "yarn run build"
16
+ },
17
+ "author": "WisdomGarden",
18
+ "license": "Apache-2.0",
19
+ "devDependencies": {
20
+ "@capacitor/android": "^2.4.2",
21
+ "@capacitor/core": "^2.4.2",
22
+ "@capacitor/ios": "^2.4.2",
23
+ "@ionic/prettier-config": "^1.0.0",
24
+ "@ionic/swiftlint-config": "^1.0.0",
25
+ "@rollup/plugin-node-resolve": "^8.1.0",
26
+ "prettier": "^2.0.5",
27
+ "prettier-plugin-java": "^0.8.0",
28
+ "rimraf": "^3.0.0",
29
+ "rollup": "^2.21.0",
30
+ "swiftlint": "^1.0.1",
31
+ "typescript": "4.9.5"
32
+ },
33
+ "peerDependencies": {
34
+ "@capacitor/core": "^2.2.1"
35
+ },
36
+ "files": [
37
+ "dist/",
38
+ "ios/",
39
+ "android/",
40
+ "WisdomgardenCapacitorPluginBeacon.podspec"
41
+ ],
42
+ "keywords": [
43
+ "capacitor",
44
+ "plugin",
45
+ "native"
46
+ ],
47
+ "capacitor": {
48
+ "ios": {
49
+ "src": "ios"
50
+ },
51
+ "android": {
52
+ "src": "android"
53
+ }
54
+ },
55
+ "prettier": "@ionic/prettier-config",
56
+ "swiftlint": "@ionic/swiftlint-config",
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "git@gitlab.tronclass.com.cn:lms/capacitor-plugin-beacon.git"
60
+ },
61
+ "bugs": {
62
+ "url": "git@gitlab.tronclass.com.cn:lms/capacitor-plugin-beacon.git/issues"
63
+ }
64
+ }