Skip to content

Commit e7292e5

Browse files
committed
Updated RN sample app version to 0.76.9. Working iOS and Android
1 parent d12b3ff commit e7292e5

Some content is hidden

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

53 files changed

+967
-1609
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
## Build generated
66
build/
77
DerivedData/
8+
.yarn/
89
*.DS_Store
910

1011
## Various settings

.npmignore

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,56 @@
1-
sample
1+
# Sample app
2+
sample/
3+
4+
# Android build artifacts and libs
5+
android/libs/
6+
android/build/
7+
android/.gradle/
8+
android/local.properties
9+
10+
# iOS build artifacts
11+
ios/build/
12+
ios/Pods/
13+
ios/Podfile.lock
14+
15+
# Build directories
16+
build/
17+
dist/
18+
19+
# Dependencies
20+
node_modules/
21+
22+
# IDE files
23+
.idea/
24+
.vscode/
25+
*.iml
26+
*.iws
27+
28+
# OS files
29+
.DS_Store
30+
Thumbs.db
31+
32+
# Git
33+
.git/
34+
.github/
35+
36+
# Logs
37+
*.log
38+
npm-debug.log*
39+
yarn-debug.log*
40+
yarn-error.log*
41+
42+
# Other
43+
.gradle/
44+
.trunk/
45+
*.tgz
46+
*.tar.gz
47+
48+
# Heavy binary files
49+
*.jar
50+
*.aar
51+
*.so
52+
*.dylib
53+
*.dll
54+
55+
# Add this line to your .npmignore file
56+
package-lock.json

android/build.gradle

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,32 @@ sonarqube {
2121
}
2222
}
2323

24+
def supportsNamespace() {
25+
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
26+
def major = parsed[0].toInteger()
27+
def minor = parsed[1].toInteger()
28+
29+
// Namespace support was added in 7.3.0
30+
if (major == 7 && minor >= 3) {
31+
return true
32+
}
33+
34+
return major >= 8
35+
}
36+
2437
// apply plugin: 'org.jlleitschuh.gradle.ktlint'
2538
apply plugin: 'com.android.library'
2639

2740
android {
28-
namespace 'com.mparticle.react'
41+
if (supportsNamespace()) {
42+
namespace 'com.mparticle.react'
43+
buildFeatures.buildConfig = true
44+
sourceSets {
45+
main {
46+
manifest.srcFile "src/main/AndroidManifestNew.xml"
47+
}
48+
}
49+
}
2950
compileSdkVersion 33
3051

3152
defaultConfig {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<application />
3+
</manifest>

sample/.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

sample/.buckconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.

sample/.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native',
4+
};

sample/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ DerivedData
2121
*.ipa
2222
*.xcuserstate
2323
project.xcworkspace
24+
.xcode.env.local
2425

2526
# Android/IntelliJ
2627
#
@@ -29,6 +30,8 @@ build/
2930
.gradle
3031
local.properties
3132
*.iml
33+
android/app/build/
34+
android/app/.cxx/
3235

3336
# node.js
3437
#

sample/.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
bracketSameLine: true,
4+
bracketSpacing: false,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
};

sample/.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-3.6.4.cjs

0 commit comments

Comments
 (0)