Beispiel #1
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // create a new window instance based on the screen size
            window = new UIWindow(UIScreen.MainScreen.Bounds);
            runner = new TouchRunner(window);

            // register every tests included in the main application/assembly
            runner.Add(System.Reflection.Assembly.GetExecutingAssembly());

            window.RootViewController = new UINavigationController(runner.GetViewController());

            // make the window visible
            window.MakeKeyAndVisible();

            // setup for all tests
            CountdownEvent latch = new CountdownEvent(1);

            ACPCore.SetWrapperType(ACPMobileWrapperType.Xamarin);
            ACPCore.LogLevel = ACPMobileLogLevel.Verbose;
            ACPIdentity.RegisterExtension();
            ACPSignal.RegisterExtension();
            ACPLifecycle.RegisterExtension();
            ACPPlaces.RegisterExtension();

            // start core
            ACPCore.Start(() =>
            {
                ACPCore.ConfigureWithAppID("94f571f308d5/00fc543a60e1/launch-c861fab912f7-development");
                latch.Signal();
            });
            latch.Wait();
            latch.Dispose();

            return(true);
        }
Beispiel #2
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            // set the wrapper type
            ACPCore.SetWrapperType(ACPMobileWrapperType.Xamarin);

            // set launch config
            ACPCore.ConfigureWithAppID("launch-ENf8ed5382efc84d5b81a9be8dcc231be1-development");

            // set log level
            ACPCore.LogLevel = ACPMobileLogLevel.Verbose;

            // register SDK extensions
            ACPIdentity.RegisterExtension();
            ACPLifecycle.RegisterExtension();
            ACPSignal.RegisterExtension();

            // start core
            ACPCore.Start(null);

            // register dependency service to link interface from ACPCoreTestApp base project
            DependencyService.Register <IACPCoreExtensionService, ACPCoreExtensionService>();
            return(base.FinishedLaunching(app, options));
        }
Beispiel #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());

            // set the wrapper type
            ACPCore.SetWrapperType(WrapperType.Xamarin);

            // set log level
            ACPCore.LogLevel = LoggingMode.Verbose;

            // register SDK extensions
            ACPCore.Application = this.Application;
            ACPIdentity.RegisterExtension();
            ACPLifecycle.RegisterExtension();
            ACPSignal.RegisterExtension();

            // start core
            ACPCore.Start(new CoreStartCompletionCallback());

            // register dependency service to link interface from ACPCoreTestApp base project
            DependencyService.Register <IACPCoreExtensionService, ACPCoreExtensionService>();
        }
    // Core Methods
    void coreExtensionVersion()
    {
        string coreVersion      = "coreVersion - " + ACPCore.ExtensionVersion() + " ";
        string identityVersion  = "identityVersion - " + ACPIdentity.ExtensionVersion() + " ";
        string lifecycleVersion = "lifecycleVersion - " + ACPLifecycle.ExtensionVersion() + " ";
        string signalVersion    = "signalVersion - " + ACPSignal.ExtensionVersion() + " ";

        _result = coreVersion + identityVersion + lifecycleVersion + signalVersion;
        print(_result);
        txtResult.text = _result;
    }
Beispiel #5
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            //Registering Adobe Extensions
            ACPCore.SetWrapperType(ACPMobileWrapperType.Xamarin);
            ACPSignal.RegisterExtension();
            ACPPlaces.RegisterExtension();

            ACPCore.ConfigureWithAppID("{your-launch-id}");
            ACPCore.Start(null);

            DependencyService.Register <IACPPlacesExtensionService, ACPPlacesExtensionService>();

            return(base.FinishedLaunching(app, options));
        }
    // Start is called before the first frame update
    void Start()
    {
        if (Application.platform == RuntimePlatform.Android)
        {
            ACPCore.SetApplication();
        }

        ACPCore.SetLogLevel(ACPCore.ACPMobileLogLevel.VERBOSE);
        ACPCore.SetWrapperType();
        ACPIdentity.RegisterExtension();
        ACPLifecycle.RegisterExtension();
        ACPSignal.RegisterExtension();
        ACPCore.Start(HandleStartAdobeCallback);

        // Core
        btnCoreExtensionVersion.onClick.AddListener(coreExtensionVersion);
        btnSetApplication.onClick.AddListener(setApplication);
        btnGetApplication.onClick.AddListener(getApplication);
        btnSetLogLevel.onClick.AddListener(setLogLevel);
        btnGetLogLevel.onClick.AddListener(getLogLevel);
        btnDispatchEvent.onClick.AddListener(dispatchEvent);
        btnDispatchEventWithResponseCallback.onClick.AddListener(dispatchEventWithResponseCallback);
        btnDispatchResponseEvent.onClick.AddListener(dispatchResponseEvent);
        btnSetPrivacyStatus.onClick.AddListener(setPrivacyStatus);
        btnSetAdvertisingIdentifier.onClick.AddListener(setAdvertisingIdentifier);
        btnGetSdkIdentities.onClick.AddListener(getSdkIdentities);
        btnGetPrivacyStatus.onClick.AddListener(getPrivacyStatus);
        btnDownloadRules.onClick.AddListener(downloadRules);
        btnUpdateConfiguration.onClick.AddListener(updateConfiguration);
        btnTrackState.onClick.AddListener(trackState);
        btnTrackAction.onClick.AddListener(trackAction);

        // Identity
        btnIdentityExtensionVersion.onClick.AddListener(identityExtensionVersion);
        btnAppendToUrl.onClick.AddListener(appendToUrl);
        btnGetIdentifiers.onClick.AddListener(getIdentifiers);
        btnGetExperienceCloudId.onClick.AddListener(getExperienceCloudId);
        btnSyncIdentifier.onClick.AddListener(syncIdentifier);
        btnSyncIdentifiers.onClick.AddListener(syncIdentifiers);
        btnSyncIdentifiersWithAuthState.onClick.AddListener(syncIdentifiersWithAuthState);
        btnUrlVariables.onClick.AddListener(urlVariables);
    }
Beispiel #7
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            // Setting up AEP SdK's.
            ACPCore.SetWrapperType(ACPMobileWrapperType.Xamarin);
            // set launch config
            ACPCore.ConfigureWithAppID("launch-ENf8ed5382efc84d5b81a9be8dcc231be1-development");

            // set log level
            ACPCore.LogLevel = ACPMobileLogLevel.Verbose;

            // register SDK extensions
            ACPIdentity.RegisterExtension();
            ACPLifecycle.RegisterExtension();
            ACPSignal.RegisterExtension();

            // start core
            ACPCore.Start(null);
            return(true);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());

            //Register Adobe AEP Sdk's
            ACPCore.SetWrapperType(WrapperType.Xamarin);

            ACPCore.Application = this.Application;
            ACPPlaces.RegisterExtension();
            ACPSignal.RegisterExtension();

            ACPCore.Start(null);
            ACPCore.ConfigureWithAppID("{your-launch-id}");

            DependencyService.Register <IACPPlacesExtensionService, ACPPlacesExtensionService>();
        }
        protected override void OnCreate(Bundle bundle)
        {
            // tests can be inside the main assembly
            AddTest(Assembly.GetExecutingAssembly());
            // or in any reference assemblies
            // AddTest (typeof (Your.Library.TestClass).Assembly);

            // Once you called base.OnCreate(), you cannot add more assemblies.
            base.OnCreate(bundle);

            // setup for all tests
            ACPCore.Application = this.Application;
            ACPCore.SetWrapperType(WrapperType.Xamarin);
            ACPCore.LogLevel = LoggingMode.Verbose;
            ACPIdentity.RegisterExtension();
            ACPSignal.RegisterExtension();
            ACPLifecycle.RegisterExtension();

            // start core
            ACPCore.Start(new CoreStartCompletionCallback());
            latch.Wait();
            latch.Dispose();
        }
Beispiel #10
0
 // ACPSignal methods
 public TaskCompletionSource <string> GetExtensionVersionSignal()
 {
     stringOutput = new TaskCompletionSource <string>();
     stringOutput.SetResult(ACPSignal.ExtensionVersion());
     return(stringOutput);
 }
Beispiel #11
0
 public void GetACPSignalExtensionVersion_Returns_CorrectVersion()
 {
     // verify
     Assert.That(ACPSignal.ExtensionVersion(), Is.EqualTo("2.2.0"));
 }
Beispiel #12
0
        //ACPSignal
        partial void GetExtensionVersionSignal(UIButton sender)
        {
            string extensionVersion = ACPSignal.ExtensionVersion();

            Console.WriteLine("GetExtensionVersionSignal: " + extensionVersion);
        }
 public void GetACPSignalExtensionVersion_Returns_CorrectVersion()
 {
     // verify
     // todo: this should be 1.0.3 but the current signal aar returns the wrong version
     Assert.That(ACPSignal.ExtensionVersion(), Is.EqualTo("1.0.2"));
 }