codeplay-common 4.2.7 → 4.2.9
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/README.md +21 -19
- package/files/scripts/setup-baseline-profile.js +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,29 +8,31 @@ Make three build file for different store as per our requirement
|
|
|
8
8
|
Based on store install various IAP plugins
|
|
9
9
|
Make it to ionic project
|
|
10
10
|
|
|
11
|
-
## Agent instructions
|
|
12
|
-
|
|
13
|
-
Agent instructions are updated during `npm run build`, not during npm installation.
|
|
14
|
-
The build script reads the `agents` version from
|
|
15
|
-
`https://htmlcodeplay.com/code-play-plugin/versions.json` and downloads the matching
|
|
16
|
-
`agents-<version>.zip` archive when the project has no agent instructions or the
|
|
17
|
-
server version is newer.
|
|
18
|
-
|
|
19
|
-
The ZIP root must contain `AGENTS.md` and `AGENTS/`. These are copied directly to
|
|
20
|
-
the project root. The installed version is stored in `AGENTS/.codeplay-version`.
|
|
21
|
-
Existing files with matching names are replaced; project-only files with other
|
|
22
|
-
names inside `AGENTS/` are preserved.
|
|
23
|
-
|
|
24
|
-
For example, publish `agents-1.1.zip` and add this entry to the server's
|
|
25
|
-
`versions.json`:
|
|
26
|
-
|
|
27
|
-
```json
|
|
28
|
-
"agents": "1.1"
|
|
29
|
-
```
|
|
11
|
+
## Agent instructions
|
|
12
|
+
|
|
13
|
+
Agent instructions are updated during `npm run build`, not during npm installation.
|
|
14
|
+
The build script reads the `agents` version from
|
|
15
|
+
`https://htmlcodeplay.com/code-play-plugin/versions.json` and downloads the matching
|
|
16
|
+
`agents-<version>.zip` archive when the project has no agent instructions or the
|
|
17
|
+
server version is newer.
|
|
18
|
+
|
|
19
|
+
The ZIP root must contain `AGENTS.md` and `AGENTS/`. These are copied directly to
|
|
20
|
+
the project root. The installed version is stored in `AGENTS/.codeplay-version`.
|
|
21
|
+
Existing files with matching names are replaced; project-only files with other
|
|
22
|
+
names inside `AGENTS/` are preserved.
|
|
23
|
+
|
|
24
|
+
For example, publish `agents-1.1.zip` and add this entry to the server's
|
|
25
|
+
`versions.json`:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
"agents": "1.1"
|
|
29
|
+
```
|
|
30
30
|
|
|
31
31
|
Donate to get full code including many common functions
|
|
32
32
|
https://ko-fi.com/codeplay
|
|
33
33
|
|
|
34
|
+
4.2.8
|
|
35
|
+
baseline profile code modifications
|
|
34
36
|
|
|
35
37
|
Version 4.2.3
|
|
36
38
|
Added build warning confirmation when android.ORIENTATION is not "auto" or android.RESIZEABLE_ACTIVITY is not true.
|
|
@@ -114,9 +114,9 @@ function toSafeJavaPackageName(value) {
|
|
|
114
114
|
.join('.');
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
function getBaselineProfileBuildGradle(modulePackage) {
|
|
118
|
-
return `apply plugin: 'com.android.test'\napply plugin: 'androidx.baselineprofile'\n\nandroid {\n namespace = \"${modulePackage}\"\n compileSdk = rootProject.ext.compileSdkVersion\n\n defaultConfig {\n minSdkVersion rootProject.ext.minSdkVersion\n targetSdkVersion rootProject.ext.targetSdkVersion\n testInstrumentationRunner \"androidx.test.runner.AndroidJUnitRunner\"\n }\n\n targetProjectPath = \":app\"\n}\n\nbaselineProfile {\n useConnectedDevices true\n}\n\ndependencies {\n implementation \"androidx.benchmark:benchmark-macro-junit4:1.4.0\"\n implementation \"androidx.test.ext:junit:$androidxJunitVersion\"\n implementation \"androidx.test.uiautomator:uiautomator:2.3.0\"\n}\n`;
|
|
119
|
-
}
|
|
117
|
+
function getBaselineProfileBuildGradle(modulePackage) {
|
|
118
|
+
return `apply plugin: 'com.android.test'\napply plugin: 'androidx.baselineprofile'\n\nandroid {\n namespace = \"${modulePackage}\"\n compileSdk = rootProject.ext.compileSdkVersion\n\n defaultConfig {\n minSdkVersion rootProject.ext.minSdkVersion\n targetSdkVersion rootProject.ext.targetSdkVersion\n testInstrumentationRunner \"androidx.test.runner.AndroidJUnitRunner\"\n }\n\n targetProjectPath = \":app\"\n}\n\nbaselineProfile {\n useConnectedDevices true\n}\n\ndef generatedBaselineProfileDir = file(\"$projectDir/../app/src/main/generated/baselineProfiles\")\ndef stableBaselineProfileDir = file(\"$projectDir/../baselineProfiles\")\n\ntasks.register(\"copyGeneratedBaselineProfiles\") {\n group = \"baselineprofile\"\n description = \"Copies generated baseline profile files from app module to a stable project-level folder.\"\n\n doLast {\n if (generatedBaselineProfileDir.exists()) {\n delete(stableBaselineProfileDir)\n copy {\n from(generatedBaselineProfileDir)\n include(\"**/*.txt\")\n into(stableBaselineProfileDir)\n }\n println \"Copied baseline profile files to: ${stableBaselineProfileDir}\"\n } else {\n println \"No generated baseline profiles found at ${generatedBaselineProfileDir}\"\n }\n }\n}\n\ntasks.named(\"connectedNonMinifiedReleaseAndroidTest\") {\n finalizedBy(\"copyGeneratedBaselineProfiles\")\n}\n\ndependencies {\n implementation \"androidx.benchmark:benchmark-macro-junit4:1.4.0\"\n implementation \"androidx.test.ext:junit:$androidxJunitVersion\"\n implementation \"androidx.test.uiautomator:uiautomator:2.3.0\"\n}\n`;
|
|
119
|
+
}
|
|
120
120
|
|
|
121
121
|
const baselineProfileManifest = `<?xml version="1.0" encoding="utf-8"?>
|
|
122
122
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" />
|
|
@@ -255,3 +255,5 @@ function main() {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
main();
|
|
258
|
+
|
|
259
|
+
|