Skip to content

Commit b9216af

Browse files
authored
WalletConnect Upgrade (#144)
1 parent 6b691a2 commit b9216af

File tree

229 files changed

+3716
-50143
lines changed

Some content is hidden

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

229 files changed

+3716
-50143
lines changed

Assets/Plugins/Android/Linker.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.walletconnect.unity;
2+
3+
import android.content.Context;
4+
import android.content.Intent;
5+
import android.net.Uri;
6+
7+
public class Linker {
8+
public static boolean canOpenURL(Context context, String url) {
9+
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
10+
return intent.resolveActivity(context.getPackageManager()) != null;
11+
}
12+
}

Assets/Plugins/Android/Linker.java.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Plugins/iOS/CanOpenUrl.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#import <Foundation/Foundation.h>
2+
#import <UIKit/UIKit.h>
3+
4+
NSString *ToNSString(char* string) {
5+
return [NSString stringWithUTF8String:string];
6+
}
7+
8+
bool _CanOpenURL (char* url) {
9+
return [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:ToNSString(url)]];
10+
}

Assets/Plugins/iOS/CanOpenUrl.m.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)