Skip to content

Commit 140afa6

Browse files
Merge Conflicts + Organized / De-Duped Permissions Lists.
2 parents 624d6dc + c323125 commit 140afa6

64 files changed

Lines changed: 9127 additions & 12610 deletions

Some content is hidden

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

.github/workflows/eas-android-build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,16 @@ jobs:
133133
134134
echo "Using build profile: $BUILD_PROFILE"
135135
136+
# Ensure Gradle wrapper is staged under build/android for EAS upload
137+
echo "Copying gradle wrapper into build/android (if present)"
138+
node scripts/fixGradleWrapper.js || true
139+
140+
# Commit generated build files so EAS (which uses the git tree) includes them
141+
git config user.email "actions@github.com"
142+
git config user.name "GitHub Actions"
143+
git add build/android || true
144+
git commit -m "chore(ci): include gradle wrapper for EAS build [skip ci]" || true
145+
136146
BUILD_JSON=$(npx eas build -p android --profile $BUILD_PROFILE --non-interactive --json)
137147
echo "Raw build output: $BUILD_JSON"
138148
BUILD_ID=$(echo "$BUILD_JSON" | jq -r '.[0].id')

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ GoogleService-Info.plist
5151
.vscode/settings.json
5252

5353
# Android / iOS Build Folders
54-
android/
55-
ios/
56-
web-build/
54+
#android/
55+
#ios/
56+
#web-build/
5757

58-
.env.local
58+
#.env.local

android/app/build.gradle

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ react {
1414
hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc"
1515
codegenDir = new File(["node", "--print", "require.resolve('@react-native/codegen/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
1616

17+
enableBundleCompression = (findProperty('android.enableBundleCompression') ?: false).toBoolean()
1718
// Use Expo CLI to bundle the app, this ensures the Metro config
1819
// works correctly with Expo projects.
1920
cliFile = new File(["node", "--print", "require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })"].execute(null, rootDir).text.trim())
@@ -63,9 +64,9 @@ react {
6364
}
6465

6566
/**
66-
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
67+
* Set this to true in release builds to optimize the app using [R8](https://developer.android.com/topic/performance/app-optimization/enable-app-optimization).
6768
*/
68-
def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInReleaseBuilds') ?: false).toBoolean()
69+
def enableMinifyInReleaseBuilds = (findProperty('android.enableMinifyInReleaseBuilds') ?: false).toBoolean()
6970

7071
/**
7172
* The preferred build flavor of JavaScriptCore (JSC)
@@ -78,9 +79,10 @@ def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInRelea
7879
* give correct results when using with locales other than en-US. Note that
7980
* this variant is about 6MiB larger per architecture than default.
8081
*/
81-
def jscFlavor = 'org.webkit:android-jsc:+'
82+
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
83+
84+
apply from: new File(["node", "--print", "require('path').dirname(require.resolve('@sentry/react-native/package.json'))"].execute().text.trim(), "sentry.gradle")
8285

83-
apply from: new File(["node", "--print", "require.resolve('@sentry/react-native/package.json')"].execute().text.trim(), "../sentry.gradle")
8486
android {
8587
ndkVersion rootProject.ext.ndkVersion
8688

@@ -92,8 +94,10 @@ android {
9294
applicationId 'com.digitalnomad91.codebuilderadmin'
9395
minSdkVersion rootProject.ext.minSdkVersion
9496
targetSdkVersion rootProject.ext.targetSdkVersion
95-
versionCode 1
96-
versionName "1.1.0"
97+
versionCode 80
98+
versionName "1.0.80"
99+
100+
buildConfigField "String", "REACT_NATIVE_RELEASE_LEVEL", "\"${findProperty('reactNativeReleaseLevel') ?: 'stable'}\""
97101
}
98102
signingConfigs {
99103
debug {
@@ -102,43 +106,27 @@ android {
102106
keyAlias 'androiddebugkey'
103107
keyPassword 'android'
104108
}
105-
release {
106-
// The path to your keystore file (adjust if needed):
107-
storeFile file('../../keystore.jks')
108-
109-
// Hardcode your passwords/alias (NOT recommended for production),
110-
// or see "Using gradle.properties" below for a more secure approach.
111-
storePassword "YOUR_KEYSTORE_PASSWORD"
112-
keyAlias "YOUR_KEY_ALIAS"
113-
keyPassword "YOUR_KEY_PASSWORD"
114-
}
115109
}
116110
buildTypes {
117111
debug {
118112
signingConfig signingConfigs.debug
119113
}
120-
release {
121-
// Use the "release" signing config here
122-
signingConfig signingConfigs.release
123-
124-
shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
125-
minifyEnabled (findProperty('android.enableProguardInReleaseBuilds')?.toBoolean() ?: false)
114+
release {
115+
// Caution! In production, you need to generate your own keystore file.
116+
// see https://reactnative.dev/docs/signed-apk-android.
117+
signingConfig signingConfigs.debug
118+
def enableShrinkResources = findProperty('android.enableShrinkResourcesInReleaseBuilds') ?: 'false'
119+
shrinkResources enableShrinkResources.toBoolean()
120+
minifyEnabled enableMinifyInReleaseBuilds
126121
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
127-
crunchPngs (findProperty('android.enablePngCrunchInReleaseBuilds')?.toBoolean() ?: true)
122+
def enablePngCrunchInRelease = findProperty('android.enablePngCrunchInReleaseBuilds') ?: 'true'
123+
crunchPngs enablePngCrunchInRelease.toBoolean()
128124
}
129-
// release {
130-
// // Caution! In production, you need to generate your own keystore file.
131-
// // see https://reactnative.dev/docs/signed-apk-android.
132-
// signingConfig signingConfigs.debug
133-
// shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
134-
// minifyEnabled enableProguardInReleaseBuilds
135-
// proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
136-
// crunchPngs (findProperty('android.enablePngCrunchInReleaseBuilds')?.toBoolean() ?: true)
137-
// }
138125
}
139126
packagingOptions {
140127
jniLibs {
141-
useLegacyPackaging (findProperty('expo.useLegacyPackaging')?.toBoolean() ?: false)
128+
def enableLegacyPackaging = findProperty('expo.useLegacyPackaging') ?: 'false'
129+
useLegacyPackaging enableLegacyPackaging.toBoolean()
142130
}
143131
}
144132
androidResources {
@@ -176,15 +164,15 @@ dependencies {
176164

177165
if (isGifEnabled) {
178166
// For animated gif support
179-
implementation("com.facebook.fresco:animated-gif:${reactAndroidLibs.versions.fresco.get()}")
167+
implementation("com.facebook.fresco:animated-gif:${expoLibs.versions.fresco.get()}")
180168
}
181169

182170
if (isWebpEnabled) {
183171
// For webp support
184-
implementation("com.facebook.fresco:webpsupport:${reactAndroidLibs.versions.fresco.get()}")
172+
implementation("com.facebook.fresco:webpsupport:${expoLibs.versions.fresco.get()}")
185173
if (isWebpAnimatedEnabled) {
186174
// Animated webp support
187-
implementation("com.facebook.fresco:animated-webp:${reactAndroidLibs.versions.fresco.get()}")
175+
implementation("com.facebook.fresco:animated-webp:${expoLibs.versions.fresco.get()}")
188176
}
189177
}
190178

android/app/google-services.json

100644100755
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,25 @@
1212
"package_name": "com.digitalnomad91.codebuilderadmin"
1313
}
1414
},
15-
"oauth_client": [],
15+
"oauth_client": [
16+
{
17+
"client_id": "982053776531-0gqv0n84kjid9vtu00iq9drjvf9dvjhn.apps.googleusercontent.com",
18+
"client_type": 3
19+
}
20+
],
1621
"api_key": [
1722
{
1823
"current_key": "AIzaSyDdDNSdl2ukCEpTy2tZ2IHz1lD3UiftQFo"
1924
}
2025
],
2126
"services": {
2227
"appinvite_service": {
23-
"other_platform_oauth_client": []
28+
"other_platform_oauth_client": [
29+
{
30+
"client_id": "982053776531-0gqv0n84kjid9vtu00iq9drjvf9dvjhn.apps.googleusercontent.com",
31+
"client_type": 3
32+
}
33+
]
2434
}
2535
}
2636
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools">
3+
4+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
5+
6+
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" tools:replace="android:usesCleartextTraffic" />
7+
</manifest>

0 commit comments

Comments
 (0)