Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Aug 5, 2022
2 parents 0c741c7 + fffb02b commit 878a1e8
Show file tree
Hide file tree
Showing 16 changed files with 222 additions and 128 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ env:
jobs:

GradleBuild:
runs-on: macos-latest
runs-on: macos-12
outputs:
status: ${{ steps.status.outputs.status }}
steps:
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
run: echo "::set-output name=status::success"

XCodeBuild:
runs-on: macos-latest
runs-on: macos-12
outputs:
status: ${{ steps.status.outputs.status }}
steps:
Expand Down Expand Up @@ -116,12 +116,6 @@ jobs:
with:
java-version: 11

- name: Install Cocoapods
run: |
./gradlew client:podGenIOS res:podGenIOS --parallel
cd ios/CCC
pod install --repo-update
- name: Build
uses: maierj/[email protected]
with:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ jobs:
run: echo "::set-output name=status::success"

PublishAppStore:
runs-on: macos-latest
runs-on: macos-12
outputs:
status: ${{ steps.status.outputs.status }}
steps:
Expand All @@ -206,12 +206,6 @@ jobs:
echo "${{ secrets.IOS_GPG_RELEASE_XCCONFIG }}" > Release.xcconfig.asc
gpg -d --passphrase "${{ secrets.SECRET_PASSWORD }}" --batch Release.xcconfig.asc > ios/CCC/Resources/Release.xcconfig
- name: Install Cocoapods
run: |
./gradlew client:podGenIOS res:podGenIOS --parallel
cd ios/CCC
pod install --repo-update
- name: Publish
uses: maierj/[email protected]
with:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:

DistributeIOS:

runs-on: macos-latest
runs-on: macos-12
outputs:
status: ${{ steps.status.outputs.status }}
steps:
Expand All @@ -104,12 +104,6 @@ jobs:
echo "${{ secrets.IOS_GPG_RELEASE_XCCONFIG }}" > Release.xcconfig.asc
gpg -d --passphrase "${{ secrets.SECRET_PASSWORD }}" --batch Release.xcconfig.asc > ios/CCC/Resources/Release.xcconfig
- name: Install Cocoapods
run: |
./gradlew client:podGenIOS res:podGenIOS --parallel
cd ios/CCC
pod install --repo-update
- name: Distrubute
uses: maierj/[email protected]
with:
Expand Down
1 change: 0 additions & 1 deletion buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ object Dependencies {
const val ANDROID = "android"
const val ANDROID_APP = "com.android.application"
const val ANDROID_LIB = "com.android.library"
const val COCOAPODS = "native.cocoapods"
const val BUILD_KONFIG = "com.codingfeline.buildkonfig"
const val CRASHLYTICS = "com.google.firebase.crashlytics"
const val GOOGLE_SERVICES = "com.google.gms.google-services"
Expand Down
1 change: 0 additions & 1 deletion client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
build
.gradle
client.podspec
17 changes: 7 additions & 10 deletions client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
with(Dependencies.Plugins) {
kotlin(MULTIPLATFORM)
kotlin(COCOAPODS)
id(ANDROID_LIB)
id(SQL_DELIGHT)
id(BUILD_KONFIG)
Expand All @@ -23,16 +22,14 @@ version = ProjectSettings.getVersionName(project)
kotlin {
android()

iosX64()
iosArm64()
iosSimulatorArm64()

cocoapods {
summary = "CCC"
homepage = "https://github.com/CurrencyConverterCalculator/CCC"
ios.deploymentTarget = "14.0"
framework {
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "Client"
isStatic = true
}
}

Expand Down
6 changes: 1 addition & 5 deletions ios/.gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
Pods/
build
CCC/Resources/GoogleService-Info.plist
CCC/Resources/Release.xcconfig
fastlane/.env
fastlane/README.md
fastlane/report.xml
xcuserdata

# TODO it is a workaround remove when Xcode & SPM bug fixed
/CCC.xcworkspace/xcshareddata/swiftpm/Package.resolved
xcuserdata
2 changes: 0 additions & 2 deletions ios/.swiftlint.yml

This file was deleted.

68 changes: 30 additions & 38 deletions ios/CCC.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
objects = {

/* Begin PBXBuildFile section */
15A796074B10DEA83142F40F /* Pods_CCC.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 341CA58575E08166F616E331 /* Pods_CCC.framework */; };
5C039FD625C1B705008350A3 /* FormProgressView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C039FD525C1B705008350A3 /* FormProgressView.swift */; };
5C17581A25BC74BD00D16BD9 /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C17581925BC74BD00D16BD9 /* SettingsView.swift */; };
5C314CBE25BA0AC0007B22D8 /* CurrenciesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5C314CBD25BA0AC0007B22D8 /* CurrenciesView.swift */; };
Expand Down Expand Up @@ -69,7 +68,6 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
341CA58575E08166F616E331 /* Pods_CCC.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CCC.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5C039FD525C1B705008350A3 /* FormProgressView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FormProgressView.swift; sourceTree = "<group>"; };
5C17581925BC74BD00D16BD9 /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
5C314CBD25BA0AC0007B22D8 /* CurrenciesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CurrenciesView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -114,8 +112,6 @@
7555FF84242A565B00829871 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
7555FF87242A565B00829871 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
7555FF8C242A565B00829871 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CB3F2CB9B5D0920F890DA73A /* Pods-CCC.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CCC.debug.xcconfig"; path = "Target Support Files/Pods-CCC/Pods-CCC.debug.xcconfig"; sourceTree = "<group>"; };
FF1FD2425A9A57DA8C484F81 /* Pods-CCC.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CCC.release.xcconfig"; path = "Target Support Files/Pods-CCC/Pods-CCC.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -124,7 +120,6 @@
buildActionMask = 2147483647;
files = (
5C3EB6D828775AFF001E822A /* GoogleMobileAds in Frameworks */,
15A796074B10DEA83142F40F /* Pods_CCC.framework in Frameworks */,
5C3EB6D528775993001E822A /* SwiftMessages in Frameworks */,
5C3EB6DD28775F12001E822A /* FirebaseCrashlytics in Frameworks */,
5C3EB6DB28775F12001E822A /* FirebaseAnalytics in Frameworks */,
Expand Down Expand Up @@ -273,8 +268,6 @@
children = (
7555FF7D242A565900829871 /* CCC */,
7555FF7C242A565900829871 /* Products */,
7555FFB0242A642200829871 /* Frameworks */,
E1A41654A700B91B0C52E7DE /* Pods */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -307,36 +300,19 @@
path = "Preview Content";
sourceTree = "<group>";
};
7555FFB0242A642200829871 /* Frameworks */ = {
isa = PBXGroup;
children = (
341CA58575E08166F616E331 /* Pods_CCC.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
E1A41654A700B91B0C52E7DE /* Pods */ = {
isa = PBXGroup;
children = (
CB3F2CB9B5D0920F890DA73A /* Pods-CCC.debug.xcconfig */,
FF1FD2425A9A57DA8C484F81 /* Pods-CCC.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
7555FF7A242A565900829871 /* CCC */ = {
isa = PBXNativeTarget;
buildConfigurationList = 7555FFA5242A565B00829871 /* Build configuration list for PBXNativeTarget "CCC" */;
buildPhases = (
ABAB7B6EBA5C48167F3A008C /* [CP] Check Pods Manifest.lock */,
7555FFB5242A651A00829871 /* ShellScript */,
7555FF77242A565900829871 /* Sources */,
7555FF78242A565900829871 /* Frameworks */,
7555FF79242A565900829871 /* Resources */,
7555FFB4242A642300829871 /* Embed Frameworks */,
5C3BC744289D7B2C009F1073 /* Firebase Crashlytics */,
);
buildRules = (
);
Expand Down Expand Up @@ -408,44 +384,42 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
7555FFB5242A651A00829871 /* ShellScript */ = {
5C3BC744289D7B2C009F1073 /* Firebase Crashlytics */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 12;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}",
"$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)",
);
name = "Firebase Crashlytics";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which swiftlint >/dev/null; then\n swiftlint --no-cache\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n\ncd \"$SRCROOT/..\"\n\n\"$SRCROOT/../gradlew\" -p \"$SRCROOT/../\" :res:copyFrameworkResourcesToApp \\\n -Pmoko.resources.PLATFORM_NAME=$PLATFORM_NAME \\\n -Pmoko.resources.CONFIGURATION=$CONFIGURATION \\\n -Pmoko.resources.BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR \\\n -Pmoko.resources.CONTENTS_FOLDER_PATH=$CONTENTS_FOLDER_PATH\n";
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\n\nif [ \"${CONFIGURATION}\" = \"Release\" ]; then\n \"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run\"\nfi\n";
};
ABAB7B6EBA5C48167F3A008C /* [CP] Check Pods Manifest.lock */ = {
7555FFB5242A651A00829871 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
buildActionMask = 12;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-CCC-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
shellScript = "if which swiftlint >/dev/null; then\n swiftlint --no-cache\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n\ncd \"$SRCROOT/..\"\n\n./gradlew :client:embedAndSignAppleFrameworkForXcode\n\n./gradlew :res:embedAndSignAppleFrameworkForXcode\n\n\"$SRCROOT/../gradlew\" -p \"$SRCROOT/../\" :res:copyFrameworkResourcesToApp \\\n -Pmoko.resources.PLATFORM_NAME=$PLATFORM_NAME \\\n -Pmoko.resources.CONFIGURATION=$CONFIGURATION \\\n -Pmoko.resources.BUILT_PRODUCTS_DIR=$BUILT_PRODUCTS_DIR \\\n -Pmoko.resources.CONTENTS_FOLDER_PATH=$CONTENTS_FOLDER_PATH\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -616,13 +590,17 @@
};
7555FFA6242A565B00829871 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = CB3F2CB9B5D0920F890DA73A /* Pods-CCC.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "\"CCC/Preview Content\"";
DEVELOPMENT_TEAM = Q5WB95G58X;
ENABLE_PREVIEWS = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../client/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
"$(SRCROOT)/../res/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
);
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
INFOPLIST_FILE = CCC/Resources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -632,6 +610,11 @@
OTHER_LDFLAGS = (
"$(inherited)",
"-lsqlite3",
"-framework",
client,
"-framework",
res,
"-ObjC",
);
PRODUCT_BUNDLE_IDENTIFIER = com.oztechan.ccc;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -642,13 +625,17 @@
};
7555FFA7242A565B00829871 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = FF1FD2425A9A57DA8C484F81 /* Pods-CCC.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "\"CCC/Preview Content\"";
DEVELOPMENT_TEAM = Q5WB95G58X;
ENABLE_PREVIEWS = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../client/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
"$(SRCROOT)/../res/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
);
INFOPLIST_FILE = CCC/Resources/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -657,6 +644,11 @@
OTHER_LDFLAGS = (
"$(inherited)",
"-lsqlite3",
"-framework",
client,
"-framework",
res,
"-ObjC",
);
PRODUCT_BUNDLE_IDENTIFIER = com.oztechan.ccc;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"pins" : [
{
"identity" : "swiftmessages",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SwiftKickMobile/SwiftMessages",
"state" : {
"revision" : "b29dd21090b708aa0ae9ecbaf6e2d0487028dc3f",
"version" : "9.0.6"
}
},
{
"identity" : "swiftui-navigation-stack",
"kind" : "remoteSourceControl",
"location" : "https://github.com/matteopuc/swiftui-navigation-stack",
"state" : {
"revision" : "be0db68ed0d84ed543bf8f7600a1f84de015f753",
"version" : "1.0.4"
}
}
],
"version" : 2
}
5 changes: 1 addition & 4 deletions ios/CCC.xcworkspace/contents.xcworkspacedata

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

Loading

0 comments on commit 878a1e8

Please sign in to comment.