codeplay-common 4.2.4 → 4.2.5
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/.gitattributes +2 -2
- package/LICENSE +21 -21
- package/README.md +119 -119
- package/agent-templates/manifest.json +7 -6
- package/agent-templates/v1.0/AGENTS/agent-screenshot.md +12 -12
- package/agent-templates/v1.0/AGENTS/agent-temp.md +4 -4
- package/agent-templates/v1.0/AGENTS/agents-create-new-page.md +241 -241
- package/agent-templates/v1.0/AGENTS/agents.md +364 -360
- package/agent-templates/v1.0/AGENTS/playstore-media.md +17 -17
- package/agent-templates/v1.0/AGENTS/versioning.md +14 -14
- package/agent-templates/v1.0/AGENTS.md +4 -4
- package/files/buildCodeplay/codeplayBeforeBuild-6.2.js +4040 -4040
- package/files/buildCodeplay/versions.json +23 -23
- package/files/finalrelease +951 -951
- package/files/iap-install-2.js +145 -145
- package/files/ionic.config.json +6 -6
- package/files/scripts/setup-baseline-profile.js +257 -257
- package/package.json +15 -15
- package/scripts/sync-files.js +155 -155
- package/scripts/uninstall.js +109 -109
package/.gitattributes
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# Auto detect text files and perform LF normalization
|
|
2
|
-
* text=auto
|
|
1
|
+
# Auto detect text files and perform LF normalization
|
|
2
|
+
* text=auto
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Merbin Joe
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Merbin Joe
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
# codeplay-common
|
|
2
|
-
Everything automatted in Capacitor apps, easy to maintain many apps in capacitor. It will reduce your 40% of work, with common file code.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Easy add splashscreen and set animation
|
|
6
|
-
Admob id automatically from capacitor.config.json file
|
|
7
|
-
Make three build file for different store as per our requirement
|
|
8
|
-
Based on store install various IAP plugins
|
|
9
|
-
Make it to ionic project
|
|
10
|
-
|
|
11
|
-
## Agent instruction templates
|
|
12
|
-
|
|
13
|
-
Agent instructions are maintained independently under `agent-templates/v<version>/`.
|
|
14
|
-
The version in `agent-templates/manifest.json` is installed by default. To pin a
|
|
15
|
-
project to a specific instruction version, add this to the project's `package.json`:
|
|
16
|
-
|
|
17
|
-
```json
|
|
18
|
-
"codeplayCommon": {
|
|
19
|
-
"agentsVersion": "1.0"
|
|
20
|
-
}
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
During npm installation, the selected template's `AGENTS.md` and `AGENTS/` folder
|
|
24
|
-
are copied to the project root. Project-only files with different names inside
|
|
25
|
-
`AGENTS/` are preserved.
|
|
26
|
-
|
|
27
|
-
Donate to get full code including many common functions
|
|
28
|
-
https://ko-fi.com/codeplay
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Version 4.2.3
|
|
32
|
-
Added build warning confirmation when android.ORIENTATION is not "auto" or android.RESIZEABLE_ACTIVITY is not true.
|
|
33
|
-
|
|
34
|
-
Version 4.2.2
|
|
35
|
-
Added "bannerDisabledPages" property and its default value
|
|
36
|
-
The admob configuration default value priority is updated
|
|
37
|
-
|
|
38
|
-
Version 4.2.1
|
|
39
|
-
Updated AdMob nextgen file validation to match admob-emi-nextgen file names.
|
|
40
|
-
|
|
41
|
-
Version 4.2.0
|
|
42
|
-
Firebase related automatic changes updated
|
|
43
|
-
|
|
44
|
-
Version 4.1.9
|
|
45
|
-
Added AdMob nextgen 1.7 validation/default support for "overlappingHeight", "bannerTypeAndroidLandscape", and "bannerTypeiOSLandscape".
|
|
46
|
-
|
|
47
|
-
Version 4.1.8
|
|
48
|
-
"consentDebug: false" is added
|
|
49
|
-
|
|
50
|
-
Version 4.1.7
|
|
51
|
-
admob configuration automatically added.
|
|
52
|
-
|
|
53
|
-
Version 4.1.6
|
|
54
|
-
"setup-baseline-profile.js" modification, duplicate validation error fixed
|
|
55
|
-
|
|
56
|
-
Version 4.1.5
|
|
57
|
-
While isTesting is true it is not validated from our new configuration admob file, now it is solved
|
|
58
|
-
|
|
59
|
-
Version 4.1.4
|
|
60
|
-
hardcoded version is removed for the admob-emi-nextgen
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
Version 4.1.3
|
|
64
|
-
"consentDebug": false automatically adds if not
|
|
65
|
-
|
|
66
|
-
Version 4.1.2
|
|
67
|
-
Speedup
|
|
68
|
-
|
|
69
|
-
Version 4.1.1
|
|
70
|
-
Auto admob integration updated
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
version 4.0.9
|
|
74
|
-
packageJson.scripts["ionic:serve"] = "cross-env NODE_ENV=development vite"; this line updated in "sync-files.js"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
version 4.0.8
|
|
78
|
-
safearea plugin is checked and removed automatically
|
|
79
|
-
Automatically added following in capacitor.config.json file
|
|
80
|
-
"SystemBars": {
|
|
81
|
-
"insetsHandling": "css"
|
|
82
|
-
}
|
|
83
|
-
patchFile() method is removed
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
Version 4.0.6
|
|
89
|
-
IAP related some automatic variable creation and validation
|
|
90
|
-
Fetch from vite.config.json file
|
|
91
|
-
'import.meta.env.VITE_APP_UNIQUE_ID': JSON.stringify(APP_UNIQUE_ID),
|
|
92
|
-
'import.meta.env.VITE_ANDROID_ANALYTICS_ENABLED': JSON.stringify(ANDROID_ANALYTICS_ENABLED),
|
|
93
|
-
'import.meta.env.VITE_IOS_ANALYTICS_ENABLED': JSON.stringify(IOS_ANALYTICS_ENABLED),
|
|
94
|
-
'import.meta.env.VITE_IAP_DESIGN': JSON.stringify(IAP_DESIGN),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
Version 4.0.5
|
|
98
|
-
In "files\buildCodeplay\packageidBaseModification-1.4.js" SCHEDULE_EXACT_ALARM permission added for the app unique id 2 (resume generator app)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
Version 4.0.4
|
|
102
|
-
patchFile(); method is disabled, Due to "@capacitor/android:8.4.2" this update. I think it is realted to safearea issue fixed in this latest version, file in "SystemBars.java"
|
|
103
|
-
|
|
104
|
-
Version 4.0.3
|
|
105
|
-
Old admob check performs through plugin location, but not it is validated from capacitor.config.json
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
Version: 4.0.2
|
|
109
|
-
After check & install/download the latest version, the re-check is cancelled now
|
|
110
|
-
|
|
111
|
-
Version: 4.0.1
|
|
112
|
-
Base profile script added
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"version": "",
|
|
116
|
-
Version : 4.0.0 (Previous version 3.2.19)
|
|
117
|
-
1) In here we are completly remove the admob-emi and use "capacitor-admob-nextgen"
|
|
118
|
-
2) Removed "modify-plugin-xml.js"
|
|
119
|
-
3)
|
|
1
|
+
# codeplay-common
|
|
2
|
+
Everything automatted in Capacitor apps, easy to maintain many apps in capacitor. It will reduce your 40% of work, with common file code.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
Easy add splashscreen and set animation
|
|
6
|
+
Admob id automatically from capacitor.config.json file
|
|
7
|
+
Make three build file for different store as per our requirement
|
|
8
|
+
Based on store install various IAP plugins
|
|
9
|
+
Make it to ionic project
|
|
10
|
+
|
|
11
|
+
## Agent instruction templates
|
|
12
|
+
|
|
13
|
+
Agent instructions are maintained independently under `agent-templates/v<version>/`.
|
|
14
|
+
The version in `agent-templates/manifest.json` is installed by default. To pin a
|
|
15
|
+
project to a specific instruction version, add this to the project's `package.json`:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
"codeplayCommon": {
|
|
19
|
+
"agentsVersion": "1.0"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
During npm installation, the selected template's `AGENTS.md` and `AGENTS/` folder
|
|
24
|
+
are copied to the project root. Project-only files with different names inside
|
|
25
|
+
`AGENTS/` are preserved.
|
|
26
|
+
|
|
27
|
+
Donate to get full code including many common functions
|
|
28
|
+
https://ko-fi.com/codeplay
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
Version 4.2.3
|
|
32
|
+
Added build warning confirmation when android.ORIENTATION is not "auto" or android.RESIZEABLE_ACTIVITY is not true.
|
|
33
|
+
|
|
34
|
+
Version 4.2.2
|
|
35
|
+
Added "bannerDisabledPages" property and its default value
|
|
36
|
+
The admob configuration default value priority is updated
|
|
37
|
+
|
|
38
|
+
Version 4.2.1
|
|
39
|
+
Updated AdMob nextgen file validation to match admob-emi-nextgen file names.
|
|
40
|
+
|
|
41
|
+
Version 4.2.0
|
|
42
|
+
Firebase related automatic changes updated
|
|
43
|
+
|
|
44
|
+
Version 4.1.9
|
|
45
|
+
Added AdMob nextgen 1.7 validation/default support for "overlappingHeight", "bannerTypeAndroidLandscape", and "bannerTypeiOSLandscape".
|
|
46
|
+
|
|
47
|
+
Version 4.1.8
|
|
48
|
+
"consentDebug: false" is added
|
|
49
|
+
|
|
50
|
+
Version 4.1.7
|
|
51
|
+
admob configuration automatically added.
|
|
52
|
+
|
|
53
|
+
Version 4.1.6
|
|
54
|
+
"setup-baseline-profile.js" modification, duplicate validation error fixed
|
|
55
|
+
|
|
56
|
+
Version 4.1.5
|
|
57
|
+
While isTesting is true it is not validated from our new configuration admob file, now it is solved
|
|
58
|
+
|
|
59
|
+
Version 4.1.4
|
|
60
|
+
hardcoded version is removed for the admob-emi-nextgen
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
Version 4.1.3
|
|
64
|
+
"consentDebug": false automatically adds if not
|
|
65
|
+
|
|
66
|
+
Version 4.1.2
|
|
67
|
+
Speedup
|
|
68
|
+
|
|
69
|
+
Version 4.1.1
|
|
70
|
+
Auto admob integration updated
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
version 4.0.9
|
|
74
|
+
packageJson.scripts["ionic:serve"] = "cross-env NODE_ENV=development vite"; this line updated in "sync-files.js"
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
version 4.0.8
|
|
78
|
+
safearea plugin is checked and removed automatically
|
|
79
|
+
Automatically added following in capacitor.config.json file
|
|
80
|
+
"SystemBars": {
|
|
81
|
+
"insetsHandling": "css"
|
|
82
|
+
}
|
|
83
|
+
patchFile() method is removed
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
Version 4.0.6
|
|
89
|
+
IAP related some automatic variable creation and validation
|
|
90
|
+
Fetch from vite.config.json file
|
|
91
|
+
'import.meta.env.VITE_APP_UNIQUE_ID': JSON.stringify(APP_UNIQUE_ID),
|
|
92
|
+
'import.meta.env.VITE_ANDROID_ANALYTICS_ENABLED': JSON.stringify(ANDROID_ANALYTICS_ENABLED),
|
|
93
|
+
'import.meta.env.VITE_IOS_ANALYTICS_ENABLED': JSON.stringify(IOS_ANALYTICS_ENABLED),
|
|
94
|
+
'import.meta.env.VITE_IAP_DESIGN': JSON.stringify(IAP_DESIGN),
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
Version 4.0.5
|
|
98
|
+
In "files\buildCodeplay\packageidBaseModification-1.4.js" SCHEDULE_EXACT_ALARM permission added for the app unique id 2 (resume generator app)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
Version 4.0.4
|
|
102
|
+
patchFile(); method is disabled, Due to "@capacitor/android:8.4.2" this update. I think it is realted to safearea issue fixed in this latest version, file in "SystemBars.java"
|
|
103
|
+
|
|
104
|
+
Version 4.0.3
|
|
105
|
+
Old admob check performs through plugin location, but not it is validated from capacitor.config.json
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
Version: 4.0.2
|
|
109
|
+
After check & install/download the latest version, the re-check is cancelled now
|
|
110
|
+
|
|
111
|
+
Version: 4.0.1
|
|
112
|
+
Base profile script added
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
"version": "",
|
|
116
|
+
Version : 4.0.0 (Previous version 3.2.19)
|
|
117
|
+
1) In here we are completly remove the admob-emi and use "capacitor-admob-nextgen"
|
|
118
|
+
2) Removed "modify-plugin-xml.js"
|
|
119
|
+
3)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"current": "1.
|
|
3
|
-
"versions": [
|
|
4
|
-
"1.0"
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"current": "1.1",
|
|
3
|
+
"versions": [
|
|
4
|
+
"1.0"
|
|
5
|
+
,"1.1"
|
|
6
|
+
]
|
|
7
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# Screenshot Capture Rule
|
|
2
|
-
|
|
3
|
-
- Always capture from the current connected/online adb device only.
|
|
4
|
-
- Before running any screenshot command:
|
|
5
|
-
- Detect the first device with `device` state from `adb devices`.
|
|
6
|
-
- Do not use any key events (no power, wake, or lock/unlock commands).
|
|
7
|
-
- Do not use screen-state changes (`keyevent 26`, `keyevent 224`, etc.).
|
|
8
|
-
- Capture command sequence:
|
|
9
|
-
1. `adb -s <device-id> shell screencap -p /sdcard/current_connected_screenshot.png`
|
|
10
|
-
2. `adb -s <device-id> pull /sdcard/current_connected_screenshot.png _connected_screenshot.png`
|
|
11
|
-
3. `adb -s <device-id> shell rm /sdcard/current_connected_screenshot.png`
|
|
12
|
-
- If no device is in `device` state, stop and report `no_connected_device` before running any screenshot command.
|
|
1
|
+
# Screenshot Capture Rule
|
|
2
|
+
|
|
3
|
+
- Always capture from the current connected/online adb device only.
|
|
4
|
+
- Before running any screenshot command:
|
|
5
|
+
- Detect the first device with `device` state from `adb devices`.
|
|
6
|
+
- Do not use any key events (no power, wake, or lock/unlock commands).
|
|
7
|
+
- Do not use screen-state changes (`keyevent 26`, `keyevent 224`, etc.).
|
|
8
|
+
- Capture command sequence:
|
|
9
|
+
1. `adb -s <device-id> shell screencap -p /sdcard/current_connected_screenshot.png`
|
|
10
|
+
2. `adb -s <device-id> pull /sdcard/current_connected_screenshot.png _connected_screenshot.png`
|
|
11
|
+
3. `adb -s <device-id> shell rm /sdcard/current_connected_screenshot.png`
|
|
12
|
+
- If no device is in `device` state, stop and report `no_connected_device` before running any screenshot command.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# AGENT TEMP FOLDER RULE
|
|
2
|
-
|
|
3
|
-
- All temporary files and folders created while executing tasks (including images, cache files, debug output, and generated artifacts) **must be written only under the project-level `agent-temp/` directory**.
|
|
4
|
-
- Do not create or leave temporary artifacts in repository root, `src`, `www`, `public`, or other project folders.
|
|
1
|
+
# AGENT TEMP FOLDER RULE
|
|
2
|
+
|
|
3
|
+
- All temporary files and folders created while executing tasks (including images, cache files, debug output, and generated artifacts) **must be written only under the project-level `agent-temp/` directory**.
|
|
4
|
+
- Do not create or leave temporary artifacts in repository root, `src`, `www`, `public`, or other project folders.
|