Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion example-app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ android {
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
// shrinkResources is not on by default on Capacitor 9;
// turned on to test situations where consuming apps may turn it on.
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down
10 changes: 5 additions & 5 deletions example-app/android/variables.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ ext {
compileSdkVersion = 37
targetSdkVersion = 37
androidxActivityVersion = '1.13.0'
androidxAppCompatVersion = '1.7.1'
androidxAppCompatVersion = '1.8.0'
androidxCoordinatorLayoutVersion = '1.3.0'
androidxCoreVersion = '1.19.0'
androidxFragmentVersion = '1.8.9'
androidxCoreVersion = '1.19.1'
androidxFragmentVersion = '1.9.1'
coreSplashScreenVersion = '1.2.0'
androidxWebkitVersion = '1.16.0'
androidxWebkitVersion = '1.17.1'
junitVersion = '4.13.2'
androidxJunitVersion = '1.3.0'
androidxEspressoCoreVersion = '3.7.0'
cordovaAndroidVersion = '15.0.0'
cordovaAndroidVersion = '15.1.0'
}
20 changes: 20 additions & 0 deletions example-app/ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
};
name = Debug;
};
Expand Down Expand Up @@ -284,6 +289,11 @@
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
};
name = Release;
};
Expand All @@ -306,6 +316,11 @@
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
};
name = Debug;
};
Expand All @@ -327,6 +342,11 @@
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
};
name = Release;
};
Expand Down
8 changes: 8 additions & 0 deletions example-app/ios/App/App/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import UIKit
import Capacitor

class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
Expand All @@ -14,4 +15,11 @@ class AppDelegate: NSObject, UIApplicationDelegate {
configuration.delegateClass = SceneDelegate.self
return configuration
}

func application(
_ application: UIApplication,
supportedInterfaceOrientationsFor window: UIWindow?
) -> UIInterfaceOrientationMask {
ApplicationDelegateProxy.shared.application(application, supportedInterfaceOrientationsFor: window)
}
}
1 change: 1 addition & 0 deletions example-app/ios/App/CapApp-SPM/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ DerivedData/
.swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
/Package.resolved
4 changes: 2 additions & 2 deletions example-app/ios/App/CapApp-SPM/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
targets: ["CapApp-SPM"])
],
dependencies: [
.package(url: "https://github.com/ionic-team/capacitor", exact: "9.0.0-alpha.8"),
.package(name: "capacitor-ios", path: "../../../node_modules/@capacitor/ios"),
.package(name: "CapacitorApp", path: "../../../node_modules/@capacitor/app"),
.package(name: "CapacitorCamera", path: "../../../.."),
.package(name: "CapacitorFilesystem", path: "../../../node_modules/@capacitor/filesystem"),
Expand All @@ -21,7 +21,7 @@ let package = Package(
.target(
name: "CapApp-SPM",
dependencies: [
.product(name: "Capacitor", package: "capacitor"),
.product(name: "Capacitor", package: "capacitor-ios"),
.product(name: "CapacitorApp", package: "CapacitorApp"),
.product(name: "CapacitorCamera", package: "CapacitorCamera"),
.product(name: "CapacitorFilesystem", package: "CapacitorFilesystem"),
Expand Down
Loading