You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@roblav96 for the time being you can extract the classes.jar from the .aar and pass it as a parameter to the generator. Feel free to rename the .jar to whatever you feel like to avoid naming conflicts.
@roblav96 A little unrelated to the issue, but thought it's worth sharing - I tried inputting as many jars and aars into the generator and it kind of... worked. Due to limitations in TypeScript and JavaScript modules (namespaces) that contain .android. anywhere in the namespace will confuse the TypeScript compiler, and invalidate all previously declared classes in android. (Android SDK) resulting in TSC errors.
Google's play-services libraries reside in the com.google.android.gms note the .android. and that is a showstopper for now.
For these reasons we are rolling out dts generation support behind a tns build/run android --androidTypings flag , in 2.4.0, with support for only the android SDK and all android support libraries
@roblav96 declarations do come out fine-looking, executing tsc however will throw errors saying content not found on com.soundcloud.android when the typing should instead be referring to android.content.Context
Activity
petekanev commentedon Sep 30, 2016
@roblav96 for the time being you can extract the
classes.jarfrom the.aarand pass it as a parameter to the generator. Feel free to rename the.jarto whatever you feel like to avoid naming conflicts.petekanev commentedon Nov 7, 2016
@roblav96 A little unrelated to the issue, but thought it's worth sharing - I tried inputting as many jars and aars into the generator and it kind of... worked. Due to limitations in TypeScript and JavaScript modules (namespaces) that contain
.android.anywhere in the namespace will confuse the TypeScript compiler, and invalidate all previously declared classes inandroid.(Android SDK) resulting in TSC errors.Google's play-services libraries reside in the
com.google.android.gmsnote the.android.and that is a showstopper for now.For these reasons we are rolling out dts generation support behind a
tns build/run android --androidTypingsflag , in 2.4.0, with support for only the android SDK and all android support librariesroblav96 commentedon Nov 7, 2016
@Pip3r4o Interesting. That might explain why I could never get full https://github.com/OneSignal/OneSignal-Android-SDK declarations since it required
com.google.android.gms.What's strange is that when I throw
com.soundcloud.android.crophttps://github.com/jdamcd/android-crop through the generator the declarations come out fine.petekanev commentedon Nov 7, 2016
@roblav96 declarations do come out fine-looking, executing
tschowever will throw errors sayingcontent not found on com.soundcloud.androidwhen the typing should instead be referring toandroid.content.Contextroblav96 commentedon Nov 9, 2016
@Pip3r4o Yes that's certainly true.