Skip to content

Commit ebfee23

Browse files
authored
🔖 - Version 2.3.3 (#381)
2 parents 8a282c8 + 0523302 commit ebfee23

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+5387
-2222
lines changed

‎.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ local.properties
4141
node_modules/
4242
npm-debug.log
4343
yarn-error.log
44+
.yarn/*
45+
!.yarn/patches
46+
!.yarn/plugins
47+
!.yarn/releases
48+
!.yarn/sdks
49+
!.yarn/versions
4450

4551
# fastlane
4652
#
@@ -58,10 +64,11 @@ yarn-error.log
5864
*.jsbundle
5965

6066
# Ruby / CocoaPods
61-
/ios/Pods/
67+
**/Pods/
6268
/ios/GoogleService-Info.plist
6369
/vendor/bundle/
6470

71+
6572
# Ignite-specific items below
6673
# You can safely replace everything above this comment with whatever is
6774
# in the default .gitignore generated by React-Native CLI

‎.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"tasks": [
44
{
55
"type": "shell",
6-
"command": "yarn run ios --simulator=\"iPhone 15 Pro\"",
6+
"command": "yarn run ios --simulator=\"iPhone 16 Pro\"",
77
"problemMatcher": [],
88
"label": "Run iOS",
99
"detail": "Serves the app with iOS"

‎android/app/build.gradle

Lines changed: 17 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
apply plugin: "kotlin-android"
12
apply plugin: "com.android.application"
23
apply plugin: "com.facebook.react"
34
apply plugin: "com.google.gms.google-services"
45
apply plugin: "com.google.firebase.crashlytics"
56

6-
import com.android.build.OutputFile
7-
87
def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath()
98
def expoDebuggableVariants = ['debug']
109
// Override `debuggableVariants` for expo-updates debugging
@@ -26,15 +25,15 @@ react {
2625
debuggableVariants = expoDebuggableVariants
2726

2827
/* Folders */
29-
// The root of your project, i.e. where "package.json" lives. Default is '..'
30-
// root = file("../")
31-
// The folder where the react-native NPM package is. Default is ../node_modules/react-native
32-
// reactNativeDir = file("../node_modules/react-native")
33-
// The folder where the react-native Codegen package is. Default is ../node_modules/react-native-codegen
34-
// codegenDir = file("../node_modules/react-native-codegen")
35-
// The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
36-
// cliFile = file("../node_modules/react-native/cli.js")
37-
28+
// The root of your project, i.e. where "package.json" lives. Default is '../..'
29+
// root = file("../../")
30+
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
31+
// reactNativeDir = file("../../node_modules/react-native")
32+
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
33+
// codegenDir = file("../../node_modules/@react-native/codegen")
34+
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
35+
// cliFile = file("../../node_modules/react-native/cli.js")
36+
3837
/* Variants */
3938
// The list of variants to that are debuggable. For those we're going to
4039
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
@@ -67,21 +66,16 @@ react {
6766
//
6867
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
6968
// hermesFlags = ["-O", "-output-source-map"]
69+
70+
/* Autolinking */
71+
autolinkLibrariesWithApp()
7072
}
7173

7274
// Override `hermesEnabled` by `expo.jsEngine`
7375
ext {
7476
hermesEnabled = (findProperty('expo.jsEngine') ?: "hermes") == "hermes"
7577
}
7678

77-
/**
78-
* Set this to true to create four separate APKs instead of one,
79-
* one for each native architecture. This is useful if you don't
80-
* use App Bundles (https://developer.android.com/guide/app-bundle/)
81-
* and want to have separate APKs to upload to the Play Store.
82-
*/
83-
def enableSeparateBuildPerCPUArchitecture = false
84-
8579
/**
8680
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
8781
*/
@@ -100,39 +94,22 @@ def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInRelea
10094
*/
10195
def jscFlavor = 'org.webkit:android-jsc:+'
10296

103-
/**
104-
* Private function to get the list of Native Architectures you want to build.
105-
* This reads the value from reactNativeArchitectures in your gradle.properties
106-
* file and works together with the --active-arch-only flag of react-native run-android.
107-
*/
108-
def reactNativeArchitectures() {
109-
def value = project.getProperties().get("reactNativeArchitectures")
110-
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
111-
}
112-
11397
android {
11498
ndkVersion rootProject.ext.ndkVersion
11599

116-
compileSdkVersion rootProject.ext.compileSdkVersion
100+
buildToolsVersion rootProject.ext.buildToolsVersion
101+
compileSdk rootProject.ext.compileSdkVersion
117102

118103
namespace "com.betterrail"
119104
defaultConfig {
120105
applicationId "com.betterrail"
121106
minSdkVersion rootProject.ext.minSdkVersion
122107
targetSdkVersion rootProject.ext.targetSdkVersion
123-
versionCode 84
124-
versionName "2.3.2"
108+
versionCode 88
109+
versionName "2.3.3"
125110
missingDimensionStrategy "store", "play"
126111
}
127112

128-
splits {
129-
abi {
130-
reset()
131-
enable enableSeparateBuildPerCPUArchitecture
132-
universalApk false // If true, also generate a universal APK
133-
include (*reactNativeArchitectures())
134-
}
135-
}
136113
signingConfigs {
137114
debug {
138115
storeFile file('debug.keystore')
@@ -153,44 +130,18 @@ android {
153130
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
154131
}
155132
}
156-
157-
// applicationVariants are e.g. debug, release
158-
applicationVariants.all { variant ->
159-
variant.outputs.each { output ->
160-
// For each separate APK per architecture, set a unique version code as described here:
161-
// https://developer.android.com/studio/build/configure-apk-splits.html
162-
// Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
163-
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
164-
def abi = output.getFilter(OutputFile.ABI)
165-
if (abi != null) { // null for the universal-debug, universal-release variants
166-
output.versionCodeOverride =
167-
defaultConfig.versionCode * 1000 + versionCodes.get(abi)
168-
}
169-
170-
}
171-
}
172133
}
173134

174135
dependencies {
175136
// The version of react-native is set by the React Native Gradle Plugin
176137
implementation("com.facebook.react:react-android")
177-
178-
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")
179138

180139
// RN BootSplash
181140
implementation("androidx.core:core-splashscreen:1.0.0")
182141

183-
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
184-
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
185-
exclude group:'com.squareup.okhttp3', module:'okhttp'
186-
}
187-
188-
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
189142
if (hermesEnabled.toBoolean()) {
190143
implementation("com.facebook.react:hermes-android")
191144
} else {
192145
implementation jscFlavor
193146
}
194147
}
195-
196-
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

‎android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5-
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6-
75
<application
86
android:usesCleartextTraffic="true"
97
tools:targetApi="28"
10-
tools:ignore="GoogleAppIndexingWarning">
11-
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
12-
</application>
8+
tools:ignore="GoogleAppIndexingWarning"/>
139
</manifest>

‎android/app/src/debug/java/com/betterrail/ReactNativeFlipper.java

Lines changed: 0 additions & 77 deletions
This file was deleted.
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
package com.betterrail;
1+
// package com.betterrail;
22

3-
import android.os.Bundle;
4-
import com.facebook.react.ReactActivity;
5-
import com.facebook.react.ReactActivityDelegate;
6-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
7-
import com.facebook.react.defaults.DefaultReactActivityDelegate;
3+
// import android.os.Bundle;
4+
// import com.facebook.react.ReactActivity;
5+
// import com.facebook.react.ReactActivityDelegate;
6+
// import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
7+
// import com.facebook.react.defaults.DefaultReactActivityDelegate;
88

9-
public class MainActivity extends ReactActivity {
9+
// public class MainActivity extends ReactActivity {
1010

11-
/**
12-
* Returns the name of the main component registered from JavaScript. This is used to schedule
13-
* rendering of the component.
14-
*/
15-
@Override
16-
protected String getMainComponentName() {
17-
return "BetterRail";
18-
}
11+
// /**
12+
// * Returns the name of the main component registered from JavaScript. This is used to schedule
13+
// * rendering of the component.
14+
// */
15+
// @Override
16+
// protected String getMainComponentName() {
17+
// return "BetterRail";
18+
// }
1919

20-
/**
21-
* Fix for react-native-screens (https://github.com/software-mansion/react-native-screens#android)
22-
*/
23-
@Override
24-
protected void onCreate(Bundle savedInstanceState) {
25-
super.onCreate(null);
26-
}
20+
// /**
21+
// * Fix for react-native-screens (https://github.com/software-mansion/react-native-screens#android)
22+
// */
23+
// @Override
24+
// protected void onCreate(Bundle savedInstanceState) {
25+
// super.onCreate(null);
26+
// }
2727

28-
/**
29-
* Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
30-
* DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React
31-
* (aka React 18) with two boolean flags.
32-
*/
33-
@Override
34-
protected ReactActivityDelegate createReactActivityDelegate() {
35-
return new DefaultReactActivityDelegate(
36-
this,
37-
getMainComponentName(),
38-
// If you opted-in for the New Architecture, we enable the Fabric Renderer.
39-
DefaultNewArchitectureEntryPoint.getFabricEnabled(), // fabricEnabled
40-
// If you opted-in for the New Architecture, we enable Concurrent React (i.e. React 18).
41-
DefaultNewArchitectureEntryPoint.getConcurrentReactEnabled() // concurrentRootEnabled
42-
);
43-
}
44-
}
28+
// /**
29+
// * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
30+
// * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React
31+
// * (aka React 18) with two boolean flags.
32+
// */
33+
// @Override
34+
// protected ReactActivityDelegate createReactActivityDelegate() {
35+
// return new DefaultReactActivityDelegate(
36+
// this,
37+
// getMainComponentName(),
38+
// // If you opted-in for the New Architecture, we enable the Fabric Renderer.
39+
// DefaultNewArchitectureEntryPoint.getFabricEnabled(), // fabricEnabled
40+
// // If you opted-in for the New Architecture, we enable Concurrent React (i.e. React 18).
41+
// DefaultNewArchitectureEntryPoint.getConcurrentReactEnabled() // concurrentRootEnabled
42+
// );
43+
// }
44+
// }
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.betterrail
2+
3+
import com.facebook.react.ReactActivity
4+
import com.facebook.react.ReactActivityDelegate
5+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
6+
import com.facebook.react.defaults.DefaultReactActivityDelegate
7+
8+
class MainActivity : ReactActivity() {
9+
10+
/**
11+
* Returns the name of the main component registered from JavaScript. This is used to schedule
12+
* rendering of the component.
13+
*/
14+
override fun getMainComponentName(): String = "BetterRail"
15+
16+
/**
17+
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
18+
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
19+
*/
20+
override fun createReactActivityDelegate(): ReactActivityDelegate =
21+
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
22+
}

0 commit comments

Comments
 (0)