@bprotsyk/aso-core 1.2.103 → 1.2.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,8 @@ export declare enum AlternativeSourceType {
29
29
  FIREBASE_REALTIME_DATABASE = "Firebase Realtime DB",
30
30
  GET_RETROFIT = "From link via Retrofit",
31
31
  GET_VOLLEY = "From link via Volley",
32
- GET_HTTP_URL = "From link via HTTPUrlConnection"
32
+ GET_HTTP_URL = "From link via HTTPUrlConnection",
33
+ DIRECT = "Directly from link"
33
34
  }
34
35
  export declare enum AlternativeOnBackPressed {
35
36
  OLD = "Old",
@@ -39,6 +39,7 @@ var AlternativeSourceType;
39
39
  AlternativeSourceType["GET_RETROFIT"] = "From link via Retrofit";
40
40
  AlternativeSourceType["GET_VOLLEY"] = "From link via Volley";
41
41
  AlternativeSourceType["GET_HTTP_URL"] = "From link via HTTPUrlConnection";
42
+ AlternativeSourceType["DIRECT"] = "Directly from link";
42
43
  // WITHIN_WEBVIEW = "Within webview",
43
44
  })(AlternativeSourceType = exports.AlternativeSourceType || (exports.AlternativeSourceType = {}));
44
45
  // backpress
@@ -1,4 +1,4 @@
1
- import { AlternativeLogicType, AlternativeNavigation, AlternativeNetworkTool, AlternativeSourceType, AlternativeStorageType } from "index";
1
+ import { AlternativeLayoutType, AlternativeLogicType, AlternativeNavigation, AlternativeNetworkTool, AlternativeOnActivityResult, AlternativeOnBackPressed, AlternativeSourceType, AlternativeStorageType } from "index";
2
2
  import { FlashAppType } from "./flash-app-type";
3
3
  import mongoose, { Document, Model } from "mongoose";
4
4
  export declare enum FlashAppPlugStatus {
@@ -41,10 +41,13 @@ export interface IntegrationAlterations {
41
41
  navigation: AlternativeNavigation;
42
42
  storageType: AlternativeStorageType;
43
43
  sourceType: AlternativeSourceType;
44
+ onBackPressed: AlternativeOnBackPressed;
45
+ onActivityResult: AlternativeOnActivityResult;
46
+ layoutType: AlternativeLayoutType;
44
47
  }
45
48
  export interface IAppGenerationOptions {
46
49
  splashActivityClassName: string;
47
- mainActivityClassName: string;
50
+ webViewClassName: string;
48
51
  linkName: string;
49
52
  savedName: string;
50
53
  paranoidSeed: number;
@@ -82,10 +85,12 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
82
85
  name?: string | undefined;
83
86
  pushesEnabled?: boolean | undefined;
84
87
  sourceUrl?: string | undefined;
88
+ integrationVersion?: number | undefined;
89
+ integrationAlterations?: any;
85
90
  policyUrl?: string | undefined;
86
91
  generationOptions?: {
87
92
  splashActivityClassName: string;
88
- mainActivityClassName: string;
93
+ webViewClassName: string;
89
94
  linkName: string;
90
95
  savedName: string;
91
96
  paranoidSeed: number;
@@ -76,12 +76,14 @@ exports.FlashAppSchema = new mongoose_1.Schema({
76
76
  // unique: true,
77
77
  required: true
78
78
  },
79
+ integrationVersion: Number,
80
+ integrationAlterations: Object,
79
81
  generationOptions: {
80
82
  splashActivityClassName: {
81
83
  type: String,
82
84
  required: true
83
85
  },
84
- mainActivityClassName: {
86
+ webViewClassName: {
85
87
  type: String,
86
88
  required: true
87
89
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.103",
3
+ "version": "1.2.104",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -35,6 +35,7 @@ export enum AlternativeSourceType {
35
35
  GET_RETROFIT = "From link via Retrofit",
36
36
  GET_VOLLEY = "From link via Volley",
37
37
  GET_HTTP_URL = "From link via HTTPUrlConnection",
38
+ DIRECT = "Directly from link"
38
39
  // WITHIN_WEBVIEW = "Within webview",
39
40
  }
40
41
 
@@ -1,4 +1,4 @@
1
- import { AlternativeLogicType, AlternativeNavigation, AlternativeNetworkTool, AlternativeSourceType, AlternativeStorageType } from "index";
1
+ import { AlternativeLayoutType, AlternativeLogicType, AlternativeNavigation, AlternativeNetworkTool, AlternativeOnActivityResult, AlternativeOnBackPressed, AlternativeSourceType, AlternativeStorageType } from "index";
2
2
  import { FlashAppType } from "./flash-app-type";
3
3
  import mongoose, { Document, Model, model, PipelineStage, Schema, UpdateQuery, UpdateWithAggregationPipeline } from "mongoose";
4
4
  const util = require("util")
@@ -48,12 +48,15 @@ export interface IntegrationAlterations {
48
48
  logicType: AlternativeLogicType, // Logic
49
49
  navigation: AlternativeNavigation, // Navigation
50
50
  storageType: AlternativeStorageType, // Storage
51
- sourceType: AlternativeSourceType // Source
51
+ sourceType: AlternativeSourceType, // Source
52
+ onBackPressed: AlternativeOnBackPressed,
53
+ onActivityResult: AlternativeOnActivityResult,
54
+ layoutType: AlternativeLayoutType
52
55
  }
53
56
 
54
57
  export interface IAppGenerationOptions {
55
58
  splashActivityClassName: string
56
- mainActivityClassName: string
59
+ webViewClassName: string
57
60
  linkName: string
58
61
  savedName: string
59
62
  paranoidSeed: number
@@ -140,12 +143,15 @@ export const FlashAppSchema = new Schema({
140
143
  required: true
141
144
  },
142
145
 
146
+ integrationVersion: Number,
147
+ integrationAlterations: Object,
148
+
143
149
  generationOptions: {
144
150
  splashActivityClassName: {
145
151
  type: String,
146
152
  required: true
147
153
  },
148
- mainActivityClassName: {
154
+ webViewClassName: {
149
155
  type: String,
150
156
  required: true
151
157
  },