Skip to content

Commit

Permalink
feat: add providers to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
castdrian committed May 2, 2024
1 parent 988bd27 commit 26524f9
Show file tree
Hide file tree
Showing 187 changed files with 10,435 additions and 123 deletions.
184 changes: 92 additions & 92 deletions apps/expo/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,98 +4,98 @@ import { version } from "./package.json";
import withRemoveiOSNotificationEntitlement from "./src/plugins/withRemoveiOSNotificationEntitlement";

const defineConfig = (): ExpoConfig => ({
name: "movie-web",
slug: "mw-mobile",
scheme: "movieweb",
version,
icon: "./assets/images/icon.png",
userInterfaceStyle: "automatic",
splash: {
image: "./assets/images/splash.png",
resizeMode: "contain",
backgroundColor: "#000000",
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ["**/*"],
ios: {
bundleIdentifier: "dev.movieweb.mobile",
supportsTablet: true,
requireFullScreen: true,
infoPlist: {
CFBundleName: "movie-web",
NSPhotoLibraryUsageDescription:
"This app saves videos to the photo library.",
},
},
android: {
package: "dev.movieweb.mobile",
permissions: ["WRITE_SETTINGS"],
},
web: {
favicon: "./assets/images/favicon.png",
bundler: "metro",
},
experiments: {
tsconfigPaths: true,
typedRoutes: true,
},
plugins: [
"expo-router",
[withRemoveiOSNotificationEntitlement as unknown as string],
[
"expo-screen-orientation",
{
initialOrientation: "PORTRAIT_UP",
},
],
[
"expo-build-properties",
{
ios: {
newArchEnabled: false,
},
android: {
newArchEnabled: false,
minSdkVersion: 24,
packagingOptions: {
pickFirst: [
"lib/x86/libcrypto.so",
"lib/x86_64/libcrypto.so",
"lib/armeabi-v7a/libcrypto.so",
"lib/arm64-v8a/libcrypto.so",
],
},
},
},
],
[
"expo-alternate-app-icons",
[
"./assets/images/main.png",
"./assets/images/blue.png",
"./assets/images/gray.png",
"./assets/images/red.png",
"./assets/images/teal.png",
],
],
[
"expo-media-library",
{
photosPermission: "Allow $(PRODUCT_NAME) to access your photos.",
savePhotosPermission: "Allow $(PRODUCT_NAME) to save photos.",
isAccessMediaLocationEnabled: true,
},
],
[
"expo-pod-pinner",
{
targetName: "movieweb",
pods: [{ "OpenSSL-Universal": "1.1.2200" }],
},
],
],
name: "movie-web",
slug: "mw-mobile",
scheme: "movieweb",
version,
icon: "./assets/images/icon.png",
userInterfaceStyle: "automatic",
splash: {
image: "./assets/images/splash.png",
resizeMode: "contain",
backgroundColor: "#000000",
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ["**/*"],
ios: {
bundleIdentifier: "dev.movieweb.mobile",
supportsTablet: true,
requireFullScreen: true,
infoPlist: {
CFBundleName: "movie-web",
NSPhotoLibraryUsageDescription:
"This app saves videos to the photo library.",
},
},
android: {
package: "dev.movieweb.mobile",
permissions: ["WRITE_SETTINGS"],
},
web: {
favicon: "./assets/images/favicon.png",
bundler: "metro",
},
experiments: {
tsconfigPaths: true,
typedRoutes: true,
},
plugins: [
"expo-router",
[withRemoveiOSNotificationEntitlement as unknown as string],
[
"expo-screen-orientation",
{
initialOrientation: "PORTRAIT_UP",
},
],
[
"expo-build-properties",
{
ios: {
newArchEnabled: false,
},
android: {
newArchEnabled: false,
minSdkVersion: 24,
packagingOptions: {
pickFirst: [
"lib/x86/libcrypto.so",
"lib/x86_64/libcrypto.so",
"lib/armeabi-v7a/libcrypto.so",
"lib/arm64-v8a/libcrypto.so",
],
},
},
},
],
[
"expo-alternate-app-icons",
[
"./assets/images/main.png",
"./assets/images/blue.png",
"./assets/images/gray.png",
"./assets/images/red.png",
"./assets/images/teal.png",
],
],
[
"expo-media-library",
{
photosPermission: "Allow $(PRODUCT_NAME) to access your photos.",
savePhotosPermission: "Allow $(PRODUCT_NAME) to save photos.",
isAccessMediaLocationEnabled: true,
},
],
[
"expo-pod-pinner",
{
targetName: "movieweb",
pods: [{ "OpenSSL-Universal": "1.1.2200" }],
},
],
],
});

export default defineConfig;
27 changes: 15 additions & 12 deletions apps/expo/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Learn more: https://docs.expo.dev/guides/monorepos/
const { getDefaultConfig } = require("expo/metro-config");
const { mergeConfig } = require('metro-config');
const { mergeConfig } = require("metro-config");
const { FileStore } = require("metro-cache");
const { withTamagui } = require("@tamagui/metro-plugin");

Expand All @@ -9,17 +9,20 @@ const path = require("path");
module.exports = withTurborepoManagedCache(
withMonorepoPaths(
withTamagui(
mergeConfig(getDefaultConfig(__dirname, {
isCSSEnabled: true,
}), {
transformer: {
getTransformOptions: async () => ({
transform: {
inlineRequires: true,
},
}),
},
}),
mergeConfig(
getDefaultConfig(__dirname, {
isCSSEnabled: true,
}),
{
transformer: {
getTransformOptions: async () => ({
transform: {
inlineRequires: true,
},
}),
},
},
),
{
components: ["tamagui"],
config: "./tamagui.config.ts",
Expand Down
4 changes: 2 additions & 2 deletions apps/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
"@types/babel__core": "^7.20.5",
"@types/react": "^18.2.48",
"babel-plugin-module-resolver": "^5.0.0",
"eslint": "^8.56.0",
"prettier": "^3.1.1",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.4.3"
},
"eslintConfig": {
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"@movie-web/prettier-config": "workspace:^0.1.0",
"@turbo/gen": "^1.11.3",
"prettier": "^3.1.1",
"prettier": "^3.2.5",
"turbo": "^1.11.3",
"typescript": "^5.4.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@movie-web/prettier-config": "workspace:^0.1.0",
"@movie-web/tsconfig": "workspace:^0.1.0",
"@types/node-forge": "^1.3.11",
"eslint": "^8.56.0",
"prettier": "^3.1.1",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.4.3"
},
"eslintConfig": {
Expand Down
9 changes: 4 additions & 5 deletions packages/provider-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@movie-web/eslint-config": "workspace:^0.2.0",
"@movie-web/prettier-config": "workspace:^0.1.0",
"@movie-web/tsconfig": "workspace:^0.1.0",
"eslint": "^8.56.0",
"prettier": "^3.1.1",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.4.3"
},
"eslintConfig": {
Expand All @@ -28,9 +28,8 @@
]
},
"prettier": "@movie-web/prettier-config",
"trustedDependencies": ["@movie-web/providers"],
"dependencies": {
"@movie-web/providers": "https://github.com/castdrian/providers-bun",
"@movie-web/providers": "workspace:*",
"@nabla/vite-plugin-eslint": "^2.0.2",
"@types/cookie": "^0.6.0",
"@types/crypto-js": "^4.2.2",
Expand Down Expand Up @@ -66,4 +65,4 @@
"vite-plugin-dts": "^3.8.1",
"vitest": "^1.4.0"
}
}
}
21 changes: 21 additions & 0 deletions packages/providers/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 movie-web

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 4 additions & 0 deletions packages/providers/lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare const name_2 = "providers";
export { name_2 as name }

export { }
4 changes: 4 additions & 0 deletions packages/providers/lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const name = "providers";
export {
name
};
8 changes: 8 additions & 0 deletions packages/providers/lib/index.umd.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.index = {}));
})(this, function(exports2) {
"use strict";
const name = "providers";
exports2.name = name;
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
});
Loading

0 comments on commit 26524f9

Please sign in to comment.