-
Notifications
You must be signed in to change notification settings - Fork 205
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 #215 from bugsnag/v5-app-feature-agp4
Add test fixtures that run against AGP 4
- Loading branch information
Showing
40 changed files
with
169 additions
and
51 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
Feature: Plugin integrated in NDK app | ||
|
||
Scenario: NDK apps send requests | ||
When I build the NDK app | ||
Then I should receive 10 requests | ||
|
||
And the request 0 is valid for the Android Mapping API | ||
And the payload field "apiKey" equals "your-api-key-here" for request 0 | ||
|
||
And the request 1 is valid for the Android NDK Mapping API | ||
And the payload field "apiKey" equals "your-api-key-here" for request 1 | ||
And the payload field "projectRoot" is not null for request 1 | ||
And the payload field "arch" equals "armeabi-v7a" for request 1 | ||
|
||
And the request 2 is valid for the Android NDK Mapping API | ||
And the payload field "apiKey" equals "your-api-key-here" for request 2 | ||
And the payload field "projectRoot" is not null for request 2 | ||
And the payload field "arch" equals "armeabi-v7a" for request 2 | ||
|
||
And the request 3 is valid for the Android NDK Mapping API | ||
And the payload field "apiKey" equals "your-api-key-here" for request 3 | ||
And the payload field "projectRoot" is not null for request 3 | ||
And the payload field "arch" equals "x86_64" for request 3 | ||
|
||
And the request 4 is valid for the Android NDK Mapping API | ||
And the payload field "apiKey" equals "your-api-key-here" for request 4 | ||
And the payload field "projectRoot" is not null for request 4 | ||
And the payload field "arch" equals "x86_64" for request 4 | ||
|
||
And the request 5 is valid for the Android NDK Mapping API | ||
And the payload field "apiKey" equals "your-api-key-here" for request 5 | ||
And the payload field "projectRoot" is not null for request 5 | ||
And the payload field "arch" equals "arm64-v8a" for request 5 | ||
|
||
And the request 6 is valid for the Android NDK Mapping API | ||
And the payload field "apiKey" equals "your-api-key-here" for request 6 | ||
And the payload field "projectRoot" is not null for request 6 | ||
And the payload field "arch" equals "arm64-v8a" for request 6 | ||
|
||
And the request 7 is valid for the Android NDK Mapping API | ||
And the payload field "apiKey" equals "your-api-key-here" for request 7 | ||
And the payload field "projectRoot" is not null for request 7 | ||
And the payload field "arch" equals "x86" for request 7 | ||
|
||
And the request 8 is valid for the Android NDK Mapping API | ||
And the payload field "apiKey" equals "your-api-key-here" for request 8 | ||
And the payload field "projectRoot" is not null for request 8 | ||
And the payload field "arch" equals "x86" for request 8 | ||
|
||
And the request 9 is valid for the Build API | ||
And the payload field "appVersion" equals "1.0" for request 9 | ||
And the payload field "apiKey" equals "your-api-key-here" for request 9 | ||
And the payload field "builderName" is not null for request 9 | ||
And the payload field "buildTool" equals "gradle-android" for request 9 | ||
And the payload field "appVersionCode" equals "1" for request 9 | ||
|
||
Scenario: Custom projectRoot is added to payload | ||
When I set environment variable "PROJECT_ROOT" to "/repos/custom/my-app" | ||
When I build the NDK app | ||
Then I should receive 10 requests | ||
|
||
And the request 0 is valid for the Android Mapping API | ||
|
||
And the request 1 is valid for the Android NDK Mapping API | ||
And the payload field "projectRoot" equals "/repos/custom/my-app" for request 1 | ||
|
||
And the request 2 is valid for the Android NDK Mapping API | ||
And the payload field "projectRoot" equals "/repos/custom/my-app" for request 2 | ||
|
||
And the request 3 is valid for the Android NDK Mapping API | ||
And the payload field "projectRoot" equals "/repos/custom/my-app" for request 3 | ||
|
||
And the request 4 is valid for the Android NDK Mapping API | ||
And the payload field "projectRoot" equals "/repos/custom/my-app" for request 4 | ||
|
||
And the request 5 is valid for the Android NDK Mapping API | ||
And the payload field "projectRoot" equals "/repos/custom/my-app" for request 5 | ||
|
||
And the request 6 is valid for the Android NDK Mapping API | ||
And the payload field "projectRoot" equals "/repos/custom/my-app" for request 6 | ||
|
||
And the request 7 is valid for the Android NDK Mapping API | ||
And the payload field "projectRoot" equals "/repos/custom/my-app" for request 7 | ||
|
||
And the request 8 is valid for the Android NDK Mapping API | ||
And the payload field "projectRoot" equals "/repos/custom/my-app" for request 8 | ||
|
||
And the request 9 is valid for the Build API | ||
|
||
# Sets a non-existent objdump location for x86 and arm64-v8a, delivery should proceed as normal for other files | ||
Scenario: Custom objdump location | ||
When I set environment variable "OBJDUMP_LOCATION" to "/fake/objdump" | ||
When I build the NDK app | ||
Then I should receive 6 requests | ||
|
||
And the request 0 is valid for the Android Mapping API | ||
|
||
And the request 1 is valid for the Android NDK Mapping API | ||
And the payload field "arch" equals "armeabi-v7a" for request 1 | ||
|
||
And the request 2 is valid for the Android NDK Mapping API | ||
And the payload field "arch" equals "armeabi-v7a" for request 2 | ||
|
||
And the request 3 is valid for the Android NDK Mapping API | ||
And the payload field "arch" equals "x86_64" for request 3 | ||
|
||
And the request 4 is valid for the Android NDK Mapping API | ||
And the payload field "arch" equals "x86_64" for request 4 | ||
|
||
And the request 5 is valid for the Build API |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
7 changes: 7 additions & 0 deletions
7
features/fixtures/ndkapp/app/src/main/java/com/example/Bar.java
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,7 @@ | ||
package com.example; | ||
|
||
public class Bar { | ||
public String doSomething() { | ||
return "Hello World"; | ||
} | ||
} |
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,2 +1,3 @@ | ||
android.useAndroidX=true | ||
org.gradle.jvmargs=-Xmx1536m | ||
plugin_version=9000.0.0-test |
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
features/fixtures/ndkapp/gradle/wrapper/gradle-wrapper.properties
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
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
+3.63 KB
(110%)
features/fixtures/rnapp/android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
features/fixtures/rnapp/android/gradle/wrapper/gradle-wrapper.properties
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Build test app | ||
cd features/fixtures/ndkapp | ||
./gradlew :app:clean :app:build -x lint \ | ||
--stacktrace --refresh-dependencies | ||
cd $NDK_FIXTURE_DIR | ||
echo "Test fixture used: $NDK_FIXTURE_DIR" | ||
./gradlew :app:clean :app:assemble -x lint --stacktrace |
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,5 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd features/fixtures/rnapp/android | ||
cd $RN_FIXTURE_DIR | ||
echo "Test fixture used: $RN_FIXTURE_DIR" | ||
npm install | ||
./gradlew :app:clean :app:build -x lint --stacktrace | ||
./gradlew :app:clean :app:assemble -x lint --stacktrace |
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,4 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd features/fixtures/app | ||
cd $APP_FIXTURE_DIR | ||
echo "Test fixture used: $APP_FIXTURE_DIR" | ||
./gradlew :module:clean :module:bundleFoo -x lint --stacktrace |
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,3 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
./gradlew clean build install -x groovyDoc -x codenarcMain -x codenarcTest -x test -PlocalVersion=9000.0.0-test | ||
./gradlew build install -x groovyDoc -x codenarcMain -x codenarcTest -x test -PlocalVersion=9000.0.0-test |
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
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
Oops, something went wrong.