Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update React Native #318

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
bfc3b8d
chore: update yarn versions
zigavehovec Nov 13, 2023
ce94e2f
chore: fix js build?
zigavehovec Nov 13, 2023
60b8c2d
chore: migrate android/build.gradle
zigavehovec Nov 13, 2023
c2fb2c8
Merge branch 'development' into PRN-66/update-react-native-to-the-lat…
zigavehovec Nov 13, 2023
d6964b6
chore: migrate example app
zigavehovec Nov 13, 2023
c796d81
chore: migrate example app
zigavehovec Nov 13, 2023
e58417e
chore: fix native module auto-linking
zigavehovec Nov 14, 2023
d6306f6
chore: gradle fixes
zigavehovec Nov 14, 2023
69eed4b
chore: fix android build
zigavehovec Nov 14, 2023
a5b9cd2
chore: update example flipper implementations
zigavehovec Nov 15, 2023
d1c90fa
chore: remove not needed files
zigavehovec Nov 15, 2023
f61fc3e
chore: sync with reference project
zigavehovec Nov 15, 2023
e098826
chore: migrate iOS
zigavehovec Nov 15, 2023
63b3f1f
chore: use the new metro config
zigavehovec Nov 15, 2023
de73fb8
Merge branch 'development' into PRN-66/update-react-native-to-the-lat…
zigavehovec Nov 15, 2023
8105c4a
chore: update podfile.lock
zigavehovec Nov 15, 2023
e593555
chore: ignore node_modules folders from SwiftLint
rolandkakonyi Nov 16, 2023
2d98c66
Merge branch 'development' into PRN-66/update-react-native-to-the-lat…
rolandkakonyi Nov 16, 2023
2cfdae4
chore: fix tvOS example application
rolandkakonyi Nov 16, 2023
80b50b9
chore: remove unneeded import
rolandkakonyi Nov 16, 2023
a9ddb70
chore: some updates
zigavehovec Nov 16, 2023
59bf04d
chore: remove unndecessary backport for Xcode 15
rolandkakonyi Nov 16, 2023
2f2d0df
Merge branch 'PRN-66/update-react-native-to-the-latest-version' of gi…
rolandkakonyi Nov 16, 2023
944088c
chore: prevent Brewfile.lock.json to be generated when using via yarn
rolandkakonyi Nov 22, 2023
d2474a1
chore: start packager when running iOS or tvOS example app
rolandkakonyi Nov 22, 2023
22e540f
chore: fix tvOS UI
rolandkakonyi Nov 22, 2023
22fa260
Merge branch 'development' into PRN-66/update-react-native-to-the-lat…
rolandkakonyi Nov 22, 2023
88a4cc7
Merge branch 'development' into PRN-66/update-react-native-to-the-lat…
rolandkakonyi Nov 24, 2023
b1bb85e
chore: change target & compile sdk to 33
zigavehovec Nov 24, 2023
a826b1e
Merge remote-tracking branch 'origin/PRN-66/update-react-native-to-th…
zigavehovec Nov 24, 2023
b8f0f0f
Merge branch 'development' into PRN-66/update-react-native-to-the-lat…
rolandkakonyi Nov 28, 2023
cfed18c
chore: add changelog
zigavehovec Dec 1, 2023
807a221
Merge branch 'development' into PRN-66/update-react-native-to-the-lat…
zigavehovec Dec 1, 2023
b1cf875
Merge branch 'development' into PRN-66/update-react-native-to-the-lat…
rolandkakonyi Dec 5, 2023
0c62cff
Merge branch 'development' into PRN-66/update-react-native-to-the-lat…
zigavehovec Dec 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
excluded:
# folders that are excluded from linting, external dependencies or generated files
- ${PWD}/node_modules
- ${PWD}/example/ios/Pods
- ${PWD}/example/node_modules

disabled_rules:
- todo
Expand Down
6 changes: 3 additions & 3 deletions Brewfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
"system": {
"macos": {
"sonoma": {
"HOMEBREW_VERSION": "4.1.15",
"HOMEBREW_VERSION": "4.1.20",
"HOMEBREW_PREFIX": "/opt/homebrew",
"Homebrew/homebrew-core": "api",
"CLT": "15.0.0.0.1.1694021235",
"Xcode": "15.0",
"CLT": "",
"Xcode": "15.0.1",
"macOS": "14.0"
}
}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [unreleased]

### Changed

- React Native version to `0.72.6`

## [0.14.2] (2023-11-27)

### Fixed
Expand Down
94 changes: 68 additions & 26 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
buildscript {
ext {
kotlinVersion = '1.7.21'
androidToolsVersion = '7.4.2'
ktlintVersion = '11.6.0'
}
// Buildscript is evaluated before everything else so we can't use getExtOrDefault
def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["BitmovinPlayerReactNative_kotlinVersion"]
def ktlint_version = rootProject.ext.has("ktlintVersion") ? rootProject.ext.get("ktlintVersion") : project.properties["BitmovinPlayerReactNative_ktlintVersion"]
def android_tools_version = rootProject.ext.has("androidToolsVersion") ? rootProject.ext.get("androidToolsVersion") : project.properties["BitmovinPlayerReactNative_androidToolsVersion"]

repositories {
google()
mavenCentral()
Expand All @@ -12,54 +12,96 @@ buildscript {
}
}
dependencies {
classpath "com.android.tools.build:gradle:$androidToolsVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktlintVersion"
classpath "com.android.tools.build:gradle:$android_tools_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktlint_version"
}
}

def isNewArchitectureEnabled() {
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.jlleitschuh.gradle.ktlint'

repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
google()
mavenCentral()
maven { url 'https://artifacts.bitmovin.com/artifactory/public-releases' }
if (isNewArchitectureEnabled()) {
apply plugin: "com.facebook.react"
}

def getExtOrDefault(name) {
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["BitmovinPlayerReactNative_" + name]
}

def getExtOrIntegerDefault(name) {
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["BitmovinPlayerReactNative_" + name]).toInteger()
}

def supportsNamespace() {
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
def major = parsed[0].toInteger()
def minor = parsed[1].toInteger()

// Namespace support was added in 7.3.0
return (major == 7 && minor >= 3) || major >= 8
}

android {
compileSdk 33
if (supportsNamespace()) {
namespace "com.bitmovin.player.reactnative"

sourceSets {
main {
manifest.srcFile "src/main/AndroidManifestNew.xml"
}
}
}

compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")

defaultConfig {
minSdkVersion 21
targetSdkVersion 33
versionCode 1
versionName '1.0'
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")

}

buildTypes {
release {
minifyEnabled false
}
}

lintOptions {
disable 'GradleCompatible'
disable "GradleCompatible"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildFeatures {
buildConfig true
}
}

repositories {
google()
mavenCentral()
}

def kotlin_version = getExtOrDefault("kotlinVersion")

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
// For < 0.71, this will be from the local maven repo
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+' // From node_modules
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

// Bitmovin
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.31.0'
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
implementation 'com.bitmovin.player:player:3.53.0+jason'
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+' // From node_modules
}
7 changes: 7 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
android.useAndroidX=true
BitmovinPlayerReactNative_kotlinVersion=1.7.0
BitmovinPlayerReactNative_minSdkVersion=21
BitmovinPlayerReactNative_targetSdkVersion=33
BitmovinPlayerReactNative_compileSdkVersion=33
BitmovinPlayerReactNative_ndkversion=21.4.7075529
BitmovinPlayerReactNative_androidToolsVersion=7.4.2
BitmovinPlayerReactNative_ktlintVersion=11.6.0
2 changes: 2 additions & 0 deletions android/src/main/AndroidManifestNew.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>
Loading
Loading