Skip to content

Commit c09f788

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

27 files changed

Lines changed: 397 additions & 668 deletions

.eslintignore

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

.eslintrc.js

Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 21 additions & 0 deletions
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

Lines changed: 3 additions & 18 deletions
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

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

android/build.gradle

Lines changed: 6 additions & 0 deletions
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())
Lines changed: 3 additions & 0 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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" />

0 commit comments

Comments
 (0)