Skip to content

Commit

Permalink
test: basic setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejpeters committed Oct 12, 2019
1 parent bbf3349 commit e8191ba
Show file tree
Hide file tree
Showing 6 changed files with 159 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
before_install: nvm install 12
install: npm ci

matrix:
include:
- language: android
dist: trusty
android:
components:
- tools
- build-tools-28.0.3
- android-28
before_script:
- cd android
script: ./gradlew build test

- language: objective-c
xcode_workspace: ios/Plugin.xcworkspace
xcode_scheme: Plugin
xcode_destination: platform=iOS Simulator,OS=11.4,name=iPhone X
install:
- npm ci
- pod install --project-directory=ios
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# capacitor-branch-deep-links
# capacitor-branch-deep-links

[![Build Status](https://travis-ci.org/boundstate/capacitor-branch-deep-links.svg?branch=master)](https://travis-ci.org/boundstate/capacitor-branch-deep-links)

Capacitor plugin for [branch.io](https://branch.io/) deep links.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.getcapacitor.android;
package co.boundstate.android;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
Expand All @@ -21,6 +21,6 @@ public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.getcapacitor.android", appContext.getPackageName());
assertEquals("co.boundstate.android", appContext.getPackageName());
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.getcapacitor;
package co.boundstate;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public class ExampleUnitTest {
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
}
77 changes: 77 additions & 0 deletions ios/Plugin.xcodeproj/xcshareddata/xcschemes/Plugin.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1100"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "50ADFF87201F53D600D50D53"
BuildableName = "Plugin.framework"
BlueprintName = "Plugin"
ReferencedContainer = "container:Plugin.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "50ADFF90201F53D600D50D53"
BuildableName = "PluginTests.xctest"
BlueprintName = "PluginTests"
ReferencedContainer = "container:Plugin.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "50ADFF87201F53D600D50D53"
BuildableName = "Plugin.framework"
BlueprintName = "Plugin"
ReferencedContainer = "container:Plugin.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
52 changes: 52 additions & 0 deletions ios/Plugin.xcodeproj/xcshareddata/xcschemes/PluginTests.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1100"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "50ADFF90201F53D600D50D53"
BuildableName = "PluginTests.xctest"
BlueprintName = "PluginTests"
ReferencedContainer = "container:Plugin.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

0 comments on commit e8191ba

Please sign in to comment.