react-native/local-cli/templates/HelloWorld
gengjiawen 9b9b6c845e Inline and fix proguard rules
Summary:
The original proguard rules are put in the template, which is not very convenient and easy to get wrong. Because new rules get put, people also has two copy paste the rule. And there are also existing project import react native as a dependency. So the best way to  keep a android library project proguard rule is to manage the rule itself, using `consumerProguardFiles` like [dagger](46baef6d96/butterknife/build.gradle (L9)) and other android library project.

<!--
  Required: Write your motivation here.
  If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged.
-->

Use RNTester to build the release flavor (now it has bugs https://github.com/facebook/react-native/issues/18460, I keep my change in local for now), after build success, run to check if crash.

In the process, I also fix https://github.com/facebook/react-native/issues/12994 and https://github.com/facebook/react-native/issues/6624 by adding the following to proguard rules
```proguard
-keep,includedescriptorclasses class com.facebook.react.bridge.** { *; }
```

<!--
  Does this PR require a documentation change?
  Create a PR at https://github.com/facebook/react-native-website and add a link to it here.
-->

[ANDROID] [ENHANCEMENT and BUGFIX] [Proguard rules] - inline and fix proguard rules .

<!--
  **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

    CATEGORY
  [----------]      TYPE
  [ CLI      ] [-------------]    LOCATION
  [ DOCS     ] [ BREAKING    ] [-------------]
  [ GENERAL  ] [ BUGFIX      ] [ {Component} ]
  [ INTERNAL ] [ ENHANCEMENT ] [ {Filename}  ]
  [ IOS      ] [ FEATURE     ] [ {Directory} ]   |-----------|
  [ ANDROID  ] [ MINOR       ] [ {Framework} ] - | {Message} |
  [----------] [-------------] [-------------]   |-----------|

 EXAMPLES:

 [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
 [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
 [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
 [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
 [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->
Closes https://github.com/facebook/react-native/pull/18461

Differential Revision: D7527533

Pulled By: hramos

fbshipit-source-id: 447dbc16983bcfb597187b40c1be3987a8c5a832
2018-04-05 17:34:53 -07:00
..
__tests__ Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
android Inline and fix proguard rules 2018-04-05 17:34:53 -07:00
ios Fix tvOS react-native init release build (#18288) 2018-03-12 11:50:44 -07:00
App.js Clarify use of Flow props types in cli example 2017-12-20 12:32:03 -08:00
_babelrc Fix indent for .babelrc in HelloWorld template 2017-03-10 13:45:58 -08:00
_buckconfig Fix handling of dotfiles in 'react-native init' and 'react-native upgrade' 2016-11-21 12:58:29 -08:00
_flowconfig Upgrade to Flow v0.69.0 2018-03-29 06:54:06 -07:00
_gitattributes Allow git to merge pbxproj files 2016-11-22 17:58:29 -08:00
_gitignore Exclude jsbundle files from VCS 2018-02-16 14:09:28 -08:00
_watchmanconfig Fix handling of dotfiles in 'react-native init' and 'react-native upgrade' 2016-11-21 12:58:29 -08:00
app.json Eject CLI command to re-create native folders 2017-02-03 12:58:46 -08:00
index.js Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00