Skip to content

Commit d70b37d

Browse files
committed
chore: update builds version and fastlane
1 parent c303b59 commit d70b37d

File tree

10 files changed

+44
-13090
lines changed

10 files changed

+44
-13090
lines changed

template/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ android {
139139
minSdkVersion rootProject.ext.minSdkVersion
140140
targetSdkVersion rootProject.ext.targetSdkVersion
141141
versionCode 1
142-
versionName "1.0"
142+
versionName "0.0.1"
143143

144144
// Detox
145145
testBuildType System.getProperty('testBuildType', 'debug') // This will later be used to control the test apk build type

template/android/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
android:roundIcon="@mipmap/ic_launcher_round"
1111
android:allowBackup="false"
1212
android:theme="@style/AppTheme"
13-
android:networkSecurityConfig="@xml/network_security_config">
13+
android:networkSecurityConfig="@xml/network_security_config"
14+
android:largeHeap="true"
15+
>
1416
<activity
1517
android:name=".MainActivity"
1618
android:label="@string/app_name"

template/android/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ buildscript {
99
ndkVersion = "20.1.5948944"
1010
androidXCore = "1.3.2"
1111
kotlinVersion = '1.4.0'
12-
supportLibVersion = "28.0.0"
1312

1413
}
1514
repositories {

template/android/gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
android.useAndroidX=true
2424
# Automatically convert third-party libraries to use AndroidX
2525
android.enableJetifier=true
26+
android.largeHeap="true"
27+
org.gradle.jvmargs=-Xmx4096M
28+
2629

2730
# Version of flipper SDK to use with React Native
2831
FLIPPER_VERSION=0.75.1

template/fastlane/Fastfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ platform :android do
88
desc 'Build the staging release APK.'
99
private_lane :build_staging do
1010
gradle(task: 'clean', project_dir: 'android/')
11-
sh("npm", "run", "make-apk:stagingRelease")
11+
gradle(
12+
project_dir: "android/",
13+
task: "assemble",
14+
build_type: "Release"
15+
)
1216
end
13-
17+
1418
desc 'Build the production release APK.'
1519
private_lane :build_production do
1620
gradle(task: 'clean', project_dir: 'android/')
@@ -48,6 +52,12 @@ platform :android do
4852
bump_badge
4953
deploy_staging
5054
end
55+
56+
desc 'Bump, badge, build staging Android.'
57+
lane :bump_badge_build_staging do
58+
bump_badge
59+
build_staging
60+
end
5161

5262
desc 'Bump, badge, deploy production Android.'
5363
lane :bump_badge_deploy_prod do

template/fastlane/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ Build, deploy production Android.
4444
fastlane android bump_badge_deploy_staging
4545
```
4646
Bump, badge, deploy staging Android.
47+
### android bump_badge_build_staging
48+
```
49+
fastlane android bump_badge_build_staging
50+
```
51+
Bump, badge, build staging Android.
4752
### android bump_badge_deploy_prod
4853
```
4954
fastlane android bump_badge_deploy_prod

template/ios/HelloWorld.xcodeproj/project.pbxproj

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@
277277
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
278278
2D1C02A38056F6159C1A0FED /* [CP] Embed Pods Frameworks */,
279279
B27CE49DAF9753DDDA15C657 /* [CP] Copy Pods Resources */,
280+
1A09405D9F274DE2BF9C5667 /* Upload Debug Symbols to Sentry */,
280281
);
281282
buildRules = (
282283
);
@@ -371,7 +372,7 @@
371372
);
372373
runOnlyForDeploymentPostprocessing = 0;
373374
shellPath = /bin/sh;
374-
shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n";
375+
shellScript = "export SENTRY_PROPERTIES=sentry.properties\nexport EXTRA_PACKAGER_ARGS=\"--sourcemap-output $DERIVED_FILE_DIR/main.jsbundle.map\"\nset -e\n\nexport NODE_BINARY=node\n../node_modules/@sentry/cli/bin/sentry-cli react-native xcode ../node_modules/react-native/scripts/react-native-xcode.sh\n";
375376
};
376377
05D44FBCF0B6AA444838A62B /* [CP] Copy Pods Resources */ = {
377378
isa = PBXShellScriptBuildPhase;
@@ -504,6 +505,20 @@
504505
shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
505506
showEnvVarsInLog = 0;
506507
};
508+
1A09405D9F274DE2BF9C5667 /* Upload Debug Symbols to Sentry */ = {
509+
isa = PBXShellScriptBuildPhase;
510+
buildActionMask = 2147483647;
511+
files = (
512+
);
513+
runOnlyForDeploymentPostprocessing = 0;
514+
name = "Upload Debug Symbols to Sentry";
515+
inputPaths = (
516+
);
517+
outputPaths = (
518+
);
519+
shellPath = /bin/sh;
520+
shellScript = "export SENTRY_PROPERTIES=sentry.properties\n../node_modules/@sentry/cli/bin/sentry-cli upload-dsym";
521+
};
507522
/* End PBXShellScriptBuildPhase section */
508523

509524
/* Begin PBXSourcesBuildPhase section */
@@ -595,7 +610,7 @@
595610
buildSettings = {
596611
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
597612
CLANG_ENABLE_MODULES = YES;
598-
CURRENT_PROJECT_VERSION = 1;
613+
CURRENT_PROJECT_VERSION = 4;
599614
ENABLE_BITCODE = NO;
600615
INFOPLIST_FILE = HelloWorld/Info.plist;
601616
LD_RUNPATH_SEARCH_PATHS = (
@@ -622,7 +637,7 @@
622637
buildSettings = {
623638
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
624639
CLANG_ENABLE_MODULES = YES;
625-
CURRENT_PROJECT_VERSION = 1;
640+
CURRENT_PROJECT_VERSION = 4;
626641
INFOPLIST_FILE = HelloWorld/Info.plist;
627642
LD_RUNPATH_SEARCH_PATHS = (
628643
"$(inherited)",

template/ios/HelloWorld/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
20+
<string>0.0.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

template/ios/HelloWorldTests/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>0.0.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)