-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
61 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Fri Feb 12 14:20:40 WET 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
import nodeResolve from '@rollup/plugin-node-resolve'; | ||
|
||
export default { | ||
input: 'dist/esm/index.js', | ||
output: { | ||
file: 'dist/plugin.js', | ||
format: 'iife', | ||
name: 'capacitorPlugin', // TODO: change this | ||
globals: { | ||
'@capacitor/core': 'capacitorExports', | ||
output: [ | ||
{ | ||
file: 'dist/plugin.js', | ||
format: 'iife', | ||
name: 'capacitorKeepAwake', | ||
globals: { | ||
'@capacitor/core': 'capacitorExports', | ||
}, | ||
sourcemap: true, | ||
inlineDynamicImports: true, | ||
}, | ||
{ | ||
file: 'dist/plugin.cjs.js', | ||
format: 'cjs', | ||
sourcemap: true, | ||
inlineDynamicImports: true, | ||
}, | ||
sourcemap: true, | ||
}, | ||
plugins: [ | ||
nodeResolve({ | ||
// allowlist of dependencies to bundle in | ||
// @see https://github.com/rollup/plugins/tree/master/packages/node-resolve#resolveonly | ||
resolveOnly: ['lodash'], | ||
}), | ||
], | ||
external: ['@capacitor/core'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
import { registerPlugin } from '@capacitor/core'; | ||
import type { KeepAwakePlugin } from './definitions'; | ||
|
||
const KeepAwake = registerPlugin<KeepAwakePlugin>('KeepAwake', { | ||
web: () => import('./web').then(m => new m.KeepAwakeWeb()), | ||
}); | ||
|
||
export * from './definitions'; | ||
export * from './web'; | ||
export { KeepAwake }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters