@@ -250,6 +250,10 @@ function promptQuestions() {
250250 name : 'ml_kit_custom_model' ,
251251 description : 'With Ml Kit, do you want to use a custom TensorFlow Lite model? (y/n)' ,
252252 default : 'n'
253+ // }, {
254+ // name: 'ml_kit_natural_language_identification',
255+ // description: 'With Ml Kit, do you want to use recognize natural languages? (y/n)',
256+ // default: 'n'
253257 } ] , function ( mlkitErr , mlkitResult ) {
254258 if ( mlkitErr ) {
255259 return console . log ( mlkitErr ) ;
@@ -422,6 +426,8 @@ end`) + `
422426` + ( isSelected ( result . ml_kit ) && isSelected ( result . ml_kit_face_detection ) ? `` : `#` ) + `pod 'Firebase/MLVisionFaceModel'
423427` + ( isSelected ( result . ml_kit ) && isSelected ( result . ml_kit_image_labeling ) ? `` : `#` ) + `pod 'Firebase/MLVisionLabelModel'
424428` + ( isSelected ( result . ml_kit ) && isSelected ( result . ml_kit_custom_model ) ? `` : `#` ) + `pod 'Firebase/MLModelInterpreter'
429+ # Natural Language is commented for now, because of (likely) this issue: https://github.com/firebase/firebase-ios-sdk/issues/2324
430+ ` + ( isSelected ( result . ml_kit ) && isSelected ( result . ml_kit_natural_language_identification ) ? `#` : `#` ) + `pod 'Firebase/MLNLLanguageID'
425431
426432# Facebook Authentication
427433` + ( isSelected ( result . facebook_auth ) ? `` : `#` ) + `pod 'FBSDKCoreKit', '~> 4.38.0'
@@ -775,6 +781,8 @@ dependencies {
775781 ` + ( isSelected ( result . ml_kit ) ? `` : `//` ) + ` compile "com.google.firebase:firebase-ml-vision:18.0.2"
776782 ` + ( isSelected ( result . ml_kit_image_labeling ) ? `` : `//` ) + ` compile "com.google.firebase:firebase-ml-vision-image-label-model:17.0.2"
777783 ` + ( isSelected ( result . ml_kit_custom_model ) ? `` : `//` ) + ` compile "com.google.firebase:firebase-ml-model-interpreter:16.2.4"
784+ ` + ( isSelected ( result . ml_kit_natural_language_identification ) ? `//` : `//` ) + ` compile "com.google.firebase:firebase-ml-natural-language:18.1.1"
785+ ` + ( isSelected ( result . ml_kit_natural_language_identification ) ? `//` : `//` ) + ` compile "com.google.firebase:firebase-ml-natural-language-language-id-model:18.0.2"
778786
779787 // Facebook Authentication
780788 ` + ( isSelected ( result . facebook_auth ) ? `` : `//` ) + ` compile ("com.facebook.android:facebook-android-sdk:4.35.0"){ exclude group: 'com.google.zxing' }
0 commit comments