Skip to content

Commit

Permalink
Preparing initial alpha sdk release
Browse files Browse the repository at this point in the history
Compressing dev branch to discard irrelevant history
Removing development github action workflow files as they aren't suitable
  • Loading branch information
jasonconnery committed Feb 22, 2024
1 parent 776dc9b commit b28319a
Show file tree
Hide file tree
Showing 85 changed files with 5,804 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[*]
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab
indent_size = 4

48 changes: 48 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main","pages","alpha"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
builddocs:
name: "Xcode Generate Docs"
runs-on: [macOS]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Doc Pages
run: make make-doc-archive make-static-docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'docs/'
deploy:
needs: builddocs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pods/
.DS_Store
.AppleDouble
.LSOverride
xcuserdata/
build/
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
/docs/build/
betabuild.tmp/
3 changes: 3 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--disable redundantReturn
--enable isEmpty
--header "{file}\nHubspot Mobile SDK\n\nCopyright © {year} Hubspot, Inc."
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
78 changes: 78 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/HubspotMobileSDK.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1520"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "HubspotMobileSDK"
BuildableName = "HubspotMobileSDK"
BlueprintName = "HubspotMobileSDK"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "HubspotMobileSDKTests"
BuildableName = "HubspotMobileSDKTests"
BlueprintName = "HubspotMobileSDKTests"
ReferencedContainer = "container:">
</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 = "HubspotMobileSDK"
BuildableName = "HubspotMobileSDK"
BlueprintName = "HubspotMobileSDK"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

## [Unreleased]

### Added

- First alpha release




## [0.0.0] - 2024-01-01

### Added
### Changed
### Deprecated
### Removed
### Fixed
### Security
18 changes: 18 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Contributing

These are notes for anyone working on the SDK itself - if you are just looking to integrate the sdk , see README.md

## Public Header Documentation

Github actions is used to build a copy of the documentation from doc comments, and its hosted here: https://tapadoo.github.io/hubspot-mobile-sdk-ios/documentation/hubspotmobilesdk

## Developer dependencies

### Build Tools

SDK development environment is assumed to be using Xcode 15

### Formatting with Swiftformat

The `Makefile` tasks for formatting use [SwiftFormat](https://github.com/nicklockwood/SwiftFormat) , which it assumes is available. It's not added as a dependency to the SDK itself as its optional and only used during development, not shipped with the SDK.

3 changes: 3 additions & 0 deletions Demo/.swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--disable redundantReturn
--enable isEmpty
--header "{file}\nHubspot Mobile SDK Demo Application\n\nCopyright © {year} Hubspot, Inc."
Loading

0 comments on commit b28319a

Please sign in to comment.