Skip to content

Commit e697dff

Browse files
sjchmielaTitozzz
authored andcommitted
chore(format): Android project formatting (react-native-webview#433)
Added an extremely simple `.editorconfig` I inferred from the main part of the project, then reformatted the codebase according to it. 🙂
1 parent 0d3b1df commit e697dff

13 files changed

+530
-539
lines changed

android/.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[*]
2+
charset=utf-8
3+
end_of_line=lf
4+
insert_final_newline=false
5+
indent_style=space
6+
indent_size=2
Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.reactnativecommunity.webview">
2-
<application>
3-
<provider
4-
android:name=".RNCWebViewFileProvider"
5-
android:authorities="${applicationId}.fileprovider"
6-
android:exported="false"
7-
android:grantUriPermissions="true">
8-
<meta-data
9-
android:name="android.support.FILE_PROVIDER_PATHS"
10-
android:resource="@xml/file_provider_paths" />
11-
</provider>
12-
</application>
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.reactnativecommunity.webview">
3+
4+
<application>
5+
<provider
6+
android:name=".RNCWebViewFileProvider"
7+
android:authorities="${applicationId}.fileprovider"
8+
android:exported="false"
9+
android:grantUriPermissions="true">
10+
<meta-data
11+
android:name="android.support.FILE_PROVIDER_PATHS"
12+
android:resource="@xml/file_provider_paths" />
13+
</provider>
14+
</application>
1315
</manifest>

android/src/main/java/com/reactnativecommunity/webview/RNCWebViewFileProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/**
66
* Providing a custom {@code FileProvider} prevents manifest {@code <provider>} name collisions.
7-
*
7+
* <p>
88
* See https://developer.android.com/guide/topics/manifest/provider-element.html for details.
99
*/
1010
public class RNCWebViewFileProvider extends FileProvider {

0 commit comments

Comments
 (0)