Skip to content

Commit

Permalink
fix mobile build
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFirekeeper committed May 27, 2024
1 parent 4bf6d01 commit ad30467
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 44 deletions.
7 changes: 4 additions & 3 deletions Assets/Plugins/Android/Linker.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.unity3d.player.UnityPlayerActivity;

public class Linker {
public static boolean canOpenURL(Context context, String url) {
public static boolean canOpenURL(UnityPlayerActivity activity, String url){
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
return intent.resolveActivity(context.getPackageManager()) != null;
return intent.resolveActivity(activity.getPackageManager()) != null;
}
}
}
4 changes: 2 additions & 2 deletions Assets/Plugins/Android/Linker.java.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Plugins/iOS/CanOpenUrl.m.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit ad30467

Please sign in to comment.