-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from Microsoft/develop
Merge develop into master
- Loading branch information
Showing
635 changed files
with
8,819 additions
and
5,092 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,4 +43,6 @@ android/keystores/debug.keystore | |
*.keystore | ||
*~ | ||
|
||
# credentials | ||
.npmrc | ||
google-services.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+40 Bytes
(100%)
...ppCenterReactNativeShared/AppCenterReactNativeShared.framework/AppCenterReactNativeShared
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+152 KB
(100%)
AppCenterReactNativeShared/ios/AppCenter.framework/AppCenter
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
#!/bin/bash | ||
cd Products | ||
zipfilename=AppCenter-SDK-ReactNative-iOS-Pod-1.x.x.zip | ||
wrapperSdkString=$(grep s.version AppCenterReactNativeShared.podspec) | ||
[[ ${wrapperSdkString} =~ ([0-9]+.[0-9]+.[0-9]+) ]] | ||
wrapperSdkVersion="${BASH_REMATCH[1]}" | ||
zipfilename="AppCenter-SDK-ReactNative-iOS-Pod-${wrapperSdkVersion}.zip" | ||
if [ -f $zipfilename ] ; then | ||
rm $zipfilename | ||
echo " removed old zip" | ||
fi | ||
cp ../../LICENSE AppCenterReactNativeShared | ||
cp ../LICENSE.md AppCenterReactNativeShared | ||
zip -r $zipfilename AppCenterReactNativeShared | ||
echo "output is here: Products/$zipfilename" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["react-native"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
[android] | ||
target = Google Inc.:Google APIs:23 | ||
|
||
[maven_repositories] | ||
central = https://repo1.maven.org/maven2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[ignore] | ||
; We fork some components by platform | ||
.*/*[.]android.js | ||
|
||
; Ignore "BUCK" generated dirs | ||
<PROJECT_ROOT>/\.buckd/ | ||
|
||
; Ignore unexpected extra "@providesModule" | ||
.*/node_modules/.*/node_modules/fbjs/.* | ||
|
||
; Ignore duplicate module providers | ||
; For RN Apps installed via npm, "Libraries" folder is inside | ||
; "node_modules/react-native" but in the source repo it is in the root | ||
.*/Libraries/react-native/React.js | ||
|
||
; Ignore polyfills | ||
.*/Libraries/polyfills/.* | ||
|
||
[include] | ||
|
||
[libs] | ||
node_modules/react-native/Libraries/react-native/react-native-interface.js | ||
node_modules/react-native/flow/ | ||
|
||
[options] | ||
emoji=true | ||
|
||
module.system=haste | ||
|
||
munge_underscores=true | ||
|
||
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' | ||
|
||
suppress_type=$FlowIssue | ||
suppress_type=$FlowFixMe | ||
suppress_type=$FlowFixMeProps | ||
suppress_type=$FlowFixMeState | ||
suppress_type=$FixMe | ||
|
||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) | ||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ | ||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy | ||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError | ||
|
||
unsafe.enable_getters_and_setters=true | ||
|
||
[version] | ||
^0.56.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.pbxproj -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# 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 | ||
|
||
# BUCK | ||
buck-out/ | ||
\.buckd/ | ||
android/app/libs | ||
*.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://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md | ||
|
||
fastlane/report.xml | ||
fastlane/Preview.html | ||
fastlane/screenshots | ||
|
||
# Source maps and debug files | ||
/index.ios.map | ||
/unused.jsbundle* | ||
/.vscode/.react | ||
|
||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/** | ||
* Sample React Native App | ||
* https://github.com/facebook/react-native | ||
* @flow | ||
*/ | ||
|
||
import React from 'react'; | ||
import { | ||
Text, | ||
View, | ||
ScrollView, | ||
TouchableOpacity | ||
} from 'react-native'; | ||
|
||
import Analytics from 'appcenter-analytics'; | ||
import SharedStyles from './SharedStyles'; | ||
|
||
export default class AnalyticsScreen extends React.Component { | ||
constructor() { | ||
super(); | ||
this.state = { | ||
analyticsEnabled: false | ||
}; | ||
this.toggleEnabled = this.toggleEnabled.bind(this); | ||
} | ||
|
||
async componentDidMount() { | ||
const component = this; | ||
|
||
const analyticsEnabled = await Analytics.isEnabled(); | ||
component.setState({ analyticsEnabled }); | ||
} | ||
|
||
async toggleEnabled() { | ||
await Analytics.setEnabled(!this.state.analyticsEnabled); | ||
|
||
const analyticsEnabled = await Analytics.isEnabled(); | ||
this.setState({ analyticsEnabled }); | ||
} | ||
|
||
/* eslint-disable no-undef */ | ||
render() { | ||
return ( | ||
<View style={SharedStyles.container}> | ||
<ScrollView > | ||
<Text style={SharedStyles.heading}> | ||
Test Analytics | ||
</Text> | ||
|
||
<Text style={SharedStyles.enabledText}> | ||
Analytics enabled: {this.state.analyticsEnabled ? 'yes' : 'no'} | ||
</Text> | ||
<TouchableOpacity onPress={this.toggleEnabled}> | ||
<Text style={SharedStyles.toggleEnabled}> | ||
toggle | ||
</Text> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity onPress={() => Analytics.trackEvent('Button press', { page: 'Home page' })}> | ||
<Text style={SharedStyles.button}> | ||
Track Event | ||
</Text> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity onPress={() => Analytics.trackEvent('Button press', { propertyValueTooLong: '12345678901234567890123456789012345678901234567890123456789012345' })}> | ||
<Text style={SharedStyles.button}> | ||
Track Event - event property value truncated after 64 characters | ||
</Text> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity onPress={() => Analytics.trackEvent('Button press', data)}> | ||
<Text style={SharedStyles.button}> | ||
Track Event badly (Do not do this, only strings are supported) | ||
</Text> | ||
</TouchableOpacity> | ||
|
||
</ScrollView> | ||
</View> | ||
); | ||
} | ||
/* eslint-enable no-undef */ | ||
} |
Oops, something went wrong.