react-native-android-overlay 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +267 -0
- package/android/build.gradle +54 -0
- package/android/settings.gradle +9 -0
- package/android/src/main/AndroidManifest.xml +19 -0
- package/android/src/main/java/tech/zmario/androidoverlay/OverlayPackage.java +52 -0
- package/android/src/main/java/tech/zmario/androidoverlay/module/OverlayModule.java +133 -0
- package/android/src/main/java/tech/zmario/androidoverlay/service/OverlayInstance.java +41 -0
- package/android/src/main/java/tech/zmario/androidoverlay/service/OverlayLayoutParamsBuilder.java +57 -0
- package/android/src/main/java/tech/zmario/androidoverlay/service/OverlayService.java +414 -0
- package/android/src/main/java/tech/zmario/androidoverlay/view/OverlayContainerView.java +137 -0
- package/lib/module/NativeAndroidOverlay.js +5 -0
- package/lib/module/NativeAndroidOverlay.js.map +1 -0
- package/lib/module/index.js +30 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NativeAndroidOverlay.d.ts +29 -0
- package/lib/typescript/src/NativeAndroidOverlay.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +27 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +179 -0
package/package.json
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-android-overlay",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A React Native module for displaying Android system overlays using a foreground service",
|
|
5
|
+
"main": "./lib/module/index.js",
|
|
6
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"react-native-android-overlay-source": "./src/index.tsx",
|
|
10
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
11
|
+
"default": "./lib/module/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"lib",
|
|
17
|
+
"android",
|
|
18
|
+
"*.podspec",
|
|
19
|
+
"react-native.config.js",
|
|
20
|
+
"README.md",
|
|
21
|
+
"LICENSE",
|
|
22
|
+
"!android/build",
|
|
23
|
+
"!android/gradle",
|
|
24
|
+
"!android/gradlew",
|
|
25
|
+
"!android/gradlew.bat",
|
|
26
|
+
"!android/local.properties",
|
|
27
|
+
"!**/__tests__",
|
|
28
|
+
"!**/__fixtures__",
|
|
29
|
+
"!**/__mocks__",
|
|
30
|
+
"!**/.*"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"example": "yarn workspace react-native-android-overlay-example",
|
|
34
|
+
"clean": "del-cli android/build example/android/build example/android/app/build lib",
|
|
35
|
+
"prepare": "bob build",
|
|
36
|
+
"typecheck": "tsc",
|
|
37
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
38
|
+
"test": "jest",
|
|
39
|
+
"release": "release-it --only-version",
|
|
40
|
+
"web": "vite",
|
|
41
|
+
"build:web": "vite build"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"react-native",
|
|
45
|
+
"android"
|
|
46
|
+
],
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/marioded/react-native-android-overlay.git"
|
|
50
|
+
},
|
|
51
|
+
"author": "Mario <mariodedo08@gmail.com> (https://github.com/marioded)",
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/marioded/react-native-android-overlay/issues"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://github.com/marioded/react-native-android-overlay#readme",
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"registry": "https://registry.npmjs.org/"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@commitlint/config-conventional": "^21.0.2",
|
|
62
|
+
"@eslint/compat": "^2.1.0",
|
|
63
|
+
"@eslint/eslintrc": "^3.3.5",
|
|
64
|
+
"@eslint/js": "^10.0.1",
|
|
65
|
+
"@jest/globals": "^29.7.0",
|
|
66
|
+
"@react-native/babel-preset": "0.85.0",
|
|
67
|
+
"@react-native/eslint-config": "0.85.0",
|
|
68
|
+
"@react-native/jest-preset": "0.85.0",
|
|
69
|
+
"@release-it/conventional-changelog": "^11.0.1",
|
|
70
|
+
"@types/react": "^19.2.0",
|
|
71
|
+
"commitlint": "^21.0.2",
|
|
72
|
+
"del-cli": "^7.0.0",
|
|
73
|
+
"eslint": "^9.39.4",
|
|
74
|
+
"eslint-config-prettier": "^10.1.8",
|
|
75
|
+
"eslint-plugin-ft-flow": "^3.0.11",
|
|
76
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
77
|
+
"jest": "^29.7.0",
|
|
78
|
+
"lefthook": "^2.1.9",
|
|
79
|
+
"prettier": "^3.8.3",
|
|
80
|
+
"react": "19.2.3",
|
|
81
|
+
"react-native": "0.85.0",
|
|
82
|
+
"react-native-builder-bob": "^0.41.0",
|
|
83
|
+
"react-native-web": "~0.21.2",
|
|
84
|
+
"release-it": "^20.2.0",
|
|
85
|
+
"turbo": "^2.9.16",
|
|
86
|
+
"typescript": "^6.0.3"
|
|
87
|
+
},
|
|
88
|
+
"peerDependencies": {
|
|
89
|
+
"react": "*",
|
|
90
|
+
"react-native": "*"
|
|
91
|
+
},
|
|
92
|
+
"workspaces": [
|
|
93
|
+
"example"
|
|
94
|
+
],
|
|
95
|
+
"packageManager": "yarn@4.11.0",
|
|
96
|
+
"react-native-builder-bob": {
|
|
97
|
+
"source": "src",
|
|
98
|
+
"output": "lib",
|
|
99
|
+
"targets": [
|
|
100
|
+
[
|
|
101
|
+
"module",
|
|
102
|
+
{
|
|
103
|
+
"esm": true
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
[
|
|
107
|
+
"typescript",
|
|
108
|
+
{
|
|
109
|
+
"project": "tsconfig.build.json"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"codegenConfig": {
|
|
115
|
+
"name": "AndroidOverlaySpec",
|
|
116
|
+
"type": "modules",
|
|
117
|
+
"jsSrcsDir": "src",
|
|
118
|
+
"android": {
|
|
119
|
+
"javaPackageName": "tech.zmario.androidoverlay"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"prettier": {
|
|
123
|
+
"quoteProps": "consistent",
|
|
124
|
+
"singleQuote": true,
|
|
125
|
+
"tabWidth": 2,
|
|
126
|
+
"trailingComma": "es5",
|
|
127
|
+
"useTabs": false
|
|
128
|
+
},
|
|
129
|
+
"jest": {
|
|
130
|
+
"preset": "@react-native/jest-preset",
|
|
131
|
+
"testEnvironmentOptions": {
|
|
132
|
+
"customExportConditions": [
|
|
133
|
+
"require",
|
|
134
|
+
"react-native",
|
|
135
|
+
"<%- project.sourceCondition -%>"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"modulePathIgnorePatterns": [
|
|
139
|
+
"<rootDir>/example/node_modules",
|
|
140
|
+
"<rootDir>/lib/"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"commitlint": {
|
|
144
|
+
"extends": [
|
|
145
|
+
"@commitlint/config-conventional"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"release-it": {
|
|
149
|
+
"git": {
|
|
150
|
+
"commitMessage": "chore: release ${version}",
|
|
151
|
+
"tagName": "v${version}"
|
|
152
|
+
},
|
|
153
|
+
"npm": {
|
|
154
|
+
"publish": true
|
|
155
|
+
},
|
|
156
|
+
"github": {
|
|
157
|
+
"release": true
|
|
158
|
+
},
|
|
159
|
+
"plugins": {
|
|
160
|
+
"@release-it/conventional-changelog": {
|
|
161
|
+
"preset": {
|
|
162
|
+
"name": "angular"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"create-react-native-library": {
|
|
168
|
+
"type": "turbo-module",
|
|
169
|
+
"languages": "kotlin-objc",
|
|
170
|
+
"tools": [
|
|
171
|
+
"eslint",
|
|
172
|
+
"jest",
|
|
173
|
+
"lefthook",
|
|
174
|
+
"release-it",
|
|
175
|
+
"vite"
|
|
176
|
+
],
|
|
177
|
+
"version": "0.63.0"
|
|
178
|
+
}
|
|
179
|
+
}
|