From 9445865b0fc3bdfb21a8ffa459edf52dbe419b32 Mon Sep 17 00:00:00 2001 From: Raymond Guittonneau Date: Wed, 2 Oct 2024 16:28:34 +0200 Subject: [PATCH] feat(ec547): add Tests for DisabledDarkModeCheck Rule --- .../io/ecocode/ios/pbxproj/TestHelper.java | 46 ++ .../ios/pbxproj/checks/CheckTestHelper.java | 46 ++ .../sobriety/DisabledDarkModeCheckTest.java | 65 +++ .../DisabledDarkModeCheck_light.pbxproj | 402 ++++++++++++++++++ ...sabledDarkModeCheckliant_automatic.pbxproj | 402 ++++++++++++++++++ .../DisabledDarkModeCheckliant_no_key.pbxproj | 400 +++++++++++++++++ 6 files changed, 1361 insertions(+) create mode 100644 pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/TestHelper.java create mode 100644 pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/checks/CheckTestHelper.java create mode 100644 pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/checks/sobriety/DisabledDarkModeCheckTest.java create mode 100644 pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheck_light.pbxproj create mode 100644 pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheckliant_automatic.pbxproj create mode 100644 pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheckliant_no_key.pbxproj diff --git a/pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/TestHelper.java b/pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/TestHelper.java new file mode 100644 index 0000000..49e3265 --- /dev/null +++ b/pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/TestHelper.java @@ -0,0 +1,46 @@ +/* + * ecoCode iOS plugin - Help the earth, adopt this green plugin for your applications + * Copyright © 2023 green-code-initiative (https://www.ecocode.io/) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package io.ecocode.ios.pbxproj; + +import org.sonar.api.batch.fs.InputFile; +import org.sonar.api.batch.fs.internal.DefaultInputFile; +import org.sonar.api.batch.fs.internal.TestInputFileBuilder; +import org.sonar.api.batch.sensor.internal.SensorContextTester; + +import java.io.File; +import java.nio.file.Paths; + +public class TestHelper { + + private static final String TEST_ROOT = "src/test/resources"; + private static final int LINE_COUNT = 1000; + + public static SensorContextTester testFile(String relativePath) { + SensorContextTester context = SensorContextTester.create(new File(TEST_ROOT)); + DefaultInputFile testFile = new TestInputFileBuilder("", relativePath) + .setType(InputFile.Type.MAIN) + .setLines(LINE_COUNT) + .setOriginalLineEndOffsets(new int[LINE_COUNT]) + .setOriginalLineStartOffsets(new int[LINE_COUNT]) + .setModuleBaseDir(Paths.get(TEST_ROOT)) + .setLanguage(PbxprojLanguage.KEY).build(); + context.fileSystem().add(testFile); + + return context; + } +} diff --git a/pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/checks/CheckTestHelper.java b/pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/checks/CheckTestHelper.java new file mode 100644 index 0000000..6c314e2 --- /dev/null +++ b/pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/checks/CheckTestHelper.java @@ -0,0 +1,46 @@ +/* + * ecoCode iOS plugin - Help the earth, adopt this green plugin for your applications + * Copyright © 2023 green-code-initiative (https://www.ecocode.io/) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package io.ecocode.ios.pbxproj.checks; + +import io.ecocode.ios.antlr.ParseTreeAnalyzer; +import io.ecocode.ios.checks.DefaultRuleLoader; +import io.ecocode.ios.checks.RuleLoader; +import io.ecocode.ios.pbxproj.EcoCodePbxprojVisitor; +import io.ecocode.ios.pbxproj.PbxprojLanguage; +import io.ecocode.ios.pbxproj.PbxprojRuleCheck; +import io.ecocode.ios.pbxproj.antlr.PbxprojAntlrContext; +import io.ecocode.ios.pbxproj.TestHelper; + +import org.reflections.Reflections; +import org.sonar.api.batch.fs.InputFile; +import org.sonar.api.batch.sensor.internal.SensorContextTester; + +public class CheckTestHelper { + + + public static SensorContextTester analyzeTestFile(String relativePath) { + SensorContextTester context = TestHelper.testFile(relativePath); + + final PbxprojAntlrContext antlrContext = new PbxprojAntlrContext(); + RuleLoader ruleLoader = new DefaultRuleLoader(PbxprojRuleCheck.class, new Reflections("io.ecocode.ios.pbxproj.checks")); + new ParseTreeAnalyzer(PbxprojLanguage.KEY, InputFile.Type.MAIN, antlrContext, context) + .analyze(new EcoCodePbxprojVisitor(ruleLoader)); + + return context; + } +} diff --git a/pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/checks/sobriety/DisabledDarkModeCheckTest.java b/pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/checks/sobriety/DisabledDarkModeCheckTest.java new file mode 100644 index 0000000..ad9295b --- /dev/null +++ b/pbxproj-lang/src/test/java/io/ecocode/ios/pbxproj/checks/sobriety/DisabledDarkModeCheckTest.java @@ -0,0 +1,65 @@ +/* + * ecoCode iOS plugin - Help the earth, adopt this green plugin for your applications + * Copyright © 2023 green-code-initiative (https://www.ecocode.io/) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package io.ecocode.ios.pbxproj.checks.sobriety; + +import org.junit.Test; +import org.sonar.api.batch.sensor.internal.SensorContextTester; +import org.sonar.api.batch.sensor.issue.Issue; +import static org.junit.Assert.assertEquals; + +import java.util.List; + +import io.ecocode.ios.pbxproj.checks.CheckTestHelper; + +public class DisabledDarkModeCheckTest { + private static final String TEST_CASE_PBXPROJ_UIUSERINTERFACESTYLE_LIGHT = "checks/sobriety/DisabledDarkModeCheck_light.pbxproj"; + private static final String TEST_CASE_PBXPROJ_UIUSERINTERFACESTYLE_AUTOMATIC = "checks/sobriety/DisabledDarkModeCheckliant_automatic.pbxproj"; + private static final String TEST_CASE_PBXPROJ_UIUSERINTERFACESTYLE_NO_KEY = "checks/sobriety/DisabledDarkModeCheckliant_no_key.pbxproj"; + + @Test + public void disabledDarkModeCheckTest_forcedLightMode_shouldTrigger(){ + SensorContextTester context = CheckTestHelper.analyzeTestFile(TEST_CASE_PBXPROJ_UIUSERINTERFACESTYLE_LIGHT); + List issues = context.allIssues().stream().toList(); + assertEquals(2, issues.size()); + + Issue firstIssue = issues.get(0); + assertEquals("EC547", firstIssue.ruleKey().rule()); + assertEquals("ecoCode-pbxproj", firstIssue.ruleKey().repository()); + assertEquals(334, firstIssue.primaryLocation().textRange().start().line()); + + Issue secondIssue = issues.get(1); + assertEquals("EC547", secondIssue.ruleKey().rule()); + assertEquals("ecoCode-pbxproj", secondIssue.ruleKey().repository()); + assertEquals(364, secondIssue.primaryLocation().textRange().start().line()); + } + + @Test + public void disabledDarkModeCheckTest_automaticMode_shouldNotTrigger(){ + SensorContextTester context = CheckTestHelper.analyzeTestFile(TEST_CASE_PBXPROJ_UIUSERINTERFACESTYLE_AUTOMATIC); + List issues = context.allIssues().stream().toList(); + assertEquals(0, issues.size()); + } + + @Test + public void disabledDarkModeCheckTest_noKey_shouldNotTrigger(){ + SensorContextTester context = CheckTestHelper.analyzeTestFile(TEST_CASE_PBXPROJ_UIUSERINTERFACESTYLE_NO_KEY); + List issues = context.allIssues().stream().toList(); + assertEquals(0, issues.size()); + } +} diff --git a/pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheck_light.pbxproj b/pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheck_light.pbxproj new file mode 100644 index 0000000..ba96d17 --- /dev/null +++ b/pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheck_light.pbxproj @@ -0,0 +1,402 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 331133DF29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331133DE29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift */; }; + 33923C7529DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33923C7429DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift */; }; + 33DD6BD929E0206900F30347 /* RigidAlarmCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33DD6BD829E0206900F30347 /* RigidAlarmCheckTest.swift */; }; + 5711116929DDC8840061F65D /* BrightnessOverrideCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5711116829DDC8840061F65D /* BrightnessOverrideCheckTest.swift */; }; + 63062B0029DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63062AFF29DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift */; }; + 89F0B3872988050100A7F601 /* ecoCodeTestAppApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89F0B3862988050100A7F601 /* ecoCodeTestAppApp.swift */; }; + 89F0B3892988050100A7F601 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89F0B3882988050100A7F601 /* ContentView.swift */; }; + 89F0B38B2988050100A7F601 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 89F0B38A2988050100A7F601 /* Assets.xcassets */; }; + 89F0B38E2988050100A7F601 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 89F0B38D2988050100A7F601 /* Preview Assets.xcassets */; }; + 89F0B3952988056D00A7F601 /* IdleTimerDisabledCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89F0B3942988056D00A7F601 /* IdleTimerDisabledCheckTest.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 331133DE29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SaveModeAwarenessCheckTest.swift; sourceTree = ""; }; + 33923C7429DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DisabledLocationUpdatesPauseCheckTest.swift; sourceTree = ""; }; + 33DD6BD829E0206900F30347 /* RigidAlarmCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RigidAlarmCheckTest.swift; sourceTree = ""; }; + 5711116829DDC8840061F65D /* BrightnessOverrideCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrightnessOverrideCheckTest.swift; sourceTree = ""; }; + 63062AFF29DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChargeAwarenessCheckTest.swift; sourceTree = ""; }; + 89F0B3832988050100A7F601 /* ecoCodeTestApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ecoCodeTestApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 89F0B3862988050100A7F601 /* ecoCodeTestAppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ecoCodeTestAppApp.swift; sourceTree = ""; }; + 89F0B3882988050100A7F601 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 89F0B38A2988050100A7F601 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 89F0B38D2988050100A7F601 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 89F0B3942988056D00A7F601 /* IdleTimerDisabledCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IdleTimerDisabledCheckTest.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 89F0B3802988050100A7F601 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 5711116729DDC82B0061F65D /* sobriety */ = { + isa = PBXGroup; + children = ( + 5711116829DDC8840061F65D /* BrightnessOverrideCheckTest.swift */, + 33923C7429DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift */, + ); + path = sobriety; + sourceTree = ""; + }; + 63062AFE29DD7C9500D9FDD3 /* power */ = { + isa = PBXGroup; + children = ( + 63062AFF29DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift */, + 331133DE29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift */, + ); + path = power; + sourceTree = ""; + }; + 89F0B37A2988050000A7F601 = { + isa = PBXGroup; + children = ( + 89F0B3852988050100A7F601 /* ecoCodeTestApp */, + 89F0B3842988050100A7F601 /* Products */, + ); + sourceTree = ""; + }; + 89F0B3842988050100A7F601 /* Products */ = { + isa = PBXGroup; + children = ( + 89F0B3832988050100A7F601 /* ecoCodeTestApp.app */, + ); + name = Products; + sourceTree = ""; + }; + 89F0B3852988050100A7F601 /* ecoCodeTestApp */ = { + isa = PBXGroup; + children = ( + 89F0B3962988063600A7F601 /* environment */, + 89F0B3862988050100A7F601 /* ecoCodeTestAppApp.swift */, + 89F0B3882988050100A7F601 /* ContentView.swift */, + 89F0B38A2988050100A7F601 /* Assets.xcassets */, + 89F0B38C2988050100A7F601 /* Preview Content */, + ); + path = ecoCodeTestApp; + sourceTree = ""; + }; + 89F0B38C2988050100A7F601 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 89F0B38D2988050100A7F601 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 89F0B3962988063600A7F601 /* environment */ = { + isa = PBXGroup; + children = ( + 5711116729DDC82B0061F65D /* sobriety */, + 63062AFE29DD7C9500D9FDD3 /* power */, + 89F0B3972988066E00A7F601 /* idleness */, + ); + path = environment; + sourceTree = ""; + }; + 89F0B3972988066E00A7F601 /* idleness */ = { + isa = PBXGroup; + children = ( + 89F0B3942988056D00A7F601 /* IdleTimerDisabledCheckTest.swift */, + 33DD6BD829E0206900F30347 /* RigidAlarmCheckTest.swift */, + ); + path = idleness; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 89F0B3822988050100A7F601 /* ecoCodeTestApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 89F0B3912988050100A7F601 /* Build configuration list for PBXNativeTarget "ecoCodeTestApp" */; + buildPhases = ( + 89F0B37F2988050100A7F601 /* Sources */, + 89F0B3802988050100A7F601 /* Frameworks */, + 89F0B3812988050100A7F601 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ecoCodeTestApp; + productName = ecoCodeTestApp; + productReference = 89F0B3832988050100A7F601 /* ecoCodeTestApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 89F0B37B2988050000A7F601 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1400; + LastUpgradeCheck = 1400; + TargetAttributes = { + 89F0B3822988050100A7F601 = { + CreatedOnToolsVersion = 14.0; + }; + }; + }; + buildConfigurationList = 89F0B37E2988050000A7F601 /* Build configuration list for PBXProject "ecoCodeTestApp" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 89F0B37A2988050000A7F601; + productRefGroup = 89F0B3842988050100A7F601 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 89F0B3822988050100A7F601 /* ecoCodeTestApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 89F0B3812988050100A7F601 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 89F0B38E2988050100A7F601 /* Preview Assets.xcassets in Resources */, + 89F0B38B2988050100A7F601 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 89F0B37F2988050100A7F601 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5711116929DDC8840061F65D /* BrightnessOverrideCheckTest.swift in Sources */, + 89F0B3892988050100A7F601 /* ContentView.swift in Sources */, + 89F0B3952988056D00A7F601 /* IdleTimerDisabledCheckTest.swift in Sources */, + 331133DF29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift in Sources */, + 33923C7529DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift in Sources */, + 63062B0029DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift in Sources */, + 33DD6BD929E0206900F30347 /* RigidAlarmCheckTest.swift in Sources */, + 89F0B3872988050100A7F601 /* ecoCodeTestAppApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 89F0B38F2988050100A7F601 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 89F0B3902988050100A7F601 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 89F0B3922988050100A7F601 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"ecoCodeTestApp/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Je veux tout savoir sur toi et user ta batterie"; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UIUserInterfaceStyle = Light; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "Snapp-.ecoCodeTestApp"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 89F0B3932988050100A7F601 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"ecoCodeTestApp/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Je veux tout savoir sur toi et user ta batterie"; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UIUserInterfaceStyle = Light; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "Snapp-.ecoCodeTestApp"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 89F0B37E2988050000A7F601 /* Build configuration list for PBXProject "ecoCodeTestApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 89F0B38F2988050100A7F601 /* Debug */, + 89F0B3902988050100A7F601 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 89F0B3912988050100A7F601 /* Build configuration list for PBXNativeTarget "ecoCodeTestApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 89F0B3922988050100A7F601 /* Debug */, + 89F0B3932988050100A7F601 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 89F0B37B2988050000A7F601 /* Project object */; +} diff --git a/pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheckliant_automatic.pbxproj b/pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheckliant_automatic.pbxproj new file mode 100644 index 0000000..9cd7cf4 --- /dev/null +++ b/pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheckliant_automatic.pbxproj @@ -0,0 +1,402 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 331133DF29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331133DE29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift */; }; + 33923C7529DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33923C7429DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift */; }; + 33DD6BD929E0206900F30347 /* RigidAlarmCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33DD6BD829E0206900F30347 /* RigidAlarmCheckTest.swift */; }; + 5711116929DDC8840061F65D /* BrightnessOverrideCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5711116829DDC8840061F65D /* BrightnessOverrideCheckTest.swift */; }; + 63062B0029DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63062AFF29DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift */; }; + 89F0B3872988050100A7F601 /* ecoCodeTestAppApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89F0B3862988050100A7F601 /* ecoCodeTestAppApp.swift */; }; + 89F0B3892988050100A7F601 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89F0B3882988050100A7F601 /* ContentView.swift */; }; + 89F0B38B2988050100A7F601 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 89F0B38A2988050100A7F601 /* Assets.xcassets */; }; + 89F0B38E2988050100A7F601 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 89F0B38D2988050100A7F601 /* Preview Assets.xcassets */; }; + 89F0B3952988056D00A7F601 /* IdleTimerDisabledCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89F0B3942988056D00A7F601 /* IdleTimerDisabledCheckTest.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 331133DE29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SaveModeAwarenessCheckTest.swift; sourceTree = ""; }; + 33923C7429DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DisabledLocationUpdatesPauseCheckTest.swift; sourceTree = ""; }; + 33DD6BD829E0206900F30347 /* RigidAlarmCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RigidAlarmCheckTest.swift; sourceTree = ""; }; + 5711116829DDC8840061F65D /* BrightnessOverrideCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrightnessOverrideCheckTest.swift; sourceTree = ""; }; + 63062AFF29DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChargeAwarenessCheckTest.swift; sourceTree = ""; }; + 89F0B3832988050100A7F601 /* ecoCodeTestApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ecoCodeTestApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 89F0B3862988050100A7F601 /* ecoCodeTestAppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ecoCodeTestAppApp.swift; sourceTree = ""; }; + 89F0B3882988050100A7F601 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 89F0B38A2988050100A7F601 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 89F0B38D2988050100A7F601 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 89F0B3942988056D00A7F601 /* IdleTimerDisabledCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IdleTimerDisabledCheckTest.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 89F0B3802988050100A7F601 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 5711116729DDC82B0061F65D /* sobriety */ = { + isa = PBXGroup; + children = ( + 5711116829DDC8840061F65D /* BrightnessOverrideCheckTest.swift */, + 33923C7429DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift */, + ); + path = sobriety; + sourceTree = ""; + }; + 63062AFE29DD7C9500D9FDD3 /* power */ = { + isa = PBXGroup; + children = ( + 63062AFF29DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift */, + 331133DE29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift */, + ); + path = power; + sourceTree = ""; + }; + 89F0B37A2988050000A7F601 = { + isa = PBXGroup; + children = ( + 89F0B3852988050100A7F601 /* ecoCodeTestApp */, + 89F0B3842988050100A7F601 /* Products */, + ); + sourceTree = ""; + }; + 89F0B3842988050100A7F601 /* Products */ = { + isa = PBXGroup; + children = ( + 89F0B3832988050100A7F601 /* ecoCodeTestApp.app */, + ); + name = Products; + sourceTree = ""; + }; + 89F0B3852988050100A7F601 /* ecoCodeTestApp */ = { + isa = PBXGroup; + children = ( + 89F0B3962988063600A7F601 /* environment */, + 89F0B3862988050100A7F601 /* ecoCodeTestAppApp.swift */, + 89F0B3882988050100A7F601 /* ContentView.swift */, + 89F0B38A2988050100A7F601 /* Assets.xcassets */, + 89F0B38C2988050100A7F601 /* Preview Content */, + ); + path = ecoCodeTestApp; + sourceTree = ""; + }; + 89F0B38C2988050100A7F601 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 89F0B38D2988050100A7F601 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 89F0B3962988063600A7F601 /* environment */ = { + isa = PBXGroup; + children = ( + 5711116729DDC82B0061F65D /* sobriety */, + 63062AFE29DD7C9500D9FDD3 /* power */, + 89F0B3972988066E00A7F601 /* idleness */, + ); + path = environment; + sourceTree = ""; + }; + 89F0B3972988066E00A7F601 /* idleness */ = { + isa = PBXGroup; + children = ( + 89F0B3942988056D00A7F601 /* IdleTimerDisabledCheckTest.swift */, + 33DD6BD829E0206900F30347 /* RigidAlarmCheckTest.swift */, + ); + path = idleness; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 89F0B3822988050100A7F601 /* ecoCodeTestApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 89F0B3912988050100A7F601 /* Build configuration list for PBXNativeTarget "ecoCodeTestApp" */; + buildPhases = ( + 89F0B37F2988050100A7F601 /* Sources */, + 89F0B3802988050100A7F601 /* Frameworks */, + 89F0B3812988050100A7F601 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ecoCodeTestApp; + productName = ecoCodeTestApp; + productReference = 89F0B3832988050100A7F601 /* ecoCodeTestApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 89F0B37B2988050000A7F601 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1400; + LastUpgradeCheck = 1400; + TargetAttributes = { + 89F0B3822988050100A7F601 = { + CreatedOnToolsVersion = 14.0; + }; + }; + }; + buildConfigurationList = 89F0B37E2988050000A7F601 /* Build configuration list for PBXProject "ecoCodeTestApp" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 89F0B37A2988050000A7F601; + productRefGroup = 89F0B3842988050100A7F601 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 89F0B3822988050100A7F601 /* ecoCodeTestApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 89F0B3812988050100A7F601 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 89F0B38E2988050100A7F601 /* Preview Assets.xcassets in Resources */, + 89F0B38B2988050100A7F601 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 89F0B37F2988050100A7F601 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5711116929DDC8840061F65D /* BrightnessOverrideCheckTest.swift in Sources */, + 89F0B3892988050100A7F601 /* ContentView.swift in Sources */, + 89F0B3952988056D00A7F601 /* IdleTimerDisabledCheckTest.swift in Sources */, + 331133DF29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift in Sources */, + 33923C7529DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift in Sources */, + 63062B0029DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift in Sources */, + 33DD6BD929E0206900F30347 /* RigidAlarmCheckTest.swift in Sources */, + 89F0B3872988050100A7F601 /* ecoCodeTestAppApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 89F0B38F2988050100A7F601 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 89F0B3902988050100A7F601 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 89F0B3922988050100A7F601 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"ecoCodeTestApp/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Je veux tout savoir sur toi et user ta batterie"; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UIUserInterfaceStyle = Automatic; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "Snapp-.ecoCodeTestApp"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 89F0B3932988050100A7F601 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"ecoCodeTestApp/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Je veux tout savoir sur toi et user ta batterie"; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UIUserInterfaceStyle = Automatic; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "Snapp-.ecoCodeTestApp"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 89F0B37E2988050000A7F601 /* Build configuration list for PBXProject "ecoCodeTestApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 89F0B38F2988050100A7F601 /* Debug */, + 89F0B3902988050100A7F601 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 89F0B3912988050100A7F601 /* Build configuration list for PBXNativeTarget "ecoCodeTestApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 89F0B3922988050100A7F601 /* Debug */, + 89F0B3932988050100A7F601 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 89F0B37B2988050000A7F601 /* Project object */; +} diff --git a/pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheckliant_no_key.pbxproj b/pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheckliant_no_key.pbxproj new file mode 100644 index 0000000..68fedd9 --- /dev/null +++ b/pbxproj-lang/src/test/resources/checks/sobriety/DisabledDarkModeCheckliant_no_key.pbxproj @@ -0,0 +1,400 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 331133DF29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331133DE29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift */; }; + 33923C7529DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33923C7429DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift */; }; + 33DD6BD929E0206900F30347 /* RigidAlarmCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33DD6BD829E0206900F30347 /* RigidAlarmCheckTest.swift */; }; + 5711116929DDC8840061F65D /* BrightnessOverrideCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5711116829DDC8840061F65D /* BrightnessOverrideCheckTest.swift */; }; + 63062B0029DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63062AFF29DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift */; }; + 89F0B3872988050100A7F601 /* ecoCodeTestAppApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89F0B3862988050100A7F601 /* ecoCodeTestAppApp.swift */; }; + 89F0B3892988050100A7F601 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89F0B3882988050100A7F601 /* ContentView.swift */; }; + 89F0B38B2988050100A7F601 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 89F0B38A2988050100A7F601 /* Assets.xcassets */; }; + 89F0B38E2988050100A7F601 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 89F0B38D2988050100A7F601 /* Preview Assets.xcassets */; }; + 89F0B3952988056D00A7F601 /* IdleTimerDisabledCheckTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 89F0B3942988056D00A7F601 /* IdleTimerDisabledCheckTest.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 331133DE29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SaveModeAwarenessCheckTest.swift; sourceTree = ""; }; + 33923C7429DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DisabledLocationUpdatesPauseCheckTest.swift; sourceTree = ""; }; + 33DD6BD829E0206900F30347 /* RigidAlarmCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RigidAlarmCheckTest.swift; sourceTree = ""; }; + 5711116829DDC8840061F65D /* BrightnessOverrideCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrightnessOverrideCheckTest.swift; sourceTree = ""; }; + 63062AFF29DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChargeAwarenessCheckTest.swift; sourceTree = ""; }; + 89F0B3832988050100A7F601 /* ecoCodeTestApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ecoCodeTestApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 89F0B3862988050100A7F601 /* ecoCodeTestAppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ecoCodeTestAppApp.swift; sourceTree = ""; }; + 89F0B3882988050100A7F601 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 89F0B38A2988050100A7F601 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 89F0B38D2988050100A7F601 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 89F0B3942988056D00A7F601 /* IdleTimerDisabledCheckTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IdleTimerDisabledCheckTest.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 89F0B3802988050100A7F601 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 5711116729DDC82B0061F65D /* sobriety */ = { + isa = PBXGroup; + children = ( + 5711116829DDC8840061F65D /* BrightnessOverrideCheckTest.swift */, + 33923C7429DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift */, + ); + path = sobriety; + sourceTree = ""; + }; + 63062AFE29DD7C9500D9FDD3 /* power */ = { + isa = PBXGroup; + children = ( + 63062AFF29DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift */, + 331133DE29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift */, + ); + path = power; + sourceTree = ""; + }; + 89F0B37A2988050000A7F601 = { + isa = PBXGroup; + children = ( + 89F0B3852988050100A7F601 /* ecoCodeTestApp */, + 89F0B3842988050100A7F601 /* Products */, + ); + sourceTree = ""; + }; + 89F0B3842988050100A7F601 /* Products */ = { + isa = PBXGroup; + children = ( + 89F0B3832988050100A7F601 /* ecoCodeTestApp.app */, + ); + name = Products; + sourceTree = ""; + }; + 89F0B3852988050100A7F601 /* ecoCodeTestApp */ = { + isa = PBXGroup; + children = ( + 89F0B3962988063600A7F601 /* environment */, + 89F0B3862988050100A7F601 /* ecoCodeTestAppApp.swift */, + 89F0B3882988050100A7F601 /* ContentView.swift */, + 89F0B38A2988050100A7F601 /* Assets.xcassets */, + 89F0B38C2988050100A7F601 /* Preview Content */, + ); + path = ecoCodeTestApp; + sourceTree = ""; + }; + 89F0B38C2988050100A7F601 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 89F0B38D2988050100A7F601 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 89F0B3962988063600A7F601 /* environment */ = { + isa = PBXGroup; + children = ( + 5711116729DDC82B0061F65D /* sobriety */, + 63062AFE29DD7C9500D9FDD3 /* power */, + 89F0B3972988066E00A7F601 /* idleness */, + ); + path = environment; + sourceTree = ""; + }; + 89F0B3972988066E00A7F601 /* idleness */ = { + isa = PBXGroup; + children = ( + 89F0B3942988056D00A7F601 /* IdleTimerDisabledCheckTest.swift */, + 33DD6BD829E0206900F30347 /* RigidAlarmCheckTest.swift */, + ); + path = idleness; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 89F0B3822988050100A7F601 /* ecoCodeTestApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 89F0B3912988050100A7F601 /* Build configuration list for PBXNativeTarget "ecoCodeTestApp" */; + buildPhases = ( + 89F0B37F2988050100A7F601 /* Sources */, + 89F0B3802988050100A7F601 /* Frameworks */, + 89F0B3812988050100A7F601 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ecoCodeTestApp; + productName = ecoCodeTestApp; + productReference = 89F0B3832988050100A7F601 /* ecoCodeTestApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 89F0B37B2988050000A7F601 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1400; + LastUpgradeCheck = 1400; + TargetAttributes = { + 89F0B3822988050100A7F601 = { + CreatedOnToolsVersion = 14.0; + }; + }; + }; + buildConfigurationList = 89F0B37E2988050000A7F601 /* Build configuration list for PBXProject "ecoCodeTestApp" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 89F0B37A2988050000A7F601; + productRefGroup = 89F0B3842988050100A7F601 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 89F0B3822988050100A7F601 /* ecoCodeTestApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 89F0B3812988050100A7F601 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 89F0B38E2988050100A7F601 /* Preview Assets.xcassets in Resources */, + 89F0B38B2988050100A7F601 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 89F0B37F2988050100A7F601 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5711116929DDC8840061F65D /* BrightnessOverrideCheckTest.swift in Sources */, + 89F0B3892988050100A7F601 /* ContentView.swift in Sources */, + 89F0B3952988056D00A7F601 /* IdleTimerDisabledCheckTest.swift in Sources */, + 331133DF29DDC9170006C79D /* SaveModeAwarenessCheckTest.swift in Sources */, + 33923C7529DDCC1700821F6F /* DisabledLocationUpdatesPauseCheckTest.swift in Sources */, + 63062B0029DD7CBD00D9FDD3 /* ChargeAwarenessCheckTest.swift in Sources */, + 33DD6BD929E0206900F30347 /* RigidAlarmCheckTest.swift in Sources */, + 89F0B3872988050100A7F601 /* ecoCodeTestAppApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 89F0B38F2988050100A7F601 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 89F0B3902988050100A7F601 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 89F0B3922988050100A7F601 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"ecoCodeTestApp/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Je veux tout savoir sur toi et user ta batterie"; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "Snapp-.ecoCodeTestApp"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 89F0B3932988050100A7F601 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"ecoCodeTestApp/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Je veux tout savoir sur toi et user ta batterie"; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "Snapp-.ecoCodeTestApp"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 89F0B37E2988050000A7F601 /* Build configuration list for PBXProject "ecoCodeTestApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 89F0B38F2988050100A7F601 /* Debug */, + 89F0B3902988050100A7F601 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 89F0B3912988050100A7F601 /* Build configuration list for PBXNativeTarget "ecoCodeTestApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 89F0B3922988050100A7F601 /* Debug */, + 89F0B3932988050100A7F601 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 89F0B37B2988050000A7F601 /* Project object */; +}