Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fixed issues with adding file to target #10

Merged
merged 16 commits into from Dec 10, 2022
2 changes: 1 addition & 1 deletion app.plugin.js
@@ -1 +1 @@
module.exports = require("./build/src");
module.exports = require("./lib/commonjs/index");
89 changes: 0 additions & 89 deletions src/ios/withAppDelegateXcodeProject.ts

This file was deleted.

7 changes: 1 addition & 6 deletions src/ios/withCIOIos.ts
Expand Up @@ -2,21 +2,16 @@ import type { ExpoConfig } from '@expo/config-types';

import type { CustomerIOPluginOptionsIOS } from '../types/cio-types';
import { withAppDelegateModifications } from './withAppDelegateModifications';
import { withCioAppdelegateXcodeProject } from './withAppDelegateXcodeProject';
import { withCioNotificationsXcodeProject } from './withNotificationsXcodeProject';
import { withCioXcodeProject } from './withXcodeProject';

export function withCIOIos(
config: ExpoConfig,
props: CustomerIOPluginOptionsIOS
) {
if (props.pushNotification?.useRichPush) {
config = withCioNotificationsXcodeProject(config, props);
}

if (props.pushNotification) {
config = withAppDelegateModifications(config, props);
config = withCioAppdelegateXcodeProject(config, props);
config = withCioNotificationsXcodeProject(config, props);
}

config = withCioXcodeProject(config, props);
Expand Down