This repository was archived by the owner on Aug 7, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 40
webpack --bundle
switch causing : Failed to find module
#446
Labels
Comments
@RoyiNamir the plugin used is extending the Android activity in its own plugin folder. Instead of passing a path to For example:
import { setActivityCallbacks, AndroidActivityCallbacks } from "tns-core-modules/ui/frame";
@JavaProxy("org.nativescript.fingerprintplugin.AppCompatActivity")
class Activity extends android.support.v7.app.AppCompatActivity {
private _callbacks: AndroidActivityCallbacks;
protected onCreate(savedInstanceState: android.os.Bundle): void {
if (!this._callbacks) {
setActivityCallbacks(this);
}
this._callbacks.onCreate(this, savedInstanceState, super.onCreate);
}
protected onSaveInstanceState(outState: android.os.Bundle): void {
this._callbacks.onSaveInstanceState(this, outState, super.onSaveInstanceState);
}
protected onStart(): void {
this._callbacks.onStart(this, super.onStart);
}
protected onStop(): void {
this._callbacks.onStop(this, super.onStop);
}
protected onDestroy(): void {
this._callbacks.onDestroy(this, super.onDestroy);
}
public onBackPressed(): void {
this._callbacks.onBackPressed(this, super.onBackPressed);
}
public onRequestPermissionsResult(requestCode: number, permissions: Array<String>, grantResults: Array<number>): void {
this._callbacks.onRequestPermissionsResult(this, requestCode, permissions, grantResults, undefined);
}
protected onActivityResult(requestCode: number, resultCode: number, data: android.content.Intent): void {
this._callbacks.onActivityResult(this, requestCode, resultCode, data, super.onActivityResult);
}
}
entry: {
bundle: aot ? "./main.aot.ts" : "./main.ts",
vendor: "./vendor",
MainActivity: "./appcompat-activity"
},
|
@RoyiNamir if you are using Related documentation section here. |
Hi @RoyiNamir , if i extend com.google.firebase.messaging.FirebaseMessagingService how do I say it in the webpack.config.js? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using the latest 3.4.1 version with Android. It seems that adding
--bundle
is causing some issues.When
AndroidManifest.xml
has :android:name="com.tns.NativeScriptActivity"
, then everything is working fine.It runs OK even with
tns run android --bundle
Now I set
android:name="org.nativescript.fingerprintplugin.AppCompatActivity"
without--bundle
,and it runs OK.However , When I use
--bundle
and : [android:name="org.nativescript.fingerprintplugin.AppCompatActivity"
] -(https://github.com/EddyVerbruggen/nativescript-fingerprint-auth#mandatory-change) instead , then I get an error :
Full log
Of Course i've tried platform remove/add
And this is a sample empty project which shows the problem
``
The text was updated successfully, but these errors were encountered: