Skip to content

Commit

Permalink
Fix AndroidManifest.xml namespace deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Jan 7, 2024
1 parent ff3865f commit e6227be
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 36 deletions.
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Windows files should use crlf line endings
# https://help.github.com/articles/dealing-with-line-endings/
*.bat text eol=crlf
*.pbxproj -text
26 changes: 2 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,37 +44,15 @@ node_modules/
npm-debug.log
yarn-error.log

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output

# Bundle artifact
*.jsbundle

# Ruby / CocoaPods
example/ios/Pods/
example/vendor/bundle/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# testing
/coverage

# Bob
dist/

# OCaml / Reason
**/.merlin
**/lib/bs
**/lib/ocaml
*.bs.js
.bsb.lock
# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
7 changes: 6 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ android {

if (project.android.hasProperty("namespace")) {
namespace "com.zoontek.rnbars"

sourceSets {
main {
manifest.srcFile "src/main/AndroidManifestNew.xml"
}
}
}
defaultConfig {
buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString())
Expand Down Expand Up @@ -59,5 +65,4 @@ repositories {
dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "androidx.core:core:${safeExtGet("androidXCoreVersion", "1.9.0")}"
}
3 changes: 3 additions & 0 deletions android/src/main/AndroidManifestNew.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>
1 change: 0 additions & 1 deletion android/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>
<style name="Theme.EdgeToEdge.DayNight" parent="Theme.EdgeToEdge.Common">
<item name="darkContentBarsStyle">false</item>
Expand Down
1 change: 0 additions & 1 deletion android/src/main/res/values-v23/styles.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>
<style name="Theme.EdgeToEdge" parent="Theme.EdgeToEdge.DayNight">
<item name="android:windowTranslucentNavigation">true</item>
Expand Down
1 change: 0 additions & 1 deletion android/src/main/res/values-v27/styles.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>
<style name="Theme.EdgeToEdge" parent="Theme.EdgeToEdge.DayNight">
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
Expand Down
1 change: 0 additions & 1 deletion android/src/main/res/values-v29/styles.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>
<style name="Theme.EdgeToEdge" parent="Theme.EdgeToEdge.DayNight">
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
Expand Down
1 change: 0 additions & 1 deletion android/src/main/res/values-v30/styles.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>
<style name="Theme.EdgeToEdge" parent="Theme.EdgeToEdge.DayNight">
<item name="android:windowLayoutInDisplayCutoutMode">always</item>
Expand Down
1 change: 0 additions & 1 deletion android/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>
<attr name="darkContentBarsStyle" format="boolean" />
</resources>
1 change: 0 additions & 1 deletion android/src/main/res/values/public.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>
<public name="Theme.EdgeToEdge" type="style" />
<public name="darkContentBarsStyle" type="attr" />
Expand Down
1 change: 0 additions & 1 deletion android/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>
<style name="Theme.EdgeToEdge.Common" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:fitsSystemWindows">false</item>
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
]
},
"prettier": {
"trailingComma": "all",
"plugins": [
"prettier-plugin-organize-imports"
]
Expand Down

0 comments on commit e6227be

Please sign in to comment.