Skip to content

Commit 871ac70

Browse files
author
button-bot
committed
Public release 6.29.0
1 parent 31adfe1 commit 871ac70

File tree

468 files changed

+45982
-20403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

468 files changed

+45982
-20403
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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>BuildMachineOSBuild</key>
6+
<string>19G2021</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>Button</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>com.usebutton.sdk</string>
11+
<key>CFBundleShortVersionString</key>
12+
<string>6.29.0</string>
13+
<key>CFBundleSupportedPlatforms</key>
14+
<array>
15+
<string>iPhoneOS</string>
16+
</array>
17+
<key>CFBundleVersion</key>
18+
<string>551</string>
19+
<key>DTCompiler</key>
20+
<string>com.apple.compilers.llvm.clang.1_0</string>
21+
<key>DTPlatformBuild</key>
22+
<string>18A372</string>
23+
<key>DTPlatformName</key>
24+
<string>iphoneos</string>
25+
<key>DTPlatformVersion</key>
26+
<string>14.0</string>
27+
<key>DTSDKBuild</key>
28+
<string>18A372</string>
29+
<key>DTSDKName</key>
30+
<string>iphoneos14.0</string>
31+
<key>DTXcode</key>
32+
<string>1200</string>
33+
<key>DTXcodeBuild</key>
34+
<string>12A7208</string>
35+
<key>MinimumOSVersion</key>
36+
<string>9.0</string>
37+
<key>UIAppFonts</key>
38+
<array>
39+
<string>AvenirNext.ttc</string>
40+
</array>
41+
<key>UIDeviceFamily</key>
42+
<array>
43+
<integer>1</integer>
44+
<integer>2</integer>
45+
</array>
46+
</dict>
47+
</plist>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Copyright (c) 2014–2020 Button, Inc. (https://usebutton.com/)
2+
3+
Privately Licensed.
4+
5+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
10+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11+
THE SOFTWARE.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Adds Button SDK event listeners for JS-based navigation. Wraps methods to update back stack in
3+
* order to notify the Button SDK then invokes original method.
4+
*
5+
* @see BTNWebViewController
6+
*/
7+
8+
(function(history) {
9+
10+
window.addEventListener("load", function() {
11+
window.webkit.messageHandlers.ButtonSDK.postMessage("com.usebutton.webview-loaded");
12+
}, false);
13+
14+
function trackNavigateEvent(url) {
15+
window.webkit.messageHandlers.ButtonSDK.postMessage(url);
16+
};
17+
18+
var originalPushState = history.pushState;
19+
history.pushState = function(obj, title, url) {
20+
originalPushState.apply(history, arguments);
21+
trackNavigateEvent(window.location.href);
22+
};
23+
24+
window.addEventListener('popstate', function(e) {
25+
trackNavigateEvent(window.location.href);
26+
});
27+
28+
})(window.history);
29+

.static/Button.xcframework/Info.plist

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>LibraryIdentifier</key>
9+
<string>ios-arm64_i386_x86_64-simulator</string>
10+
<key>LibraryPath</key>
11+
<string>Button.framework</string>
12+
<key>SupportedArchitectures</key>
13+
<array>
14+
<string>arm64</string>
15+
<string>i386</string>
16+
<string>x86_64</string>
17+
</array>
18+
<key>SupportedPlatform</key>
19+
<string>ios</string>
20+
<key>SupportedPlatformVariant</key>
21+
<string>simulator</string>
22+
</dict>
23+
<dict>
24+
<key>LibraryIdentifier</key>
25+
<string>ios-arm64_armv7</string>
26+
<key>LibraryPath</key>
27+
<string>Button.framework</string>
28+
<key>SupportedArchitectures</key>
29+
<array>
30+
<string>arm64</string>
31+
<string>armv7</string>
32+
</array>
33+
<key>SupportedPlatform</key>
34+
<string>ios</string>
35+
</dict>
36+
</array>
37+
<key>CFBundlePackageType</key>
38+
<string>XFWK</string>
39+
<key>XCFrameworkFormatVersion</key>
40+
<string>1.0</string>
41+
</dict>
42+
</plist>

.static/Button.xcframework/LICENSE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Copyright (c) 2014–2020 Button, Inc. (https://usebutton.com/)
2+
3+
Privately Licensed.
4+
5+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
10+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11+
THE SOFTWARE.

.static/Button.xcframework/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Button 6.29.0 (551) for iOS
Binary file not shown.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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>BuildMachineOSBuild</key>
6+
<string>19G2021</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>Button</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>com.usebutton.sdk</string>
11+
<key>CFBundleShortVersionString</key>
12+
<string>6.29.0</string>
13+
<key>CFBundleSupportedPlatforms</key>
14+
<array>
15+
<string>iPhoneOS</string>
16+
</array>
17+
<key>CFBundleVersion</key>
18+
<string>551</string>
19+
<key>DTCompiler</key>
20+
<string>com.apple.compilers.llvm.clang.1_0</string>
21+
<key>DTPlatformBuild</key>
22+
<string>18A372</string>
23+
<key>DTPlatformName</key>
24+
<string>iphoneos</string>
25+
<key>DTPlatformVersion</key>
26+
<string>14.0</string>
27+
<key>DTSDKBuild</key>
28+
<string>18A372</string>
29+
<key>DTSDKName</key>
30+
<string>iphoneos14.0</string>
31+
<key>DTXcode</key>
32+
<string>1200</string>
33+
<key>DTXcodeBuild</key>
34+
<string>12A7208</string>
35+
<key>MinimumOSVersion</key>
36+
<string>9.0</string>
37+
<key>UIAppFonts</key>
38+
<array>
39+
<string>AvenirNext.ttc</string>
40+
</array>
41+
<key>UIDeviceFamily</key>
42+
<array>
43+
<integer>1</integer>
44+
<integer>2</integer>
45+
</array>
46+
</dict>
47+
</plist>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Copyright (c) 2014–2020 Button, Inc. (https://usebutton.com/)
2+
3+
Privately Licensed.
4+
5+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
10+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11+
THE SOFTWARE.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Adds Button SDK event listeners for JS-based navigation. Wraps methods to update back stack in
3+
* order to notify the Button SDK then invokes original method.
4+
*
5+
* @see BTNWebViewController
6+
*/
7+
8+
(function(history) {
9+
10+
window.addEventListener("load", function() {
11+
window.webkit.messageHandlers.ButtonSDK.postMessage("com.usebutton.webview-loaded");
12+
}, false);
13+
14+
function trackNavigateEvent(url) {
15+
window.webkit.messageHandlers.ButtonSDK.postMessage(url);
16+
};
17+
18+
var originalPushState = history.pushState;
19+
history.pushState = function(obj, title, url) {
20+
originalPushState.apply(history, arguments);
21+
trackNavigateEvent(window.location.href);
22+
};
23+
24+
window.addEventListener('popstate', function(e) {
25+
trackNavigateEvent(window.location.href);
26+
});
27+
28+
})(window.history);
29+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@import Foundation;
2+
3+
NS_ASSUME_NONNULL_BEGIN
4+
5+
DEPRECATED_MSG_ATTRIBUTE("Button Actions has been deprecated. Please contact Button to update your integration.")
6+
NS_SWIFT_NAME(ButtonAction)
7+
@interface BTNAction : NSObject
8+
9+
@property (nonatomic, copy, readonly) NSString *attributionToken;
10+
11+
- (void)start;
12+
13+
- (void)startWithCompletion:(void(^)(NSError * nullable))completion;
14+
15+
@end
16+
17+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)