public override void AppendBuildRequirements(AN_AndroidBuildRequirements buildRequirements)
        {
            buildRequirements.AddPermission(AMM_ManifestPermission.READ_EXTERNAL_STORAGE);
            buildRequirements.AddPermission(AMM_ManifestPermission.WRITE_EXTERNAL_STORAGE);

            buildRequirements.AddInternalLib("an_gallery.aar");

            /*
             *
             * buildRequirements.AddBinaryDependency(AN_BinaryDependency.SupportV4CoreUtils);
             * var provider = new AMM_PropertyTemplate("provider");
             * provider.SetValue("android:name", "android.support.v4.content.FileProvider");
             * provider.SetValue("android:authorities", "com.stansassets.android.fileprovider");
             * provider.SetValue("android:exported", "false");
             * provider.SetValue("android:grantUriPermissions", "true");
             *
             * var meta = new AMM_PropertyTemplate("meta-data");
             * meta.SetValue("android:name", "android.support.FILE_PROVIDER_PATHS");
             * meta.SetValue("android:resource", "@xml/file_paths");
             *
             * provider.AddProperty(meta);
             *
             *
             * buildRequirements.AddApplicationProperty(provider);*/
        }
        public override void AppendBuildRequirements(AN_AndroidBuildRequirements buildRequirements)
        {
            if (AN_Settings.Instance.PreferredImagesStorage != AN_Settings.StorageType.ForceInternal)
            {
                buildRequirements.AddPermission(AMM_ManifestPermission.READ_EXTERNAL_STORAGE);
                buildRequirements.AddPermission(AMM_ManifestPermission.WRITE_EXTERNAL_STORAGE);
            }

            buildRequirements.AddInternalLib("an_gallery.aar");
        }
        public override void AppendBuildRequirements(AN_AndroidBuildRequirements buildRequirements)
        {
            if (AN_Settings.Instance.PreferredImagesStorage != AN_Settings.StorageType.ForceInternal)
            {
                buildRequirements.AddPermission(AMM_ManifestPermission.WRITE_EXTERNAL_STORAGE);
                buildRequirements.AddPermission(AMM_ManifestPermission.READ_EXTERNAL_STORAGE);
            }

            buildRequirements.AddBinaryDependency(AN_BinaryDependency.SupportV4CoreUtils);
        }
        public override void AppendBuildRequirements(AN_AndroidBuildRequirements buildRequirements)
        {
            buildRequirements.AddBinaryDependency(AN_BinaryDependency.BillingClient);
            buildRequirements.AddPermission(AMM_ManifestPermission.BILLING);

            if (AN_Settings.Instance.Licensing)
            {
                buildRequirements.AddPermission(AMM_ManifestPermission.CHECK_LICENSE);
            }


            buildRequirements.AddInternalLib("an_vending.aar");
        }
Exemple #5
0
        public override void AppendBuildRequirements(AN_AndroidBuildRequirements buildRequirements)
        {
            var AlarmNotificationService = new AMM_PropertyTemplate("service");

            AlarmNotificationService.SetValue("android:name", "com.stansassets.android.app.notifications.AN_AlarmNotificationService");
            AlarmNotificationService.SetValue("android:process", ":externalProcess");
            buildRequirements.AddApplicationProperty(AlarmNotificationService);


            var LocalNotificationReceiver = new AMM_PropertyTemplate("receiver");

            LocalNotificationReceiver.SetValue("android:name", "com.stansassets.android.app.notifications.AN_AlarmNotificationTriggerReceiver");
            LocalNotificationReceiver.SetValue("android:enabled", "true");
            LocalNotificationReceiver.SetValue("android:exported", "true");

            var ReceiverIntentFilter = LocalNotificationReceiver.GetOrCreateIntentFilterWithName("com.androidnative.local.intent.OPEN");

            ReceiverIntentFilter.GetOrCreatePropertyWithName("action", "android.intent.action.BOOT_COMPLETED");
            ReceiverIntentFilter.GetOrCreatePropertyWithName("category", "android.intent.category.DEFAULT");
            buildRequirements.AddApplicationProperty(LocalNotificationReceiver);


            var notificationLaunchActivity = new AMM_ActivityTemplate(false, "com.stansassets.android.app.notifications.AN_NotificationLaunchActivity");

            notificationLaunchActivity.SetValue("android:launchMode", "singleTask");
            //  notificationLaunchActivity.SetValue("android:label", "@string/app_name");
            notificationLaunchActivity.SetValue("android:configChanges", "fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen");
            notificationLaunchActivity.SetValue("android:theme", "@android:style/Theme.Translucent.NoTitleBar");
            buildRequirements.AddActivity(notificationLaunchActivity);



            buildRequirements.AddPermission(AMM_ManifestPermission.WAKE_LOCK);
            buildRequirements.AddBinaryDependency(AN_BinaryDependency.AndroidX);
        }
Exemple #6
0
        public override void AppendBuildRequirements(AN_AndroidBuildRequirements buildRequirements)
        {
            var proxyActivity = new AMM_ActivityTemplate(false, AN_BILLING_PROXY_ACTIVITY_CLASS);

            proxyActivity.SetValue("android:launchMode", "singleTask");
            proxyActivity.SetValue("android:label", "@string/app_name");
            proxyActivity.SetValue("android:configChanges", "fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen");
            proxyActivity.SetValue("android:theme", "@android:style/Theme.Translucent.NoTitleBar");

            buildRequirements.AddActivity(proxyActivity);
            buildRequirements.AddPermission(AMM_ManifestPermission.BILLING);

            if (AN_Settings.Instance.Licensing)
            {
                buildRequirements.AddPermission(AMM_ManifestPermission.CHECK_LICENSE);
            }


            buildRequirements.AddInternalLib("an_vending.aar");
        }
 public override void AppendBuildRequirements(AN_AndroidBuildRequirements buildRequirements)
 {
     buildRequirements.AddPermission(AMM_ManifestPermission.WRITE_EXTERNAL_STORAGE);
     buildRequirements.AddPermission(AMM_ManifestPermission.READ_EXTERNAL_STORAGE);
     buildRequirements.AddBinaryDependency(AN_BinaryDependency.SupportV4CoreUtils);
 }
 public override void AppendBuildRequirements(AN_AndroidBuildRequirements buildRequirements)
 {
     buildRequirements.AddPermission(AMM_ManifestPermission.READ_CONTACTS);
 }