Skip to content

Commit aacf610

Browse files
committed
Merged in release/17.1.2 (pull request #95)
Release/17.1.2
2 parents cfed504 + 0653504 commit aacf610

36 files changed

Lines changed: 4813 additions & 4836 deletions

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ root = true
77
[*]
88

99
indent_style = space
10-
indent_size = 2
10+
indent_size = 4
1111

1212
end_of_line = lf
1313
charset = utf-8

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ DerivedData
2828
*.ipa
2929
*.xcuserstate
3030
project.xcworkspace
31+
**/.xcode.env.local
3132

3233
# Android/IJ
3334
#
@@ -81,7 +82,13 @@ lib/
8182
ios/generated
8283
android/generated
8384

85+
# React Native Nitro Modules
86+
nitrogen/
87+
88+
# Firebase config
8489
google-services.json
8590
GoogleService-Info.plist
8691

92+
93+
# Build
8794
main.jsbundle

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v20.19.0

android/build.gradle

Lines changed: 17 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,25 @@
11
buildscript {
2-
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
3-
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["Shake_kotlinVersion"]
2+
ext.getExtOrDefault = {name ->
3+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['Shake_' + name]
4+
}
45

56
repositories {
67
google()
78
mavenCentral()
89
}
910

1011
dependencies {
11-
classpath "com.android.tools.build:gradle:7.2.1"
12+
classpath "com.android.tools.build:gradle:8.7.2"
1213
// noinspection DifferentKotlinGradleVersion
13-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
1415
}
1516
}
1617

17-
def reactNativeArchitectures() {
18-
def value = rootProject.getProperties().get("reactNativeArchitectures")
19-
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
20-
}
21-
22-
def isNewArchitectureEnabled() {
23-
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
24-
}
2518

2619
apply plugin: "com.android.library"
2720
apply plugin: "kotlin-android"
2821

29-
if (isNewArchitectureEnabled()) {
30-
apply plugin: "com.facebook.react"
31-
}
32-
33-
def getExtOrDefault(name) {
34-
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["Shake_" + name]
35-
}
22+
apply plugin: "com.facebook.react"
3623

3724
def getExtOrIntegerDefault(name) {
3825
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["Shake_" + name]).toInteger()
@@ -48,23 +35,13 @@ def supportsNamespace() {
4835
}
4936

5037
android {
51-
if (supportsNamespace()) {
52-
namespace "com.shake"
53-
54-
sourceSets {
55-
main {
56-
manifest.srcFile "src/main/AndroidManifestNew.xml"
57-
}
58-
}
59-
}
38+
namespace "com.shake"
6039

6140
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
6241

6342
defaultConfig {
6443
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
6544
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
66-
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
67-
6845
}
6946

7047
buildFeatures {
@@ -86,14 +63,12 @@ android {
8663
targetCompatibility JavaVersion.VERSION_1_8
8764
}
8865

89-
sourceSets {
66+
sourceSets {
9067
main {
91-
if (isNewArchitectureEnabled()) {
92-
java.srcDirs += [
93-
"generated/java",
94-
"generated/jni"
95-
]
96-
}
68+
java.srcDirs += [
69+
"generated/java",
70+
"generated/jni"
71+
]
9772
}
9873
}
9974
}
@@ -103,27 +78,16 @@ repositories {
10378
google()
10479
}
10580

106-
rootProject.allprojects {
107-
repositories {
108-
mavenCentral()
109-
}
110-
}
111-
11281
def kotlin_version = getExtOrDefault("kotlinVersion")
11382

11483
dependencies {
115-
// For < 0.71, this will be from the local maven repo
116-
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
117-
//noinspection GradleDynamicVersion
118-
implementation "com.facebook.react:react-native:+"
84+
implementation "com.facebook.react:react-android"
11985
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
12086
api "$System.env.ANDROID_DEPENDENCY:17.1.+"
12187
}
12288

123-
if (isNewArchitectureEnabled()) {
124-
react {
125-
jsRootDir = file("../src/")
126-
libraryName = "Shake"
127-
codegenJavaPackageName = "com.shakebugs.react"
128-
}
89+
react {
90+
jsRootDir = file("../src/")
91+
libraryName = "TestLib"
92+
codegenJavaPackageName = "com.testlib"
12993
}

android/gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Shake_kotlinVersion=1.7.0
1+
Shake_kotlinVersion=2.0.21
22
Shake_minSdkVersion=21
3-
Shake_targetSdkVersion=31
4-
Shake_compileSdkVersion=31
5-
Shake_ndkversion=21.4.7075529
3+
Shake_targetSdkVersion=35
4+
Shake_compileSdkVersion=35
5+
Shake_ndkversion=27.1.12297006
-10.6 KB
Binary file not shown.

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Tue Apr 14 16:17:36 CEST 2020
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip

android/gradlew

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

0 commit comments

Comments
 (0)