Skip to content

Commit

Permalink
chore: package rename
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkubaczkowski committed Dec 23, 2021
1 parent e56f159 commit 7b6b087
Show file tree
Hide file tree
Showing 26 changed files with 60 additions and 58 deletions.
13 changes: 6 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ We welcome you to use the GitHub issue tracker to report bugs or suggest feature
When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:

* A reproducible test case or series of steps
* The version of our code being used
* Any modifications you've made relevant to the bug
* Anything unusual about your environment or deployment
- A reproducible test case or series of steps
- The version of our code being used
- Any modifications you've made relevant to the bug
- Anything unusual about your environment or deployment

## Development workflow

Expand Down Expand Up @@ -67,9 +67,9 @@ yarn test

When updating/changing Typescript types, please remember to also update their Flow equivalents.

To edit the Swift files, open `example/ios/AmazonIvsExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > amazon-ivs-react-native`.
To edit the Swift files, open `example/ios/AmazonIvsExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > amazon-ivs-react-native-player`.

To edit the Kotlin files, open `example/android` in Android studio and find the source files at `amazonivsreactnative` under `Android`.
To edit the Kotlin files, open `example/android` in Android studio and find the source files at `amazonivsreactnativeplayer` under `Android`.

### Commit message convention

Expand Down Expand Up @@ -154,7 +154,6 @@ [email protected] with any additional questions or comments.

If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public GitHub issue.


## Licensing

See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# amazon-ivs-react-native
# amazon-ivs-react-native-player

This package implements native binding for Amazon IVS Player for iOS and Android.

**This package is currently in developer preview and is not recommended for production use.**

## Installation

- install `amazon-ivs-react-native` dependency using yarn or npm
- install `amazon-ivs-react-native-player` dependency using yarn or npm

```sh
npm install amazon-ivs-react-native
npm install amazon-ivs-react-native-player
```

- install pods for your ios project. Go to `ios` directory and run
Expand All @@ -21,7 +21,7 @@ pod install
## Usage

```tsx
import IVSPlayer from 'amazon-ivs-react-native';
import IVSPlayer from 'amazon-ivs-react-native-player';

const URL =
'https://fcc3ddae59ed.us-west-2.playback.live-video.net/api/video/v1/us-west-2.893648527354.channel.DmumNckWFTqz.m3u8';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ IVS
}

Pod::Spec.new do |s|
s.name = "amazon-ivs-react-native"
s.name = "amazon-ivs-react-native-player"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]

s.platforms = { :ios => "10.0" }
s.source = { :git => "https://github.com/aws/amazon-ivs-react-native.git", :tag => "#{s.version}" }
s.source = { :git => "https://github.com/aws/amazon-ivs-react-native-player.git", :tag => "#{s.version}" }


s.source_files = "ios/**/*.{h,m,mm,swift}"
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.amazonivsreactnative">
package="com.amazonivsreactnativeplayer">

</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.amazonivsreactnative
package com.amazonivsreactnativeplayer

import java.util.Arrays

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.amazonivsreactnative
package com.amazonivsreactnativeplayer

import com.facebook.react.bridge.ReadableArray
import com.facebook.react.bridge.ReadableMap
Expand Down
8 changes: 4 additions & 4 deletions docs/ivs-player-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Web reference:
https://aws.github.io/amazon-ivs-player-docs/1.2.0/web/

```tsx
import IVSPlayer from 'amazon-ivs-react-native';
import IVSPlayer from 'amazon-ivs-react-native-player';

function App() {
return (
Expand Down Expand Up @@ -247,7 +247,7 @@ A reference method that will play the stream/video if it is stopped. For a strea
type: `() => void`

```tsx
import IVSPlayer, { IVSPlayerRef } from 'amazon-ivs-react-native';
import IVSPlayer, { IVSPlayerRef } from 'amazon-ivs-react-native-player';

const URL = 'https://fcc3ddae59ed.us-west-2.playback.live-video.net/api/video/v1/us-west-2.893648527354.channel.DmumNckWFTqz.m3u8';

Expand All @@ -272,7 +272,7 @@ A reference method that will pause the stream/video if it is playing. For a stre
type: `() => void`

```tsx
import IVSPlayer, { IVSPlayerRef } from 'amazon-ivs-react-native';
import IVSPlayer, { IVSPlayerRef } from 'amazon-ivs-react-native-player';

const URL = 'https://fcc3ddae59ed.us-west-2.playback.live-video.net/api/video/v1/us-west-2.893648527354.channel.DmumNckWFTqz.m3u8';

Expand All @@ -297,7 +297,7 @@ Seeks to the given time in the stream and begins playing at that position if `pl
type: `(position: number, completionHandler: function?) => void`

```tsx
import IVSPlayer, { IVSPlayerRef } from 'amazon-ivs-react-native';
import IVSPlayer, { IVSPlayerRef } from 'amazon-ivs-react-native-player';

const URL = 'https://fcc3ddae59ed.us-west-2.playback.live-video.net/api/video/v1/us-west-2.893648527354.channel.DmumNckWFTqz.m3u8';

Expand Down
6 changes: 3 additions & 3 deletions docs/usage-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ IVS Player component allows setup and interaction with the native implementation
To install the SDK run the following command in your terminal:

```sh
yarn add amazon-ivs-react-native
yarn add amazon-ivs-react-native-player
```

For iOS you will have to run `pod install` inside `ios` directory in order to install needed native dependencies. Android won't require any additional steps.
Expand All @@ -17,7 +17,7 @@ For iOS you will have to run `pod install` inside `ios` directory in order to in
To render the player in your app just use [`IVSPlayer`](./ivs-player-reference.md) component wherever you need it.

```jsx
import IVSPlayer from 'amazon-ivs-react-native';
import IVSPlayer from 'amazon-ivs-react-native-player';

export default function App() {
return (
Expand Down Expand Up @@ -49,7 +49,7 @@ In addition to configuring the player declaratively there is also a way to trigg
On of those actions are `play` and `pause` which can be used to manually stop and start the video.

```tsx
import IVSPlayer, { IVSPlayerRef } from 'amazon-ivs-react-native'
import IVSPlayer, { IVSPlayerRef } from 'amazon-ivs-react-native-player'

export default function App() {
const mediaPlayerRef = React.useRef<IVSPlayerRef>(null);
Expand Down
4 changes: 2 additions & 2 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ android {
}

defaultConfig {
applicationId "com.example.amazonivsreactnative"
applicationId "com.example.amazonivsreactnativeplayer"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
Expand Down Expand Up @@ -211,7 +211,7 @@ dependencies {
implementation jscFlavor
}

implementation project(':amazonivsreactnative')
implementation project(':amazonivsreactnativeplayer')
}

// Run this once to be able to run the application with BUCK
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.amazonivsreactnative;
package com.example.amazonivsreactnativeplayer;

import com.wix.detox.Detox;

Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.amazonivsreactnative">
package="com.example.amazonivsreactnativeplayer">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.amazonivsreactnative;
package com.example.amazonivsreactnativeplayer;

import android.os.Bundle;
import android.view.WindowManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.amazonivsreactnative;
package com.example.amazonivsreactnativeplayer;

import android.app.Application;
import android.content.Context;
Expand All @@ -10,7 +10,7 @@
import com.facebook.soloader.SoLoader;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import com.amazonivsreactnative.AmazonIvsPackage;
import com.amazonivsreactnativeplayer.AmazonIvsPackage;

public class MainApplication extends Application implements ReactApplication {

Expand Down Expand Up @@ -61,7 +61,7 @@ private static void initializeFlipper(Context context, ReactInstanceManager reac
We use reflection here to pick up the class that initializes Flipper,
since Flipper library is not available in release mode
*/
Class<?> aClass = Class.forName("com.amazonivsreactnativeExample.ReactNativeFlipper");
Class<?> aClass = Class.forName("com.amazonivsreactnativeplayerExample.ReactNativeFlipper");
aClass
.getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
.invoke(null, context, reactInstanceManager);
Expand Down
4 changes: 2 additions & 2 deletions example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ rootProject.name = 'AmazonIvsExample'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'

include ':amazonivsreactnative'
project(':amazonivsreactnative').projectDir = new File(rootProject.projectDir, '../../android')
include ':amazonivsreactnativeplayer'
project(':amazonivsreactnativeplayer').projectDir = new File(rootProject.projectDir, '../../android')
8 changes: 4 additions & 4 deletions example/ios/AmazonIvsExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
"-lc++",
"$(inherited)",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.amazonivsreactnative;
PRODUCT_BUNDLE_IDENTIFIER = com.example.amazonivsreactnativeplayer;
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AmazonIvsExample.app/AmazonIvsExample";
};
Expand All @@ -598,7 +598,7 @@
"-lc++",
"$(inherited)",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.amazonivsreactnative;
PRODUCT_BUNDLE_IDENTIFIER = com.example.amazonivsreactnativeplayer;
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AmazonIvsExample.app/AmazonIvsExample";
};
Expand All @@ -621,7 +621,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.amazonivsreactnative;
PRODUCT_BUNDLE_IDENTIFIER = com.example.amazonivsreactnativeplayer;
PRODUCT_NAME = AmazonIvsExample;
SWIFT_OBJC_BRIDGING_HEADER = "AmazonIvsExample-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -647,7 +647,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.amazonivsreactnative;
PRODUCT_BUNDLE_IDENTIFIER = com.example.amazonivsreactnativeplayer;
PRODUCT_NAME = AmazonIvsExample;
SWIFT_OBJC_BRIDGING_HEADER = "AmazonIvsExample-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
2 changes: 1 addition & 1 deletion example/ios/AmazonIvsExample/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="amazon-ivs-react-native-example" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="amazon-ivs-react-native-player-example" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
<rect key="frame" x="0.0" y="202" width="375" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ target 'AmazonIvsExample' do
:hermes_enabled => false
)

pod 'amazon-ivs-react-native', :path => '../..'
pod 'amazon-ivs-react-native-player', :path => '../..'

# Enables Flipper.
#
Expand Down
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- amazon-ivs-react-native (1.0.2-beta):
- amazon-ivs-react-native-player (1.0.2-beta):
- AmazonIVSPlayer (~> 1.6.0)
- React-Core
- AmazonIVSPlayer (1.6.0)
Expand Down Expand Up @@ -339,7 +339,7 @@ PODS:
- Yoga (1.14.0)

DEPENDENCIES:
- amazon-ivs-react-native (from `../..`)
- amazon-ivs-react-native-player (from `../..`)
- appcenter-analytics (from `../node_modules/appcenter-analytics/ios`)
- appcenter-core (from `../node_modules/appcenter/ios`)
- appcenter-crashes (from `../node_modules/appcenter-crashes/ios`)
Expand Down Expand Up @@ -391,7 +391,7 @@ SPEC REPOS:
- boost-for-react-native

EXTERNAL SOURCES:
amazon-ivs-react-native:
amazon-ivs-react-native-player:
:path: "../.."
appcenter-analytics:
:path: "../node_modules/appcenter-analytics/ios"
Expand Down Expand Up @@ -475,7 +475,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
amazon-ivs-react-native: 42e429db84546911b7e93ef5213036a8008eb404
amazon-ivs-react-native-player: 628db448bf0b36e6621e5fe0b5ab7133bbb68d30
AmazonIVSPlayer: ffb432b2359faad4d6e91c5c4b9bbe726d42c5af
AppCenter: 883369ab78427b0561c688158d689dfe1f993ea9
appcenter-analytics: 2a8a55d2feba193c3c8a51b9902ef4757386414e
Expand Down Expand Up @@ -521,6 +521,6 @@ SPEC CHECKSUMS:
RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59
Yoga: 575c581c63e0d35c9a83f4b46d01d63abc1100ac

PODFILE CHECKSUM: c9f5c23ae17a7b40dd6569a4c7b17bc313625a84
PODFILE CHECKSUM: c6836e6800bb56e82ef77b5d96ded03a7ffb1a9f

COCOAPODS: 1.10.1
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "amazon-ivs-react-native-example",
"description": "Example app for amazon-ivs-react-native",
"name": "amazon-ivs-react-native-player-example",
"description": "Example app for amazon-ivs-react-native-player",
"version": "0.0.1",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/LogLevelPicker.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { Button } from 'react-native-paper';
import { LogLevel } from 'amazon-ivs-react-native';
import { LogLevel } from 'amazon-ivs-react-native-player';
import { StyleSheet, View } from 'react-native';

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/QualitiesPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { StyleSheet } from 'react-native';
import { View } from 'react-native';
import { Button } from 'react-native-paper';
import type { Quality } from 'amazon-ivs-react-native';
import type { Quality } from 'amazon-ivs-react-native-player';

type Props = {
quality: Quality | null;
Expand Down
5 changes: 4 additions & 1 deletion example/src/screens/AdvancedExample.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React, { useState, useEffect, useCallback } from 'react';
import { Dimensions, StyleSheet, View } from 'react-native';
import IVSPlayer, { IVSPlayerRef, PlayerState } from 'amazon-ivs-react-native';
import IVSPlayer, {
IVSPlayerRef,
PlayerState,
} from 'amazon-ivs-react-native-player';
import { IconButton, ActivityIndicator, Text } from 'react-native-paper';
import Slider from '@react-native-community/slider';
import type { StackNavigationProp } from '@react-navigation/stack';
Expand Down
2 changes: 1 addition & 1 deletion example/src/screens/PlaygroundExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import IVSPlayer, {
LogLevel,
PlayerState,
Quality,
} from 'amazon-ivs-react-native';
} from 'amazon-ivs-react-native-player';
import {
IconButton,
ActivityIndicator,
Expand Down
2 changes: 1 addition & 1 deletion example/src/screens/SimpleExample.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import IVSPlayer from 'amazon-ivs-react-native';
import IVSPlayer from 'amazon-ivs-react-native-player';

const URL =
'https://fcc3ddae59ed.us-west-2.playback.live-video.net/api/video/v1/us-west-2.893648527354.channel.DmumNckWFTqz.m3u8';
Expand Down
Loading

0 comments on commit 7b6b087

Please sign in to comment.