@bprotsyk/aso-core 1.2.103 → 1.2.105
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,15 +29,17 @@ 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",
|
|
36
37
|
NEW = "New"
|
|
37
38
|
}
|
|
38
39
|
export declare enum AlternativeOnActivityResult {
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
OVERRIDE = "Override",
|
|
41
|
+
CALLBACK = "Callback",
|
|
42
|
+
CALLBACK_FRAGMENT = "Callback in fragment"
|
|
41
43
|
}
|
|
42
44
|
export interface IFlashIntegration {
|
|
43
45
|
id: number;
|
|
@@ -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
|
|
@@ -51,6 +52,7 @@ var AlternativeOnBackPressed;
|
|
|
51
52
|
})(AlternativeOnBackPressed = exports.AlternativeOnBackPressed || (exports.AlternativeOnBackPressed = {}));
|
|
52
53
|
var AlternativeOnActivityResult;
|
|
53
54
|
(function (AlternativeOnActivityResult) {
|
|
54
|
-
AlternativeOnActivityResult["
|
|
55
|
-
AlternativeOnActivityResult["
|
|
55
|
+
AlternativeOnActivityResult["OVERRIDE"] = "Override";
|
|
56
|
+
AlternativeOnActivityResult["CALLBACK"] = "Callback";
|
|
57
|
+
AlternativeOnActivityResult["CALLBACK_FRAGMENT"] = "Callback in fragment";
|
|
56
58
|
})(AlternativeOnActivityResult = exports.AlternativeOnActivityResult || (exports.AlternativeOnActivityResult = {}));
|
package/lib/flash/flash-app.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
93
|
+
webViewClassName: string;
|
|
89
94
|
linkName: string;
|
|
90
95
|
savedName: string;
|
|
91
96
|
paranoidSeed: number;
|
package/lib/flash/flash-app.js
CHANGED
|
@@ -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
|
-
|
|
86
|
+
webViewClassName: {
|
|
85
87
|
type: String,
|
|
86
88
|
required: true
|
|
87
89
|
},
|
package/package.json
CHANGED
|
@@ -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
|
|
|
@@ -48,8 +49,9 @@ export enum AlternativeOnBackPressed {
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
export enum AlternativeOnActivityResult {
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
OVERRIDE = "Override",
|
|
53
|
+
CALLBACK = "Callback",
|
|
54
|
+
CALLBACK_FRAGMENT = "Callback in fragment"
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
export interface IFlashIntegration {
|
package/src/flash/flash-app.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
154
|
+
webViewClassName: {
|
|
149
155
|
type: String,
|
|
150
156
|
required: true
|
|
151
157
|
},
|