Skip to content

Commit

Permalink
Rename to flagsmith (#6)
Browse files Browse the repository at this point in the history
* Renaming to Flagsmith

* Renaming to Flagsmith

* Renaming to Flagsmith additions
  • Loading branch information
wicheda authored Jul 1, 2021
1 parent 59d04e4 commit d132797
Show file tree
Hide file tree
Showing 47 changed files with 470 additions and 390 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "BulletTrainClient_Example.app"
BlueprintName = "BulletTrainClient_Example"
ReferencedContainer = "container:BulletTrainClient.xcodeproj">
BuildableName = "FlagsmithClient_Example.app"
BlueprintName = "FlagsmithClient_Example"
ReferencedContainer = "container:FlagsmithClient.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
Expand All @@ -31,7 +31,7 @@
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "BulletTrainClient_Tests.xctest"
BlueprintName = "BulletTrainClient_Tests"
ReferencedContainer = "container:BulletTrainClient.xcodeproj">
ReferencedContainer = "container:FlagsmithClient.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -41,6 +41,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "FlagsmithClient_Example.app"
BlueprintName = "FlagsmithClient_Example"
ReferencedContainer = "container:FlagsmithClient.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -49,21 +58,10 @@
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "BulletTrainClient_Tests.xctest"
BlueprintName = "BulletTrainClient_Tests"
ReferencedContainer = "container:BulletTrainClient.xcodeproj">
ReferencedContainer = "container:FlagsmithClient.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "BulletTrainClient_Example.app"
BlueprintName = "BulletTrainClient_Example"
ReferencedContainer = "container:BulletTrainClient.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -80,13 +78,11 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "BulletTrainClient_Example.app"
BlueprintName = "BulletTrainClient_Example"
ReferencedContainer = "container:BulletTrainClient.xcodeproj">
BuildableName = "FlagsmithClient_Example.app"
BlueprintName = "FlagsmithClient_Example"
ReferencedContainer = "container:FlagsmithClient.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand All @@ -99,9 +95,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "BulletTrainClient_Example.app"
BlueprintName = "BulletTrainClient_Example"
ReferencedContainer = "container:BulletTrainClient.xcodeproj">
BuildableName = "FlagsmithClient_Example.app"
BlueprintName = "FlagsmithClient_Example"
ReferencedContainer = "container:FlagsmithClient.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "FlagsmithClient_Example.app"
BlueprintName = "FlagsmithClient_Example"
ReferencedContainer = "container:FlagsmithClient.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</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">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "FlagsmithClient_Example.app"
BlueprintName = "FlagsmithClient_Example"
ReferencedContainer = "container:FlagsmithClient.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "FlagsmithClient_Example.app"
BlueprintName = "FlagsmithClient_Example"
ReferencedContainer = "container:FlagsmithClient.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// AppDelegate.swift
// BulletTrainClient
// FlagsmithClient
//
// Created by Tomash Tsiupiak on 06/20/2019.
// Copyright (c) 2019 Tomash Tsiupiak. All rights reserved.
//

import UIKit
import BulletTrainClient
import FlagsmithClient

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand All @@ -17,14 +17,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
BulletTrain.shared.apiKey = "<add your API key from the Bullet Train settings page>"
BulletTrain.shared.getFeatureFlags() { (result) in
Flagsmith.shared.apiKey = "<add your API key from the Flagsmith settings page>"
Flagsmith.shared.getFeatureFlags() { (result) in
print(result)
}
BulletTrain.shared.hasFeatureFlag(withID: "freeze_delinquent_accounts") { (result) in
Flagsmith.shared.hasFeatureFlag(withID: "freeze_delinquent_accounts") { (result) in
print(result)
}
//BulletTrain.shared.setTrait(Trait(key: "<my_key>", value: "<my_value>"), forIdentity: "<my_identity>") { (result) in print(result) }
//Flagsmith.shared.setTrait(Trait(key: "<my_key>", value: "<my_value>"), forIdentity: "<my_identity>") { (result) in print(result) }
return true
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
Expand All @@ -18,13 +14,13 @@
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2019 SolidStateGroup. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
<rect key="frame" x="20" y="439" width="440" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="textColor" systemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="BulletTrainClient" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="139.5" width="440" height="43"/>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="FlagsmithClient" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="140" width="440" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="textColor" systemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
Expand All @@ -42,4 +38,9 @@
<point key="canvasLocation" x="548" y="455"/>
</view>
</objects>
<resources>
<systemColor name="darkTextColor">
<color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// ViewController.swift
// BulletTrainClient
// FlagsmithClient
//
// Created by Tomash Tsiupiak on 06/20/2019.
// Copyright (c) 2019 Tomash Tsiupiak. All rights reserved.
//

import UIKit
import BulletTrainClient
import FlagsmithClient

class ViewController: UIViewController {

Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use_frameworks!

target 'BulletTrainClient_Example' do
pod 'BulletTrainClient', :path => '../'
target 'FlagsmithClient_Example' do
pod 'FlagsmithClient', :path => '../'
end
10 changes: 5 additions & 5 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
PODS:
- BulletTrainClient (1.0.1)
- FlagsmithClient (1.0.1)

DEPENDENCIES:
- BulletTrainClient (from `../`)
- FlagsmithClient (from `../`)

EXTERNAL SOURCES:
BulletTrainClient:
FlagsmithClient:
:path: "../"

SPEC CHECKSUMS:
BulletTrainClient: c21ea61bd2a7da9292404e5f45903e3a7ad78d2f
FlagsmithClient: 01cd05463f73c9ec832599666cac03cfabb857fa

PODFILE CHECKSUM: be7a2446bc362d87dab4e909a6d3abf808921b04
PODFILE CHECKSUM: 9fc876dee0cf031cae843156b0740a94b4994d8c

COCOAPODS: 1.10.0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d132797

Please sign in to comment.