Merge pull request 'Android folders from nix shell' (#52) from loewy/renamed-android-folders into master

Reviewed-on: railbird/rn-playground#52
Reviewed-by: Kat Huang <kkathuang@gmail.com>
This commit is contained in:
loewy 2024-01-27 15:40:20 -07:00
commit abb718603e
14 changed files with 70 additions and 12 deletions

41
.gitignore vendored
View File

@ -36,3 +36,44 @@ yarn-error.*
#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
namespace 'com.anonymous.DummyApp'
namespace 'android.railbird.app'
defaultConfig {
applicationId 'com.anonymous.DummyApp'
applicationId 'android.railbird.app'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
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
* directory of this source tree.
*/
package com.anonymous.DummyApp;
package android.railbird.app;
import android.content.Context;
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.READ_EXTERNAL_STORAGE"/>
<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.BROWSABLE"/>
<data android:scheme="com.anonymous.DummyApp"/>
<data android:scheme="android.railbird.app"/>
</intent-filter>
</activity>
<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.Bundle;

View File

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

View File

@ -1,5 +1,5 @@
<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_status_bar_translucent" translatable="false">false</string>
</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
* directory of this source tree.
*/
package com.anonymous.DummyApp;
package android.railbird.app;
import android.content.Context;
import com.facebook.react.ReactInstanceManager;

View File

@ -54,4 +54,4 @@ expo.webp.animated=false
# Enable network inspector
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/6nrdbhdcmrig3vr80sc7qf9lna5cs1gb-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");
useExpoModules()

View File

@ -35,7 +35,8 @@
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"package": "android.railbird.app"
},
"web": {
"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
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;