This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool IsPackageInstalled(string packageName) | |
{ | |
#if UNITY_ANDROID | |
var pluginClass = new AndroidJavaClass("android.content.pm.PackageManager"); | |
var jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
var currentActivity = jc.GetStatic<AndroidJavaObject>("currentActivity"); | |
var packageManager = currentActivity.Call<AndroidJavaObject>("getPackageManager"); | |
int flag = pluginClass.GetStatic<int>("GET_META_DATA"); | |
var packages = packageManager.Call<AndroidJavaObject>("getInstalledApplications", flag); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:20.10-bullseye-slim as base | |
# Install dependencies only when needed | |
FROM base AS deps | |
WORKDIR /workspace | |
# Install libvips | |
# Credit: https://hub.docker.com/r/shivjm/node-libvips | |
ARG LIBVIPS_VERSION=8.15.0 | |
RUN apt-get update -qq && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use server'; | |
export const signUpAction = apiAction( | |
signUpFormSchema, | |
async (data): Promise<{ }> => { | |
// ... | |
}, | |
); |