Skip to content

Commit

Permalink
chore(format): Android project formatting (react-native-webview#433)
Browse files Browse the repository at this point in the history
Added an extremely simple `.editorconfig` I inferred from the main part of the project, then reformatted the codebase according to it. 🙂
  • Loading branch information
sjchmiela authored and Titozzz committed Mar 19, 2019
1 parent 0d3b1df commit e697dff
Show file tree
Hide file tree
Showing 13 changed files with 530 additions and 539 deletions.
6 changes: 6 additions & 0 deletions android/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[*]
charset=utf-8
end_of_line=lf
insert_final_newline=false
indent_style=space
indent_size=2
26 changes: 14 additions & 12 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.reactnativecommunity.webview">
<application>
<provider
android:name=".RNCWebViewFileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_provider_paths" />
</provider>
</application>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.reactnativecommunity.webview">

<application>
<provider
android:name=".RNCWebViewFileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_provider_paths" />
</provider>
</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/**
* Providing a custom {@code FileProvider} prevents manifest {@code <provider>} name collisions.
*
* <p>
* See https://developer.android.com/guide/topics/manifest/provider-element.html for details.
*/
public class RNCWebViewFileProvider extends FileProvider {
Expand Down
Loading

0 comments on commit e697dff

Please sign in to comment.