Skip to content

Commit 40e07d7

Browse files
authored
[HOTFIX] - v8.6.5 (#74)
1 parent a38508f commit 40e07d7

File tree

509 files changed

+54956
-318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

509 files changed

+54956
-318
lines changed

.circleci/config.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,106 @@
11
version: 2
22
jobs:
3+
android_tests:
4+
working_directory: ~/project
5+
macos:
6+
xcode: "9.4.0"
7+
environment:
8+
JVM_OPTS: -Xmx3200m
9+
steps:
10+
- checkout:
11+
path: ~/project
12+
- run:
13+
name: Setup environment variables
14+
command: |
15+
echo 'export PATH="$PATH:/usr/local/opt/node@8/bin:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:/usr/local/share/android-sdk/tools/bin"' >> $BASH_ENV
16+
echo 'export ANDROID_HOME="/usr/local/share/android-sdk"' >> $BASH_ENV
17+
echo 'export ANDROID_SDK_HOME="/usr/local/share/android-sdk"' >> $BASH_ENV
18+
echo 'export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"' >> $BASH_ENV
19+
echo 'export QEMU_AUDIO_DRV=none' >> $BASH_ENV
20+
echo 'export JAVA_HOME=/Library/Java/Home' >> $BASH_ENV
21+
echo 'export PATH="$PATH:`pwd`/flutter/bin"' >> $BASH_ENV
22+
echo "export PATH=\$PATH:/usr/local/share/android-sdk/platform-tools/" >>$BASH_ENV
23+
- run:
24+
name: Install Android sdk
25+
command: |
26+
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask
27+
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install android-sdk
28+
- run:
29+
name: Install Gradle
30+
command: |
31+
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask
32+
HOMEBREW_NO_AUTO_UPDATE=1 brew install gradle
33+
- run:
34+
name: Install emulator dependencies
35+
command: (yes | sdkmanager "platform-tools" "platforms;android-26" "extras;intel;Hardware_Accelerated_Execution_Manager" "build-tools;26.0.0" "system-images;android-26;google_apis;x86" "emulator" --verbose) || true
36+
- run: avdmanager create avd -n Pixel_2_API_26 -k "system-images;android-26;google_apis;x86" -g google_apis -d "Nexus 5"
37+
- run:
38+
name: Run emulator in background
39+
command: /usr/local/share/android-sdk/tools/emulator @Pixel_2_API_26 -noaudio -no-boot-anim -no-window
40+
background: true
41+
- run:
42+
name: download Cordova
43+
command: npm install -g cordova
44+
- run:
45+
name: Copy sampleApp
46+
command: cp -a sampleApp ../
47+
- run:
48+
name: chmod permissions
49+
command: cd ../; chmod -R 777 sampleApp
50+
- run:
51+
name: Npm Install
52+
command: cd ../sampleApp; npm install
53+
- run:
54+
name: Add Instabug
55+
command: cd ../sampleApp; cordova plugin add ../project
56+
- run:
57+
name: Build App
58+
command: cd ../sampleApp; cordova build android
59+
- run:
60+
name: Download Android Dependencies
61+
command: cd ../sampleApp/platforms/android; ./gradlew androidDependencies
62+
- run:
63+
name: Disable animations
64+
command: |
65+
adb shell settings put global window_animation_scale 0.0
66+
adb shell settings put global transition_animation_scale 0.0
67+
adb shell settings put global animator_duration_scale 0.0
68+
adb shell settings put secure long_press_timeout 1500
69+
- run:
70+
name: Run UI Tests
71+
command: cd ../sampleApp/platforms/android; ./gradlew app:connectedAndroidTest
72+
73+
ios_tests:
74+
macos:
75+
xcode: "10.2.0"
76+
working_directory: ~/project
77+
environment:
78+
FL_OUTPUT_DIR: output
79+
steps:
80+
- checkout:
81+
path: ~/project
82+
- run:
83+
name: download Cordova
84+
command: npm install -g cordova
85+
- run:
86+
name: Copy sampleApp
87+
command: cp -a sampleApp ../
88+
- run:
89+
name: chmod permissions
90+
command: cd ../; chmod -R 777 sampleApp
91+
- run:
92+
name: Npm Install
93+
command: cd ../sampleApp; npm install
94+
- run:
95+
name: Add Instabug
96+
command: cd ../sampleApp; cordova plugin add ../project
97+
- run:
98+
name: Build App
99+
command: cd ../sampleApp; cordova build ios
100+
- run:
101+
name: Build and run tests
102+
command: cd ../sampleApp/platforms/ios; xcodebuild -workspace HelloCordova.xcworkspace -scheme HelloCordova -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X,OS=12.2' test | xcpretty
103+
3104
publish:
4105
macos:
5106
xcode: "10.1.0"
@@ -13,8 +114,13 @@ workflows:
13114
version: 2
14115
publish:
15116
jobs:
117+
- android_tests
118+
- ios_tests
16119
- hold:
17120
type: approval
121+
requires:
122+
- android_tests
123+
- ios_tests
18124
filters:
19125
branches:
20126
only: master

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
*.settings
88
.idea/
99

10-
gradle/
11-
gradlew
12-
gradlew.bat
1310
local.properties
1411
node_modules/
1512

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v8.6.5 (2019-09-06)
2+
3+
* Fixes various android issues
4+
15
## v8.6.4 (2019-09-06)
26

37
* Fixes missing imports in android.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-cordova",
3-
"version": "8.6.4",
3+
"version": "8.6.5",
44
"description": "The purpose of this plugin is to simplify the process of integrating the Instabug SDK in a hybrid application, as well as to provide an interface to interfacing with the SDK through JavaScript.",
55
"main": "index.js",
66
"repository": {

sample-app/www/css/index.css

Lines changed: 0 additions & 127 deletions
This file was deleted.

sample-app/www/css/second.css

Lines changed: 0 additions & 33 deletions
This file was deleted.

sample-app/www/img/bg.png

-21.4 KB
Binary file not shown.

sample-app/www/index.html

Lines changed: 0 additions & 57 deletions
This file was deleted.

sample-app/www/js/instabugSample.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)