Skip to content

Commit

Permalink
build: add eas configs
Browse files Browse the repository at this point in the history
  • Loading branch information
caioliveira277 committed Nov 26, 2022
1 parent 610c78d commit 579e145
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
9 changes: 8 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.treefy.treefy",
Expand All @@ -39,6 +41,11 @@
},
"web": {
"favicon": "./assets/images/adaptive-icon.png"
},
"extra": {
"eas": {
"projectId": "84478004-95e8-4ffa-a942-63c322add2e1"
}
}
}
}
18 changes: 18 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"preview2": {
"android": {
"gradleCommand": ":app:assembleRelease"
}
},
"preview3": {
"developmentClient": true
},
"production": {}
}
}
2 changes: 2 additions & 0 deletions src/infra/aws/cognito/aws-cognito-identity-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
AuthenticationUpdateUserAccountParams,
} from '@/domain/usecases';
import { Amplify, Auth } from 'aws-amplify';
import { Alert } from 'react-native';

class AWSCognitoIdentityProviderClass implements IdentityProvider {
public configure(): void {
Expand All @@ -33,6 +34,7 @@ class AWSCognitoIdentityProviderClass implements IdentityProvider {
});
return true;
} catch (_error) {
Alert.alert('error', JSON.stringify(_error));
return false;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/presentation/contexts/authentication-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export class AuthenticationProvider
}

public setAuthenticatedUser = (user: AccountModel): void => {
console.log(user.accessToken);
this.setState({
authenticatedUser: user,
isAuthenticated: !!user.clientId,
Expand Down

0 comments on commit 579e145

Please sign in to comment.