Skip to content

Commit

Permalink
fix. new 0.58.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrixbirds committed Feb 3, 2019
1 parent 02412f8 commit 2a0a57b
Show file tree
Hide file tree
Showing 25 changed files with 2,943 additions and 201 deletions.
2 changes: 1 addition & 1 deletion samples/simpleDemo/.flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.78.0
^0.86.0
58 changes: 58 additions & 0 deletions samples/simpleDemo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,61 @@ buck-out/
*.jsbundle
Pods
**/*~
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Bundle artifact
*.jsbundle
Pods
**/*~
18 changes: 4 additions & 14 deletions samples/simpleDemo/android/app/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,13 @@
# - `buck install -r android/app` - compile, install and run application
#

load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")

lib_deps = []

for jarfile in glob(['libs/*.jar']):
name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')]
lib_deps.append(':' + name)
prebuilt_jar(
name = name,
binary_jar = jarfile,
)
create_aar_targets(glob(["libs/*.aar"]))

for aarfile in glob(['libs/*.aar']):
name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')]
lib_deps.append(':' + name)
android_prebuilt_aar(
name = name,
aar = aarfile,
)
create_jar_targets(glob(["libs/*.jar"]))

android_library(
name = "all-libs",
Expand Down
8 changes: 3 additions & 5 deletions samples/simpleDemo/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,13 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
include "armeabi-v7a", "x86", "arm64-v8a"
}
}
buildTypes {
Expand All @@ -126,7 +123,7 @@ android {
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
Expand All @@ -137,6 +134,7 @@ android {
}

dependencies {
implementation project(':react-native-agora')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
Expand Down
19 changes: 19 additions & 0 deletions samples/simpleDemo/android/app/build_defs.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""Helper definitions to glob .aar and .jar targets"""

def create_aar_targets(aarfiles):
for aarfile in aarfiles:
name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
lib_deps.append(":" + name)
android_prebuilt_aar(
name = name,
aar = aarfile,
)

def create_jar_targets(jarfiles):
for jarfile in jarfiles:
name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
lib_deps.append(":" + name)
prebuilt_jar(
name = name,
binary_jar = jarfile,
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
<activity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.app.Application;

import com.facebook.react.ReactApplication;
import com.syan.agora.AgoraPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
Expand All @@ -22,7 +23,8 @@ public boolean getUseDeveloperSupport() {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage()
new MainReactPackage(),
new AgoraPackage()
);
}

Expand Down
12 changes: 6 additions & 6 deletions samples/simpleDemo/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

buildscript {
ext {
buildToolsVersion = "27.0.3"
buildToolsVersion = "28.0.2"
minSdkVersion = 16
compileSdkVersion = 27
targetSdkVersion = 26
supportLibVersion = "27.1.1"
compileSdkVersion = 28
targetSdkVersion = 27
supportLibVersion = "28.0.0"
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.android.tools.build:gradle:3.2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -34,6 +34,6 @@ allprojects {


task wrapper(type: Wrapper) {
gradleVersion = '4.4'
gradleVersion = '4.7'
distributionUrl = distributionUrl.replace("bin", "all")
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip
2 changes: 2 additions & 0 deletions samples/simpleDemo/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
rootProject.name = 'simpleDemo'
include ':react-native-agora'
project(':react-native-agora').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-agora/android')

include ':app'
3 changes: 3 additions & 0 deletions samples/simpleDemo/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["module:metro-react-native-babel-preset"]
}
38 changes: 27 additions & 11 deletions samples/simpleDemo/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,40 @@
react_native_path = '../node_modules/react-native'
project 'simpleDemo.xcodeproj'

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
react_native_path = "../node_modules/react-native"
project "simpleDemo.xcodeproj"

target 'simpleDemo' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
# use_frameworks!

# Pods for simpleDemo
pod 'react-native-agora', path: '../node_modules/react-native-agora'
pod 'React', path: react_native_path
pod 'yoga', path: "#{react_native_path}/ReactCommon/yoga"
%w(DoubleConversion Folly glog).each do |lib_name|
pod lib_name, podspec: "#{react_native_path}/third-party-podspecs/#{lib_name}.podspec"
end
#pod 'AgoraRtcEngine_iOS', '2.3.3'

#target 'simpleDemo-tvOSTests' do
# inherit! :search_paths
# # Pods for testing
#end
pod "react-native-agora", path: "../node_modules/react-native-agora"
#pod "React", path: react_native_path
#%w(DoubleConversion Folly glog).each do |lib_name|
# pod lib_name, podspec: "#{react_native_path}/third-party-podspecs/#{lib_name}.podspec"
#end

target 'simpleDemoTests' do
inherit! :search_paths
# Pods for testing
end

end

target 'simpleDemo-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!

# Pods for simpleDemo-tvOS

target 'simpleDemo-tvOSTests' do
inherit! :search_paths
# Pods for testing
end

end
36 changes: 1 addition & 35 deletions samples/simpleDemo/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
PODS:
- AgoraRtcEngine_iOS (2.3.3)
- boost-for-react-native (1.63.0)
- DoubleConversion (1.1.6)
- Folly (2016.10.31.00):
- boost-for-react-native
- DoubleConversion
- glog
- glog (0.3.5)
- React (0.57.8):
- React/Core (= 0.57.8)
- react-native-agora (2.3.3):
- AgoraRtcEngine_iOS (= 2.3.3)
- react-native-agora/AgoraRtcCryptoLoader (= 2.3.3)
Expand All @@ -17,47 +8,22 @@ PODS:
- AgoraRtcEngine_iOS (= 2.3.3)
- react-native-agora/AgoraRtcEngineKit (2.3.3):
- AgoraRtcEngine_iOS (= 2.3.3)
- React/Core (0.57.8):
- yoga (= 0.57.8.React)
- yoga (0.57.8.React)

DEPENDENCIES:
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
- Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
- React (from `../node_modules/react-native`)
- react-native-agora (from `../node_modules/react-native-agora`)
- yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- AgoraRtcEngine_iOS
- boost-for-react-native

EXTERNAL SOURCES:
DoubleConversion:
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
Folly:
:podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec"
glog:
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
React:
:path: "../node_modules/react-native"
react-native-agora:
:path: "../node_modules/react-native-agora"
yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
AgoraRtcEngine_iOS: 8ad4b58dafed2cec5df03fa1f0ddbdad2c9ff958
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
DoubleConversion: bb338842f62ab1d708ceb63ec3d999f0f3d98ecd
Folly: c89ac2d5c6ab169cd7397ef27485c44f35f742c7
glog: e8acf0ebbf99759d3ff18c86c292a5898282dcde
React: 1fe0eb13d90b625d94c3b117c274dcfd2e760e11
react-native-agora: ad43868aad1298fa32f167d9a00887e2c88af54b
yoga: b1ce48b6cf950b98deae82838f5173ea7cf89e85

PODFILE CHECKSUM: a165c0bfbdd660ff2132e775c48c7a2e58dd3cf7
PODFILE CHECKSUM: ed05ca9e60ab637de485899d548c81338155a2ae

COCOAPODS: 1.5.3
Loading

0 comments on commit 2a0a57b

Please sign in to comment.