{"id":20401821,"url":"https://github.com/bpevs/tauri_deno_mobile_sample","last_synced_at":"2025-04-12T14:21:59.416Z","repository":{"id":65681781,"uuid":"588003798","full_name":"bpevs/tauri_deno_mobile_sample","owner":"bpevs","description":"Sample app using the Tauri Mobile Alpha version with a Deno app","archived":false,"fork":false,"pushed_at":"2024-04-05T21:27:52.000Z","size":984,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T08:51:39.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bpevs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-12T04:55:56.000Z","updated_at":"2024-04-10T19:01:28.000Z","dependencies_parsed_at":"2024-11-15T04:52:01.939Z","dependency_job_id":"03d35045-5cfc-4cc6-a2c4-c3aac199b6c9","html_url":"https://github.com/bpevs/tauri_deno_mobile_sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpevs%2Ftauri_deno_mobile_sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpevs%2Ftauri_deno_mobile_sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpevs%2Ftauri_deno_mobile_sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpevs%2Ftauri_deno_mobile_sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpevs","download_url":"https://codeload.github.com/bpevs/tauri_deno_mobile_sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578882,"owners_count":21127720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T04:51:54.173Z","updated_at":"2025-04-12T14:21:59.394Z","avatar_url":"https://github.com/bpevs.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tauri Deno Mobile (Android) Sample\n\nFor building Android apps on MacOS, using Tauri and Solidjs\n\nHeavy inspiration from [Tauri Deno Starter](https://github.com/marc2332/tauri-deno-starter)!\n\n# Environment Setup\n\nAssuming you have already installed latest `Deno` and `Rust`...\n\n### Install full xcode (Maybe optional?)\n\nI had to install this to run `cargo mobile` and `cargo android`, which I mistakenly used first. So maybe `cargo tauri android` gets around this? I haven't uninstalled it, so not sure if it's actually necessary.\n\nWhen I was running `cargo mobile`, it made me use the full xcode instead of xcode-select, because it was trying to build for iOS. So maybe that is required as well, not sure.\n\n### Install Tauri Beta Version (with Mobile)\n\nSince it's beta, just make sure to specifically tag the version when installing Tauri: `cargo install tauri-cli@2.0.0-beta.{release version here}`\n\n### Android Stuff\n\nBasically following the [getting started guide](https://tauri.app/v1/guides/getting-started/prerequisites), installing thrigs via cargo when possible, and ignoring the any npm stuff.\n\nDownloaded Android Studio...\n\nThe download for NDK was in:\n`Android Studio \u003e Tools \u003e SDK Manager \u003e Android SDK \u003e SDK TOOLS`\n\nI installed:\n- Android SDK Build-TOols\n- NDK (Side by side)\n- Android Emulator\n- Android SDK Platform-Tools\n\nThen found NDK version via `ls $HOME/Library/Android/sdk/ndk`\n\nMy env variables ended up looking like this:\n```sh\nexport JAVA_HOME=\"/Applications/Android Studio.app/Contents/jre/Contents/Home\"\nexport ANDROID_HOME=\"$HOME/Library/Android/sdk\"\nexport NDK_HOME=\"$ANDROID_HOME/ndk/25.1.8937393\"\n```\n\n# Project Setup\n\nHow we got the repo to this point...\n\n- build /gen dir: `cargo tauri init` (recc to delete, rebuild after updating Carto.toml and tauri.conf.json with your app identifiers)\n    - points to `../src/www`\n    - beforeDevCommand: `deno run -A scripts/main.ts dev`\n    - beforeBuildCommand: `deno run -A scripts/main.ts build`\n    - host: `http://localhost:3000`\n- Added Deno Files\n  - `scripts/main.ts`: build script, using esbuild\n- Prevent screen rotation by modifying `/gen/android/app/app/src/main/AndroidManifest.xml`:\n  - adds `android:screenOrientation`\n\n# Usage\n\nAvailable tasks are in the `deno.json` file. Run like so:\n`deno task dev`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpevs%2Ftauri_deno_mobile_sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpevs%2Ftauri_deno_mobile_sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpevs%2Ftauri_deno_mobile_sample/lists"}