forked from Picovoice/rhino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopy.js
21 lines (18 loc) · 922 Bytes
/
copy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
// Copyright 2020 Picovoice Inc.
//
// You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
// file accompanying this source.
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
//
"use strict";
const fs = require("fs")
const mkdirp = require("mkdirp");
// copy Android resources
mkdirp.sync("./android/app/src/main/res/raw")
fs.copyFileSync('../../resources/contexts/android/smart_lighting_android.rhn','./android/app/src/main/res/raw/smart_lighting_android.rhn')
// copy iOS resources
fs.copyFileSync('../../resources/contexts/ios/smart_lighting_ios.rhn','./ios/smart_lighting_ios.rhn')