diff --git a/.github/fabricbot.json b/.github/fabricbot.json deleted file mode 100644 index 057a69061..000000000 --- a/.github/fabricbot.json +++ /dev/null @@ -1,318 +0,0 @@ -{ - "version": "1.0", - "tasks": [ - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 1, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 2, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 3, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 4, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 5, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - }, - { - "weekDay": 6, - "hours": [ - 2, - 6, - 10, - 14, - 18, - 22 - ], - "timezoneOffset": 1 - } - ], - "searchTerms": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "noLabel", - "parameters": { - "label": "bug" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "security" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "stale" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "do not close" - } - }, - { - "name": "noActivitySince", - "parameters": { - "days": 60 - } - }, - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "noAssignees", - "parameters": {} - } - ], - "taskName": "Mark issues as stale (60 days)", - "actions": [ - { - "name": "addLabel", - "parameters": { - "label": "stale" - } - }, - { - "name": "addReply", - "parameters": { - "comment": "This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment." - } - } - ] - }, - "id": "v8RMdulExiln5tDIcHkDG" - }, - { - "taskType": "trigger", - "capabilityId": "IssueResponder", - "subCapability": "IssueCommentResponder", - "version": "1.0", - "config": { - "conditions": { - "operator": "and", - "operands": [ - { - "name": "hasLabel", - "parameters": { - "label": "stale" - } - } - ] - }, - "eventType": "issue", - "eventNames": [ - "issue_comment" - ], - "taskName": "Remove stale label if someone comments", - "actions": [ - { - "name": "removeLabel", - "parameters": { - "label": "stale" - } - } - ] - }, - "id": "QjKAHn8H_s2w4-FPDwsTJ" - }, - { - "taskType": "scheduled", - "capabilityId": "ScheduledSearch", - "subCapability": "ScheduledSearch", - "version": "1.1", - "config": { - "frequency": [ - { - "weekDay": 0, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 1, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 2, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 3, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 4, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 5, - "hours": [ - 0, - 6, - 12, - 18 - ] - }, - { - "weekDay": 6, - "hours": [ - 0, - 6, - 12, - 18 - ] - } - ], - "searchTerms": [ - { - "name": "isOpen", - "parameters": {} - }, - { - "name": "isIssue", - "parameters": {} - }, - { - "name": "hasLabel", - "parameters": { - "label": "stale" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "bug" - } - }, - { - "name": "noLabel", - "parameters": { - "label": "do not close" - } - }, - { - "name": "noAssignees", - "parameters": {} - }, - { - "name": "noActivitySince", - "parameters": { - "days": 15 - } - } - ], - "taskName": "Close Stale issues after 15 days", - "actions": [ - { - "name": "addReply", - "parameters": { - "comment": "This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion." - } - }, - { - "name": "closeIssue", - "parameters": {} - } - ] - }, - "id": "9IHqeWe1Xes6__bAZYk5M" - } - ], - "userGroups": [] -} diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml new file mode 100644 index 000000000..0aa5a1f3b --- /dev/null +++ b/.github/policies/resourceManagement.yml @@ -0,0 +1,64 @@ +id: +name: GitOps.PullRequestIssueManagement +description: GitOps.PullRequestIssueManagement primitive +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: + - description: + frequencies: + - hourly: + hour: 4 + filters: + - isOpen + - isNotLabeledWith: + label: bug + - isNotLabeledWith: + label: security + - isNotLabeledWith: + label: stale + - isNotLabeledWith: + label: do not close + - noActivitySince: + days: 60 + - isIssue + - isNotAssigned + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment. + - description: + frequencies: + - hourly: + hour: 6 + filters: + - isOpen + - isIssue + - hasLabel: + label: stale + - isNotLabeledWith: + label: bug + - isNotLabeledWith: + label: do not close + - isNotAssigned + - noActivitySince: + days: 15 + actions: + - addReply: + reply: This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion. + - closeIssue + eventResponderTasks: + - if: + - payloadType: Issue_Comment + - hasLabel: + label: stale + then: + - removeLabel: + label: stale + description: +onFailure: +onSuccess: diff --git a/README.md b/README.md index 2e2ede692..dd53bbc41 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ We try our best to maintain backwards compatibility of our plugin with previous | v0.60-v0.61 | v6.0+ *(RN migrated to Autolinking)* | | v0.62-v0.64 | v6.2+ *(RN removed LiveReload)* | | v0.65-v0.70 | v7.0+ *(RN updated iPhone-target-version)* | -| v0.71 | v7.2+ *(RN moved to react-native-gradle-plugin)* | +| v0.71 | v8.0+ *(RN moved to react-native-gradle-plugin)* | *NOTE: `react-native-code-push` versions lower than **[v5.7.0](https://github.com/microsoft/react-native-code-push/releases/tag/v5.7.0)** will stop working in the near future. You can find more information in our [documentation](https://github.com/microsoft/code-push/blob/master/migration-notice.md).* @@ -388,7 +388,6 @@ The React Native community has graciously created some awesome open source apps Additionally, if you're looking to get started with React Native + CodePush, and are looking for an awesome starter kit, you should check out the following: -* [Native Starter Pro](http://strapmobile.com/native-starter-pro/) * [Pepperoni](http://getpepperoni.com/) *Note: If you've developed a React Native app using CodePush, that is also open-source, please let us know. We would love to add it to this list!* @@ -433,7 +432,7 @@ In addition to being able to use the CodePush CLI to "manually" release updates, * [Visual Studio Team Services](https://marketplace.visualstudio.com/items?itemName=ms-vsclient.code-push) - *NOTE: VSTS also has extensions for publishing to [HockeyApp](https://marketplace.visualstudio.com/items?itemName=ms.hockeyapp) and the [Google Play](https://github.com/microsoft/google-play-vsts-extension) store, so it provides a pretty great mobile CD solution in general.* * [Travis CI](https://github.com/mondora/code-push-travis-cli) -Additionally, if you'd like more details of what a complete mobile CI/CD workflow can look like, which includes CodePush, check out this [excellent article](https://zeemee.engineering/zeemee-engineering-and-the-quest-for-the-holy-mobile-dev-grail-1310be4953d1#.zfwaxtbco) by the [ZeeMee engineering team](https://zeemee.engineering). +Additionally, if you'd like more details of what a complete mobile CI/CD workflow can look like, which includes CodePush, check out this [excellent article](https://medium.com/zeemee-engineering/zeemee-engineering-and-the-quest-for-the-holy-mobile-dev-grail-1310be4953d1) by the [ZeeMee engineering team](https://www.zeemee.com/). ### TypeScript Consumption diff --git a/android/codepush.gradle b/android/codepush.gradle index be305bf06..f70156435 100644 --- a/android/codepush.gradle +++ b/android/codepush.gradle @@ -59,6 +59,10 @@ gradle.projectsEvaluated { if (reactBundleTask) { jsBundleDir = reactBundleTask.property('jsBundleDir').asFile.get() resourcesDir = reactBundleTask.property('resourcesDir').asFile.get() + + new File(jsBundleDir).mkdirs() + new File(resourcesDir).mkdirs() + jsBundleFile = file("$jsBundleDir/$bundleAssetName") generateBundledResourcesHash = tasks.create( diff --git a/docs/setup-ios.md b/docs/setup-ios.md index 2351b1e9c..7a02369bc 100644 --- a/docs/setup-ios.md +++ b/docs/setup-ios.md @@ -35,7 +35,7 @@ Once you've acquired the CodePush plugin, you need to integrate it into the Xcod - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG - return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; + return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; #else return [CodePush bundleURL]; #endif diff --git a/package-lock.json b/package-lock.json index bcfd16f89..c56ef337b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-native-code-push", - "version": "8.1.1", + "version": "8.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "react-native-code-push", - "version": "8.1.1", + "version": "8.2.0", "license": "MIT", "dependencies": { "code-push": "^4.2.0", diff --git a/package.json b/package.json index 1cfa07f3e..8a289c940 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-code-push", - "version": "8.1.1", + "version": "8.2.0", "description": "React Native plugin for the CodePush service", "main": "CodePush.js", "typings": "typings/react-native-code-push.d.ts",