Skip to content

Commit

Permalink
try out with android ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Feb 14, 2024
1 parent 7d35f02 commit d74aa54
Show file tree
Hide file tree
Showing 32 changed files with 235 additions and 69 deletions.
Empty file.
68 changes: 0 additions & 68 deletions .github/workflows/e2e-ios.yml

This file was deleted.

Binary file added test/android/.gradle/8.0.1/checksums/checksums.lock
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
package org.gradle.accessors.dm;

import org.gradle.api.NonNullApi;
import org.gradle.api.artifacts.MinimalExternalModuleDependency;
import org.gradle.plugin.use.PluginDependency;
import org.gradle.api.artifacts.ExternalModuleDependencyBundle;
import org.gradle.api.artifacts.MutableVersionConstraint;
import org.gradle.api.provider.Provider;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.provider.ProviderFactory;
import org.gradle.api.internal.catalog.AbstractExternalDependencyFactory;
import org.gradle.api.internal.catalog.DefaultVersionCatalog;
import java.util.Map;
import org.gradle.api.internal.attributes.ImmutableAttributesFactory;
import org.gradle.api.internal.artifacts.dsl.CapabilityNotationParser;
import javax.inject.Inject;

/**
* A catalog of dependencies accessible via the `libs` extension.
*/
@NonNullApi
public class LibrariesForLibs extends AbstractExternalDependencyFactory {

private final AbstractExternalDependencyFactory owner = this;
private final AndroidLibraryAccessors laccForAndroidLibraryAccessors = new AndroidLibraryAccessors(owner);
private final KotlinLibraryAccessors laccForKotlinLibraryAccessors = new KotlinLibraryAccessors(owner);
private final VersionAccessors vaccForVersionAccessors = new VersionAccessors(providers, config);
private final BundleAccessors baccForBundleAccessors = new BundleAccessors(objects, providers, config, attributesFactory, capabilityNotationParser);
private final PluginAccessors paccForPluginAccessors = new PluginAccessors(providers, config);

@Inject
public LibrariesForLibs(DefaultVersionCatalog config, ProviderFactory providers, ObjectFactory objects, ImmutableAttributesFactory attributesFactory, CapabilityNotationParser capabilityNotationParser) {
super(config, providers, objects, attributesFactory, capabilityNotationParser);
}

/**
* Creates a dependency provider for gson (com.google.code.gson:gson)
* This dependency was declared in catalog libs.versions.toml
*/
public Provider<MinimalExternalModuleDependency> getGson() { return create("gson"); }

/**
* Creates a dependency provider for guava (com.google.guava:guava)
* This dependency was declared in catalog libs.versions.toml
*/
public Provider<MinimalExternalModuleDependency> getGuava() { return create("guava"); }

/**
* Creates a dependency provider for javapoet (com.squareup:javapoet)
* This dependency was declared in catalog libs.versions.toml
*/
public Provider<MinimalExternalModuleDependency> getJavapoet() { return create("javapoet"); }

/**
* Creates a dependency provider for junit (junit:junit)
* This dependency was declared in catalog libs.versions.toml
*/
public Provider<MinimalExternalModuleDependency> getJunit() { return create("junit"); }

/**
* Returns the group of libraries at android
*/
public AndroidLibraryAccessors getAndroid() { return laccForAndroidLibraryAccessors; }

/**
* Returns the group of libraries at kotlin
*/
public KotlinLibraryAccessors getKotlin() { return laccForKotlinLibraryAccessors; }

/**
* Returns the group of versions at versions
*/
public VersionAccessors getVersions() { return vaccForVersionAccessors; }

/**
* Returns the group of bundles at bundles
*/
public BundleAccessors getBundles() { return baccForBundleAccessors; }

/**
* Returns the group of plugins at plugins
*/
public PluginAccessors getPlugins() { return paccForPluginAccessors; }

public static class AndroidLibraryAccessors extends SubDependencyFactory {
private final AndroidGradleLibraryAccessors laccForAndroidGradleLibraryAccessors = new AndroidGradleLibraryAccessors(owner);

public AndroidLibraryAccessors(AbstractExternalDependencyFactory owner) { super(owner); }

/**
* Returns the group of libraries at android.gradle
*/
public AndroidGradleLibraryAccessors getGradle() { return laccForAndroidGradleLibraryAccessors; }

}

public static class AndroidGradleLibraryAccessors extends SubDependencyFactory {

public AndroidGradleLibraryAccessors(AbstractExternalDependencyFactory owner) { super(owner); }

/**
* Creates a dependency provider for plugin (com.android.tools.build:gradle)
* This dependency was declared in catalog libs.versions.toml
*/
public Provider<MinimalExternalModuleDependency> getPlugin() { return create("android.gradle.plugin"); }

}

public static class KotlinLibraryAccessors extends SubDependencyFactory {
private final KotlinGradleLibraryAccessors laccForKotlinGradleLibraryAccessors = new KotlinGradleLibraryAccessors(owner);

public KotlinLibraryAccessors(AbstractExternalDependencyFactory owner) { super(owner); }

/**
* Returns the group of libraries at kotlin.gradle
*/
public KotlinGradleLibraryAccessors getGradle() { return laccForKotlinGradleLibraryAccessors; }

}

public static class KotlinGradleLibraryAccessors extends SubDependencyFactory {

public KotlinGradleLibraryAccessors(AbstractExternalDependencyFactory owner) { super(owner); }

/**
* Creates a dependency provider for plugin (org.jetbrains.kotlin:kotlin-gradle-plugin)
* This dependency was declared in catalog libs.versions.toml
*/
public Provider<MinimalExternalModuleDependency> getPlugin() { return create("kotlin.gradle.plugin"); }

}

public static class VersionAccessors extends VersionFactory {

public VersionAccessors(ProviderFactory providers, DefaultVersionCatalog config) { super(providers, config); }

/**
* Returns the version associated to this alias: agp (8.1.1)
* If the version is a rich version and that its not expressible as a
* single version string, then an empty string is returned.
* This version was declared in catalog libs.versions.toml
*/
public Provider<String> getAgp() { return getVersion("agp"); }

/**
* Returns the version associated to this alias: gson (2.8.9)
* If the version is a rich version and that its not expressible as a
* single version string, then an empty string is returned.
* This version was declared in catalog libs.versions.toml
*/
public Provider<String> getGson() { return getVersion("gson"); }

/**
* Returns the version associated to this alias: guava (31.0.1-jre)
* If the version is a rich version and that its not expressible as a
* single version string, then an empty string is returned.
* This version was declared in catalog libs.versions.toml
*/
public Provider<String> getGuava() { return getVersion("guava"); }

/**
* Returns the version associated to this alias: javapoet (1.13.0)
* If the version is a rich version and that its not expressible as a
* single version string, then an empty string is returned.
* This version was declared in catalog libs.versions.toml
*/
public Provider<String> getJavapoet() { return getVersion("javapoet"); }

/**
* Returns the version associated to this alias: junit (4.13.2)
* If the version is a rich version and that its not expressible as a
* single version string, then an empty string is returned.
* This version was declared in catalog libs.versions.toml
*/
public Provider<String> getJunit() { return getVersion("junit"); }

/**
* Returns the version associated to this alias: kotlin (1.8.0)
* If the version is a rich version and that its not expressible as a
* single version string, then an empty string is returned.
* This version was declared in catalog libs.versions.toml
*/
public Provider<String> getKotlin() { return getVersion("kotlin"); }

}

public static class BundleAccessors extends BundleFactory {

public BundleAccessors(ObjectFactory objects, ProviderFactory providers, DefaultVersionCatalog config, ImmutableAttributesFactory attributesFactory, CapabilityNotationParser capabilityNotationParser) { super(objects, providers, config, attributesFactory, capabilityNotationParser); }

}

public static class PluginAccessors extends PluginFactory {
private final KotlinPluginAccessors paccForKotlinPluginAccessors = new KotlinPluginAccessors(providers, config);

public PluginAccessors(ProviderFactory providers, DefaultVersionCatalog config) { super(providers, config); }

/**
* Returns the group of plugins at plugins.kotlin
*/
public KotlinPluginAccessors getKotlin() { return paccForKotlinPluginAccessors; }

}

public static class KotlinPluginAccessors extends PluginFactory {

public KotlinPluginAccessors(ProviderFactory providers, DefaultVersionCatalog config) { super(providers, config); }

/**
* Creates a plugin provider for kotlin.jvm to the plugin id 'org.jetbrains.kotlin.jvm'
* This plugin was declared in catalog libs.versions.toml
*/
public Provider<PluginDependency> getJvm() { return createPlugin("kotlin.jvm"); }

}

}
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
2 changes: 2 additions & 0 deletions test/android/.gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Wed Feb 14 14:28:07 CET 2024
gradle.version=8.0.1
Binary file not shown.
Binary file added test/android/.gradle/file-system.probe
Binary file not shown.
Empty file.
2 changes: 1 addition & 1 deletion test/codecept.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const config = {
helpers: {
Detox: {
require: '../Detox.js',
configuration: 'ios.sim.debug',
configuration: 'android.emu.debug',
reloadReactNative: true,
reuse: true,
},
Expand Down
15 changes: 15 additions & 0 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,22 @@
"ios.sim.debug": {
"device": "simulator",
"app": "ios.debug"
},
"android.emu.debug": {
"device": "emulator",
"app": "android.debug"
}
},
"apps": {
"ios.debug": {
"type": "ios.app",
"binaryPath": "../test/ios/build/Build/Products/Debug-iphonesimulator/MyTestApp.app",
"build": "xcodebuild -workspace ../test/ios/MyTestApp.xcworkspace -scheme MyTestApp -configuration Debug -sdk iphonesimulator -derivedDataPath ../test/ios/build"
},
"android.debug": {
"type": "android.apk",
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug"
}
},
"devices": {
Expand All @@ -41,6 +50,12 @@
"device": {
"type": "iPhone 15"
}
},
"emulator": {
"type": "android.emulator",
"device": {
"avdName": "Nexus_5X_API_34"
}
}
}
}
Expand Down

0 comments on commit d74aa54

Please sign in to comment.