get android running in nix shell

This commit is contained in:
Loewy 2024-01-26 11:06:11 -08:00
parent 4c6bf597a9
commit 94d4f13a28
14 changed files with 70 additions and 12 deletions

41
.gitignore vendored
View File

@ -36,3 +36,44 @@ yarn-error.*
#direnv #direnv
.direnv .direnv
# @generated expo-cli sync-b5df6a44d8735348b729920a7406b633cfb74d4c
# The following patterns were generated by expo-cli
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
# dependencies
node_modules/
# Expo
.expo/
dist/
web-build/
# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
# Metro
.metro-health-check*
# debug
npm-debug.*
yarn-debug.*
yarn-error.*
# macOS
.DS_Store
*.pem
# local env files
.env*.local
# typescript
*.tsbuildinfo
# @end expo-cli

View File

@ -81,9 +81,9 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.anonymous.DummyApp' namespace 'android.railbird.app'
defaultConfig { defaultConfig {
applicationId 'com.anonymous.DummyApp' applicationId 'android.railbird.app'
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1 versionCode 1

View File

@ -4,7 +4,7 @@
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree. * directory of this source tree.
*/ */
package com.anonymous.DummyApp; package android.railbird.app;
import android.content.Context; import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient; import com.facebook.flipper.android.AndroidFlipperClient;

View File

@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android.railbird.app">
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
@ -26,6 +26,7 @@
<category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/> <category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="com.anonymous.DummyApp"/> <data android:scheme="com.anonymous.DummyApp"/>
<data android:scheme="android.railbird.app"/>
</intent-filter> </intent-filter>
</activity> </activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false"/> <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false"/>

View File

@ -1,4 +1,4 @@
package com.anonymous.DummyApp; package android.railbird.app;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;

View File

@ -1,4 +1,4 @@
package com.anonymous.DummyApp; package android.railbird.app;
import android.app.Application; import android.app.Application;
import android.content.res.Configuration; import android.content.res.Configuration;

View File

@ -1,5 +1,5 @@
<resources> <resources>
<string name="app_name">DummyApp</string> <string name="app_name">Railbird</string>
<string name="expo_splash_screen_resize_mode" translatable="false">contain</string> <string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string> <string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
</resources> </resources>

View File

@ -4,7 +4,7 @@
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree. * directory of this source tree.
*/ */
package com.anonymous.DummyApp; package android.railbird.app;
import android.content.Context; import android.content.Context;
import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactInstanceManager;

View File

@ -54,4 +54,4 @@ expo.webp.animated=false
# Enable network inspector # Enable network inspector
EX_DEV_CLIENT_NETWORK_INSPECTOR=true EX_DEV_CLIENT_NETWORK_INSPECTOR=true
android.aapt2FromMavenOverride=/nix/store/6nrdbhdcmrig3vr80sc7qf9lna5cs1gb-android-sdk-env/share/android-sdk/build-tools/33.0.0/aapt2 android.aapt2FromMavenOverride=/nix/store/byfv81hvdjqslk28s3pnwnjm4f03m901-android-sdk-env/share/android-sdk/build-tools/33.0.0/aapt2

View File

@ -1,4 +1,4 @@
rootProject.name = 'DummyApp' rootProject.name = 'Railbird'
apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle"); apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle");
useExpoModules() useExpoModules()

View File

@ -35,7 +35,8 @@
"adaptiveIcon": { "adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png", "foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff" "backgroundColor": "#ffffff"
} },
"package": "android.railbird.app"
}, },
"web": { "web": {
"favicon": "./assets/favicon.png" "favicon": "./assets/favicon.png"

8
index.js Normal file
View File

@ -0,0 +1,8 @@
import { registerRootComponent } from 'expo';
import App from './App';
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);

View File

@ -734,4 +734,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: fe3da96ed9108818e45f85fdade1623742df3ab2 PODFILE CHECKSUM: fe3da96ed9108818e45f85fdade1623742df3ab2
COCOAPODS: 1.12.0 COCOAPODS: 1.14.3

7
metro.config.js Normal file
View File

@ -0,0 +1,7 @@
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);
module.exports = config;