File tree Expand file tree Collapse file tree 5 files changed +11
-17
lines changed
packages/create-react-native-library/templates/example/example
src/main/java/com/example/{%- project.package %} Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -287,10 +287,6 @@ dependencies {
287
287
} else {
288
288
implementation jscFlavor
289
289
}
290
-
291
- < % if (project. native ) { -% >
292
- implementation project(' :<%- project.package %>' )
293
- < % } -% >
294
290
}
295
291
296
292
if (isNewArchitectureEnabled()) {
Original file line number Diff line number Diff line change 12
12
import com .example .<%- project .package %>.newarchitecture .MainApplicationReactNativeHost ;
13
13
import java .lang .reflect .InvocationTargetException ;
14
14
import java .util .List ;
15
- <% if (project .native ) { -%>
16
- import com .<%- project .package %>.<%- project .name %>Package ;
17
- <% } -%>
18
15
19
16
public class MainApplication extends Application implements ReactApplication {
20
17
@@ -31,7 +28,6 @@ protected List<ReactPackage> getPackages() {
31
28
List <ReactPackage > packages = new PackageList (this ).getPackages ();
32
29
// Packages that cannot be autolinked yet can be added manually here, for example:
33
30
// packages.add(new MyReactNativePackage());
34
- <% if (project .native ) { -%>packages .add (new <%- project .name %>Package ());<% } -%>
35
31
return packages ;
36
32
}
37
33
Original file line number Diff line number Diff line change @@ -7,8 +7,3 @@ if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true")
7
7
include(" :ReactAndroid" )
8
8
project(" :ReactAndroid" ). projectDir = file(' ../node_modules/react-native/ReactAndroid' )
9
9
}
10
-
11
- < % if (project. native ) { -% >
12
- include ' :<%- project.package %>'
13
- project(' :<%- project.package %>' ). projectDir = new File (rootProject. projectDir, ' ../../android' )
14
- < % } -% >
Original file line number Diff line number Diff line change @@ -18,10 +18,6 @@ target '<%- project.name %>Example' do
18
18
# An absolute path to your application root.
19
19
:app_path => "#{ Pod ::Config . instance . installation_root } /.."
20
20
)
21
- <% if (project.native) { -%>
22
-
23
- pod '<%- project.identifier %>', :path => '../..'
24
- <% } -%>
25
21
26
22
# Enables Flipper.
27
23
#
Original file line number Diff line number Diff line change
1
+ const path = require ( 'path' ) ;
2
+
3
+ module . exports = {
4
+ < % if ( project . native ) { - % >
5
+ dependencies : {
6
+ '<%- project.package %>' : {
7
+ root : path . join ( __dirname , '..' ) ,
8
+ } ,
9
+ } ,
10
+ < % } - % >
11
+ } ;
You can’t perform that action at this time.
0 commit comments