This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Support sharing resources between Android modules #34
Comments
in build.gradle dependencies {
...
implementation project(':module4')
// generated
compile project(':androidAppModule1')
} And in activity @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Set the layout for this activity. You can find it
// in res/layout/hello_activity.xml
setContentView(R.layout.activity_main0);
// generated source
module1packageJava0.Foo0 zzz = new module1packageJava0.Foo0();
zzz.foo0();
// generated resources
setContentView(com.androidAppModule1.R.layout.activity_main2);
} |
Is this what is currently generated? |
These are my tests, to support the feature fully we need to upgrade the dependencies system, for Android modules to be dependent on other Android modules |
Oh, I see. You want us to generate this kind of code? But why then it calls |
This is the minimal code I generated and updated by hand to understand the scope of generated code, thus setContentView twice is the minimal code to actually use resources from another Android module and activate relevant android gradle plugin mechanisms |
Done in "dev" branch |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Make Android modules be dependent on other Andorid/Java modules:
The text was updated successfully, but these errors were encountered: