Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
technoplato committed Dec 17, 2024
1 parent 2e30ce9 commit b684f7e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 29 deletions.
3 changes: 0 additions & 3 deletions eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"developmentClient": true,
"distribution": "internal",
"channel": "development",
"env": {
"EXPO_ENV": "dev"
},
"node": "20.15.1",
"ios": {
"cocoapods": "1.14.3"
Expand Down
8 changes: 4 additions & 4 deletions ios/Converse.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@
"FB_SONARKIT_ENABLED=1",
);
INFOPLIST_FILE = Converse/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -703,7 +703,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = Q6W2FLK8DM;
INFOPLIST_FILE = Converse/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -748,7 +748,7 @@
INFOPLIST_FILE = ConverseNotificationExtension/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = ConverseNotificationExtension;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -793,7 +793,7 @@
INFOPLIST_FILE = ConverseNotificationExtension/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = ConverseNotificationExtension;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
10 changes: 0 additions & 10 deletions ios/Converse.xcodeproj/xcshareddata/xcschemes/Converse.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@
ReferencedContainer = "container:Converse.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "FIRDebugEnabled"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "-FIRDebugEnabled"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
2 changes: 1 addition & 1 deletion screens/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export function SignedOutNavigation() {
...authScreensSharedScreenOptions,
}}
>
{/* <NativeStack.Screen
{/* __DEV__ && <NativeStack.Screen
name="TestAppCheck"
component={TestAppCheckScreen}
/> */}
Expand Down
1 change: 1 addition & 0 deletions scripts/build/build.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const findGoogleServiceFiles = () => {
});
return result.split("\n").filter(Boolean);
} catch (error) {
console.warn(`Failed to find GoogleService-Info files: ${error.message}`);
return [];
}
};
Expand Down
2 changes: 0 additions & 2 deletions utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ our application on a device that has not been tampered with.
`);
}

logger.info("App Check Token", appCheckToken);

if (!accessToken) {
const installationKeySignature =
xmtpSignatureByAccount[account] ||
Expand Down
8 changes: 5 additions & 3 deletions utils/appCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ const appCheck = firebase.appCheck();
export const tryGetAppCheckToken = async () => {
logger.debug("Getting token");
try {
// Open Questions:
// Do we need to use the limited use token?
// What endpoints are we going to protect with app check?
// App Check FAQ:
// Do we need/want to use the limited use token?

// What endpoints are protected with app check?
// @see https://github.com/ephemeraHQ/converse-backend/blob/main/api/middlewares.ts#L27
const { token } = await appCheck.getLimitedUseToken();
// const { token } = await appCheck.getToken();
return token;
Expand Down
8 changes: 2 additions & 6 deletions utils/logout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ import {
import { setAuthStatus } from "../../data/store/authStore";
import { deleteSecureItemAsync } from "../keychain";
import { deleteAccountEncryptionKey, deleteXmtpKey } from "../keychain/helpers";
import mmkv, {
authMMKVStorage,
clearSecureMmkvForAccount,
secureMmkvByAccount,
} from "../mmkv";
import mmkv, { clearSecureMmkvForAccount, secureMmkvByAccount } from "../mmkv";

import { useDisconnectFromPrivy } from "./privy";
import { deleteXmtpClient, getXmtpClient } from "../xmtpRN/sync";
Expand Down Expand Up @@ -235,7 +231,7 @@ export const logoutAccount = async (
saveLogoutTask(account, apiHeaders, [], pkPath);

setTimeout(() => {
executeLogoutTasks().then(authMMKVStorage.clear);
executeLogoutTasks();
}, 500);
};

Expand Down

0 comments on commit b684f7e

Please sign in to comment.