f2prateek / dart

Extras binding and intent builders for Android apps.
Apache License 2.0
1.19k stars 88 forks source link

add v4 fragment support #111

Closed yaming116 closed 8 years ago

dlemures commented 8 years ago

It failed, could you fix it?

yaming116 commented 8 years ago

@dlemures dependency to be optional build failed,i need remove it?

dlemures commented 8 years ago

It seems that none of the previous solutions work:

You will need to create a new sibling module (dart-support?) so if the app uses support fragment, users will need to include dart-support instead of dart: compile 'com.f2prateek.dart:dart-support:XXX'

One possible approach:

What do you think? @yaming116 @stephanenicolas

dlemures commented 8 years ago

I think it is a bit overkilling to make so many changes for a shortcut. From the support fragment we can always use:

Dart.inject(this, getArguments)