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

EAS Build #267

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ npx pod-install
1. Create a new app in firebase with the package with the suffix of the flavor you will run
2. Download the `google-services.json` and move it to the `./android/app` directory

## EAS Build

JUNIOR140889 marked this conversation as resolved.
Show resolved Hide resolved
### Android build

1. Run the command `eas build --profile development --platform android` to run a build in android
2. Select the flavour after the compilation and type `y` in `Install and run the Android build on an emulator?`

Optional: For local build add the flag `--local`

For more detail see the [documentation](https://docs.expo.dev/eas-update/getting-started/)

### IOS build

🚧 UNDER CONSTRUCTION 🚧

## Continuous Integration

The repo includes configuration for using GitHub Actions to run unit tests and code analysis: `.github/workflows/test.yml`. This can be adapted as needed for specifics of each project. Both CodeClimate and Sonarqube integrations are included in the workflow and their required environment settings should be retrieved from the repo Secrets.
Expand Down
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -146,21 +146,21 @@ android {
versionName "1.0.0"
}
develop {
applicationIdSuffix '.dev'
applicationId "com.reactnativebase.dev"
versionNameSuffix "- Develop"
resValue "string", "app_name", "RNBase - Develop"
versionCode 1
versionName "1.0.0"
}
qa {
applicationIdSuffix '.qa'
applicationId "com.reactnativebase.qa"
versionNameSuffix "- QA"
resValue "string", "app_name", "RNBase - QA"
versionCode 1
versionName "1.0.0"
}
staging {
applicationIdSuffix '.staging'
applicationId 'com.reactnativebase.staging'
versionNameSuffix "- Staging"
resValue "string", "app_name", "RNBase - Staging"
versionCode 1
Expand Down
25 changes: 22 additions & 3 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:333015382550:android:dc159faf9b60b35c4d9337",
"mobilesdk_app_id": "1:333015382550:android:715ce630e31cc0844d9337",
"android_client_info": {
"package_name": "com.reactnativebase"
}
Expand Down Expand Up @@ -45,9 +45,28 @@
},
{
"client_info": {
"mobilesdk_app_id": "1:333015382550:android:793fcb397d01eb374d9337",
"mobilesdk_app_id": "1:333015382550:android:6c9ea0d5e94cd1be4d9337",
"android_client_info": {
"package_name": "com.universe.innovations.development"
"package_name": "com.reactnativebase.qa"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyAR89MZuomztR1dneLOnvSypc46P_U7OE0"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:333015382550:android:0603e066cbadd2ad4d9337",
"android_client_info": {
"package_name": "com.reactnativebase.staging"
}
},
"oauth_client": [],
Expand Down
10 changes: 8 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"name": "ReactNativeBase",
"displayName": "ReactNativeBase"
}
"displayName": "ReactNativeBase",
"expo": {
"extra": {
"eas": {
JUNIOR140889 marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
}
24 changes: 24 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"cli": {
"version": ">= 9.0.7"
},
"build": {
"development": {
"developmentClient": true,
"withoutCredentials": true,
"distribution": "internal",
"env": {
"API_URL": " ",
"BASE_URL": " ",
"APP_STORE_URL": " ",
"PLAY_STORE_URL": " "
},
"ios": {
"simulator": true
}
}
},
"submit": {
"production": {}
}
}
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ SPEC CHECKSUMS:
RNFBRemoteConfig: ae7080ed8bc072751999f615879096ab616eeb83
RNScreens: 17e2f657f1b09a71ec3c821368a04acbb7ebcb46
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
Yoga: a716eea57d0d3430219c0a5a233e1e93ee931eb7
Yoga: 9e6a04eacbd94f97d94577017e9f23b3ab41cf6c

PODFILE CHECKSUM: 51c9bd90f6367cea26ebeb274fd134e6cbcf3626

Expand Down
28 changes: 22 additions & 6 deletions ios/ReactNativeBase.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
4205FAE62A96C68B00DCD537 /* Colors.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4205FAE42A96C68B00DCD537 /* Colors.xcassets */; };
4205FAE72A96C68B00DCD537 /* BootSplash.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4205FAE52A96C68B00DCD537 /* BootSplash.storyboard */; };
4BCFA75E2BE0243C00D95A36 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 4BCFA75D2BE0243C00D95A36 /* GoogleService-Info.plist */; };
7BD1A54057EA747B02F2880A /* libPods-ReactNativeBase.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B1478BB1924F79D4BF5041AD /* libPods-ReactNativeBase.a */; };
E5DB18E2600904217A10F528 /* libPods-ReactNativeBase-ReactNativeBaseTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 752FC68F2E7B2A56E9903872 /* libPods-ReactNativeBase-ReactNativeBaseTests.a */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -44,7 +43,6 @@
4088188EB0721E64B5210F85 /* Pods-ReactNativeBase.release-develop.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeBase.release-develop.xcconfig"; path = "Target Support Files/Pods-ReactNativeBase/Pods-ReactNativeBase.release-develop.xcconfig"; sourceTree = "<group>"; };
4205FAE42A96C68B00DCD537 /* Colors.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Colors.xcassets; path = ReactNativeBase/Colors.xcassets; sourceTree = "<group>"; };
4205FAE52A96C68B00DCD537 /* BootSplash.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = BootSplash.storyboard; path = ReactNativeBase/BootSplash.storyboard; sourceTree = "<group>"; };
4BCFA75D2BE0243C00D95A36 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../../Downloads/GoogleService-Info.plist"; sourceTree = "<group>"; };
58F5C8775B6DCB2FF489DAA4 /* Pods-ReactNativeBase-ReactNativeBaseTests.debug-staging.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeBase-ReactNativeBaseTests.debug-staging.xcconfig"; path = "Target Support Files/Pods-ReactNativeBase-ReactNativeBaseTests/Pods-ReactNativeBase-ReactNativeBaseTests.debug-staging.xcconfig"; sourceTree = "<group>"; };
5CDA9629E36EA1F3653DB76B /* Pods-ReactNativeBase.debug-develop.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeBase.debug-develop.xcconfig"; path = "Target Support Files/Pods-ReactNativeBase/Pods-ReactNativeBase.debug-develop.xcconfig"; sourceTree = "<group>"; };
6E7163E37D59D8272B457BE3 /* Pods-ReactNativeBase-ReactNativeBaseTests.release-develop.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeBase-ReactNativeBaseTests.release-develop.xcconfig"; path = "Target Support Files/Pods-ReactNativeBase-ReactNativeBaseTests/Pods-ReactNativeBase-ReactNativeBaseTests.release-develop.xcconfig"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -103,7 +101,6 @@
13B07FAE1A68108700A75B9A /* ReactNativeBase */ = {
isa = PBXGroup;
children = (
4BCFA75D2BE0243C00D95A36 /* GoogleService-Info.plist */,
13B07FAF1A68108700A75B9A /* AppDelegate.h */,
13B07FB01A68108700A75B9A /* AppDelegate.mm */,
13B07FB51A68108700A75B9A /* Images.xcassets */,
Expand Down Expand Up @@ -214,6 +211,7 @@
13B07F871A680F5B00A75B9A /* Sources */,
13B07F8C1A680F5B00A75B9A /* Frameworks */,
13B07F8E1A680F5B00A75B9A /* Resources */,
AB99A26A2C0052B200CDD0BE /* Run GoogleService-Info.plist Script */,
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
A4B6A27D46301994BA815C8A /* [CP] Embed Pods Frameworks */,
6E1F3497EDF92DD352175F7A /* [CP] Copy Pods Resources */,
Expand Down Expand Up @@ -277,7 +275,6 @@
buildActionMask = 2147483647;
files = (
4205FAE72A96C68B00DCD537 /* BootSplash.storyboard in Resources */,
4BCFA75E2BE0243C00D95A36 /* GoogleService-Info.plist in Resources */,
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
4205FAE62A96C68B00DCD537 /* Colors.xcassets in Resources */,
);
Expand Down Expand Up @@ -386,6 +383,24 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeBase/Pods-ReactNativeBase-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
AB99A26A2C0052B200CDD0BE /* Run GoogleService-Info.plist Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "Run GoogleService-Info.plist Script";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nPATH_TO_GOOGLE_PLISTS=\"${PROJECT_DIR}/firebase\"\ncase \"${CONFIGURATION}\" in\n \"Debug\" | \"Release\" )\n cp -r \"$PATH_TO_GOOGLE_PLISTS/GoogleService-Info.plist\" \"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist\" ;;\n \"Debug-Develop\" )\n cp -r \"$PATH_TO_GOOGLE_PLISTS/GoogleService-Info-dev.plist\" \"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist\" ;;\n \"Debug-QA\" | \"Release-QA\" )\n cp -r \"$PATH_TO_GOOGLE_PLISTS/GoogleService-Info-qa.plist\" \"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist\" ;;\n \"Debug-Staging\" | \"Release-Staging\" )\n cp -r \"$PATH_TO_GOOGLE_PLISTS/GoogleService-Info-staging.plist\" \"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist\" ;;\n *)\n ;;\nesac\n";
};
C09DE9D89F64AFC639D8D1AE /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -557,7 +572,7 @@
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = WNU857N39T;
ENABLE_BITCODE = NO;
ENVIRONMENT_FILE = .env.prod;
INFOPLIST_FILE = ReactNativeBase/Info.plist;
Expand Down Expand Up @@ -1118,7 +1133,8 @@
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Develop";
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Manual;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
Expand Down
30 changes: 30 additions & 0 deletions ios/firebase/GoogleService-Info-dev.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>API_KEY</key>
<string>AIzaSyDsqC3i6Mixj8iEI2jZitc2zaow-rYT0LU</string>
<key>GCM_SENDER_ID</key>
<string>333015382550</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.rootstrap.react-native-base.dev</string>
<key>PROJECT_ID</key>
<string>force-update-test-aae87</string>
<key>STORAGE_BUCKET</key>
<string>force-update-test-aae87.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:333015382550:ios:39b3e8a5cb4549fb4d9337</string>
</dict>
</plist>
30 changes: 30 additions & 0 deletions ios/firebase/GoogleService-Info-qa.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>API_KEY</key>
<string>AIzaSyDsqC3i6Mixj8iEI2jZitc2zaow-rYT0LU</string>
<key>GCM_SENDER_ID</key>
<string>333015382550</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.rootstrap.react-native-base.qa</string>
<key>PROJECT_ID</key>
<string>force-update-test-aae87</string>
<key>STORAGE_BUCKET</key>
<string>force-update-test-aae87.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:333015382550:ios:3b5456da482ebf344d9337</string>
</dict>
</plist>
30 changes: 30 additions & 0 deletions ios/firebase/GoogleService-Info-staging.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>API_KEY</key>
<string>AIzaSyDsqC3i6Mixj8iEI2jZitc2zaow-rYT0LU</string>
<key>GCM_SENDER_ID</key>
<string>333015382550</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.rootstrap.react-native-base.staging</string>
<key>PROJECT_ID</key>
<string>force-update-test-aae87</string>
<key>STORAGE_BUCKET</key>
<string>force-update-test-aae87.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:333015382550:ios:ee664cfb3bf71e164d9337</string>
</dict>
</plist>
30 changes: 30 additions & 0 deletions ios/firebase/GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>API_KEY</key>
<string>AIzaSyDsqC3i6Mixj8iEI2jZitc2zaow-rYT0LU</string>
<key>GCM_SENDER_ID</key>
<string>333015382550</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.rootstrap.react-native-base</string>
<key>PROJECT_ID</key>
<string>force-update-test-aae87</string>
<key>STORAGE_BUCKET</key>
<string>force-update-test-aae87.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:333015382550:ios:1c91a70959a7b05d4d9337</string>
</dict>
</plist>
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
"@react-navigation/native-stack": "^6.9.1",
"@tanstack/react-query": "^4.2.1",
"axios": "^1.6.8",
"expo": "^51.0.5",
"expo-dev-client": "^4.0.15",
"humps": "^2.0.1",
"i18next": "^23.4.4",
"react": "18.2.0",
Expand Down
Loading
Loading