In the root of your project, add .gitlab-ci.yml with the configuration below.
image: node:latest
stages:| package com.nieldeokar.whatsappaudiorecorder.recorder; | |
| import android.media.AudioFormat; | |
| import android.media.AudioRecord; | |
| import android.media.MediaCodec; | |
| import android.media.MediaCodecInfo; | |
| import android.media.MediaFormat; | |
| import android.media.MediaRecorder; | |
| import android.os.Build; | |
| import android.util.Log; |
Native Module in React-Native
To get a great grip on how wo build one, read these blogs.
Content of the Gist is from a talk by Peggy Rayzis at Chain React 2017: Chain React 2017: Breaking Down Bridging in React Native by Peggy Rayzis
In order for a native code to talk to JS you would need a bridge.
| watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache |
| import { | |
| NativeModules, | |
| } from 'react-native'; | |
| const { AudioManager } = NativeModules; | |
| async function setPlaying (shouldPlay: boolean) => { | |
| const isPlayingNativeResult = await AudioManager.setPlaying(shouldPlay); | |
| // do something with the native result | |
| } |
| bump_version () { | |
| git fetch origin | |
| git checkout develop | |
| git pull origin develop | |
| npm version patch --no-git-tag-version | |
| VERSION=$(grep -m1 version package.json | awk -F: '{ print $2 }' | sed 's/[", ]//g') | |
| git commit package.json -m "chore(package): Bump version up to $VERSION" | |
| git push origin develop | |
| git checkout master | |
| git pull origin master |
| /* | |
| * Copyright 2016 Kevin Mark | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| // | |
| // LocationRow.swift | |
| // bicimapa | |
| // | |
| // Created by Yoann Lecuyer on 16/01/16. | |
| // Copyright © 2016 Bicimapa. All rights reserved. | |
| // | |
| import UIKit | |
| import Eureka |