Skip to content

Commit c09f788

Browse files
committed
Fix AndroidManifest.xml namespace deprecation warning
1 parent 0a51161 commit c09f788

27 files changed

+397
-668
lines changed

.eslintignore

-4
This file was deleted.

.eslintrc.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const path = require("path");
22

33
module.exports = {
4+
root: true,
5+
ignorePatterns: ["dist", "example", ".eslintrc.js", "react-native.config.js"],
46
parser: "@typescript-eslint/parser",
57
plugins: ["@typescript-eslint", "react-hooks"],
68

.gitattributes

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# Windows files should use crlf line endings
2-
# https://help.github.com/articles/dealing-with-line-endings/
31
*.bat text eol=crlf
2+
*.pbxproj -text

.github/workflows/verify.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Verify
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
prepack:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: lts/*
19+
20+
- run: yarn install --frozen-lockfile
21+
- run: yarn prepack

.gitignore

+3-18
Original file line numberDiff line numberDiff line change
@@ -44,33 +44,18 @@ node_modules/
4444
npm-debug.log
4545
yarn-error.log
4646

47-
# fastlane
48-
#
49-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
50-
# screenshots whenever they are needed.
51-
# For more information about the recommended setup visit:
52-
# https://docs.fastlane.tools/best-practices/source-control/
53-
54-
**/fastlane/report.xml
55-
**/fastlane/Preview.html
56-
**/fastlane/screenshots
57-
**/fastlane/test_output
58-
5947
# Bundle artifact
6048
*.jsbundle
6149

6250
# Ruby / CocoaPods
6351
example/ios/Pods/
6452
example/vendor/bundle/
6553

66-
# Temporary files created by Metro to check the health of the file watcher
67-
.metro-health-check*
68-
69-
# testing
70-
/coverage
71-
7254
# Bob
7355
dist/
7456

7557
# CLI paid addon
7658
src/addon
59+
60+
# Temporary files created by Metro to check the health of the file watcher
61+
.metro-health-check*

.hooks/pre-commit

-4
This file was deleted.

android/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ android {
2727

2828
if (project.android.hasProperty("namespace")) {
2929
namespace "com.zoontek.rnbootsplash"
30+
3031
buildFeatures {
3132
buildConfig true
3233
}
34+
sourceSets {
35+
main {
36+
manifest.srcFile "src/main/AndroidManifestNew.xml"
37+
}
38+
}
3339
}
3440
defaultConfig {
3541
buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString())
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
</manifest>

android/src/main/res/anim/bootsplash_fade_out.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
43
android:interpolator="@android:interpolator/accelerate_quad"
54
android:fromAlpha="1.0"

android/src/main/res/drawable-v23/compat_splash_screen.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
43
<item android:gravity="fill">
54
<color android:color="?attr/bootSplashBackground" />

android/src/main/res/drawable-v23/compat_splash_screen_oneui_4.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
43
<item android:gravity="fill">
54
<color android:color="?attr/bootSplashBackground" />

android/src/main/res/drawable/compat_splash_screen.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
43
<item android:gravity="fill">
54
<color android:color="?attr/bootSplashBackground" />

android/src/main/res/drawable/compat_splash_screen_oneui_4.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
43
<item android:gravity="fill">
54
<color android:color="?attr/bootSplashBackground" />

android/src/main/res/values-night/styles.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<resources>
43
<style name="Theme.BootSplash.EdgeToEdge.DayNight" parent="Theme.BootSplash.EdgeToEdge.Common">
54
<item name="darkContentBarsStyle">false</item>

android/src/main/res/values-v23/styles.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<resources>
43
<style name="Theme.BootSplash.EdgeToEdge" parent="Theme.BootSplash.EdgeToEdge.DayNight">
54
<item name="android:windowTranslucentNavigation">true</item>

android/src/main/res/values-v27/styles.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<resources>
43
<style name="Theme.BootSplash.EdgeToEdge" parent="Theme.BootSplash.EdgeToEdge.DayNight">
54
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>

android/src/main/res/values-v29/styles.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<resources>
43
<style name="Theme.BootSplash.DayNight" parent="Theme.BootSplash.Common">
54
<item name="android:forceDarkAllowed">false</item>

android/src/main/res/values-v30/styles.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<resources>
43
<style name="Theme.BootSplash.EdgeToEdge" parent="Theme.BootSplash.EdgeToEdge.DayNight">
54
<item name="android:windowLayoutInDisplayCutoutMode">always</item>

android/src/main/res/values-v31/styles.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<resources>
43
<style name="Theme.BootSplash" parent="Theme.BootSplash.DayNight">
54
<item name="android:windowSplashScreenBackground">?bootSplashBackground</item>

android/src/main/res/values/attrs.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<resources>
43
<attr name="bootSplashBackground" format="color" />
54
<attr name="bootSplashLogo" format="reference" />

android/src/main/res/values/public.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<resources>
43
<public name="bootSplashBackground" type="attr" />
54
<public name="bootSplashLogo" type="attr" />

android/src/main/res/values/styles.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<resources>
43
<style name="BootSplashNoAnimation">
54
<item name="android:windowEnterAnimation">@null</item>

example/ios/Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ EXTERNAL SOURCES:
13101310
:path: "../node_modules/react-native/ReactCommon/yoga"
13111311

13121312
SPEC CHECKSUMS:
1313-
boost: 26fad476bfa736552bbfa698a06cc530475c1505
1313+
boost: 69c3d61aee7f5f7facabe24312f0302003b5af29
13141314
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
13151315
DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953
13161316
FBLazyVector: 2296bacb2fa157a43991048b0a9d71c1c8b65083

example/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"react": "18.2.0",
1818
"react-dom": "18.2.0",
1919
"react-native": "0.73.1",
20-
"react-native-bars": "2.4.2",
20+
"react-native-bars": "2.4.3",
2121
"react-native-bootsplash": "link:../",
2222
"react-native-web": "0.19.10"
2323
},
@@ -27,7 +27,7 @@
2727
"@babel/runtime": "^7.20.0",
2828
"@react-native/babel-preset": "^0.73.18",
2929
"@react-native/metro-config": "^0.73.2",
30-
"@types/react": "^18.2.46",
30+
"@types/react": "^18.2.47",
3131
"babel-loader": "^9.1.3",
3232
"babel-plugin-module-resolver": "^5.0.0",
3333
"html-webpack-plugin": "^5.6.0",

0 commit comments

Comments
 (0)