Closed au-top closed 2 years ago
As far as I understood the need, you've managed to separate some code into shared library project and you are using this library in other apps? If so here are the similar issues #182 & #162 resolved.
To be short, you need to specify auto generated adapter from shared library in the mapper initialization code from the target app
// Import auto generated adapter from shared package
import 'package:starlink/starlink.dart' show starlinkGeneratedAdapter;
import 'package:unit_testing/unit_testing.dart' show unitTestingGeneratedAdapter;
// Main App bootstrap, you need to specify those adapters when initializing mapper
void main() {
initializeJsonMapper(
adapters: [starlinkGeneratedAdapter, unitTestingGeneratedAdapter]);
}
Hello, I have the same problem
I have two projects. In one of them, he will automatically set
But I moved some of the same things to another project
Why Bmain.mapper.g.dart.txt Amain.mapper.g.dart.txt ?