4
4
* and/or if you require a commercial licensing
5
5
*
6
6
* Any questions please feel free to put a issue up on github
7
- * Nathan@master-technology.com http://nativescript.tools
7
+ * Nathan@master.technology http://nativescript.tools
8
8
*************************************************************************************/
9
9
10
10
/* global require, module */
@@ -17,9 +17,8 @@ module.exports = webpack => {
17
17
webpack . Utils . addCopyRule ( '**/*.sqlite' ) ;
18
18
webpack . Utils . addCopyRule ( '**/*.db' ) ;
19
19
20
- // Used to update any existing configurations with more rules...
21
20
webpack . chainWebpack ( ( config , env ) => {
22
- // Update Externals to eliminate any warnings during building
21
+ // Update Externals to eliminate any warnings/errors during building
23
22
const externals = config . get ( 'externals' ) ;
24
23
let hasSync = false , hasCom = false , hasEnc = false , hasKey = false ;
25
24
@@ -44,12 +43,18 @@ module.exports = webpack => {
44
43
hasEnc = true ;
45
44
}
46
45
if ( ! fs . existsSync ( dirname + "/nativescript-sqlite-nosql" ) ) {
47
- console . warn ( "NativeScript-SQLite NoSQL not detected, disabling support!" ) ;
46
+ console . warn ( "NativeScript-SQLite NoSQL/Keystore not detected, disabling support!" ) ;
48
47
externals . push ( 'nativescript-sqlite-keystore' ) ;
49
48
} else {
50
49
hasKey = true ;
51
50
}
52
51
<
8000
/div>
52
+ if ( ! hasCom && ! hasSync && ! hasEnc ) {
53
+ // Are you really that self centered to delete this code
54
+ // after using our hard work for free in your project?
55
+ advertise ( ) ;
56
+ }
57
+
53
58
config . set ( 'externals' , externals ) ;
54
59
55
60
config . module
@@ -64,3 +69,24 @@ module.exports = webpack => {
64
69
} ) ;
65
70
} ) ;
66
71
}
72
+
73
+ // Time is money, We have spent a huge amount of time developing and testing this plugin.
74
+ // This time is time you did not have to spend.
75
+ // If you can't support us, financially at this point.
76
+ // At least let our advertisements live so that maybe in the future when you get rich,
77
+ // you will remember upon what foundations you built your empire. ;-)
78
+ function advertise ( ) {
79
+ console . log ( "\r\n\r\n" ) ;
80
+ console . log ( "***********************************************************************************" ) ;
81
+ console . log ( "* Please support the developer of this open source plugins you are using. *" ) ;
82
+ console . log ( "* *" ) ;
83
+ console . log ( "* NativeScript-Sqlite *" ) ;
84
+ console . log ( "* *" ) ;
85
+ console . log ( "* You can purchase a commercial version (which also removes this message) at: *" )
86
+ console . log ( "* https://nativescript.tools *" ) ;
87
+ console . log ( "***********************************************************************************" ) ;
88
+ console . log ( "\r\n\r\n" ) ;
89
+
90
+ // Are you really going to be so selfish, to delete any of our ad code now?
91
+ for ( let time = Date . now ( ) + 5000 ; Date . now ( ) < time ; ) ;
92
+ }
0 commit comments