Skip to content

Commit

Permalink
DXOC-831 Actualized codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
falconandy committed May 14, 2023
1 parent ff22811 commit 6538467
Show file tree
Hide file tree
Showing 114 changed files with 2,644 additions and 2,329 deletions.
9 changes: 6 additions & 3 deletions android/java/v1/AmpliApp/ampli.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
"SourceId": "5152cfab-d377-4cea-bc98-47320e113d06",
"Path": "./app/src/main/java/com/amplitude/ampli",
"Branch": "main",
"Version": "0.0.0",
"Version": "1.0.0",
"Runtime": "android:java-ampli",
"VersionId": "79154a50-f057-4db5-9755-775e4e9f05e6",
"OmitApiKeys": true
"VersionId": "a61c3908-ca4d-4c8d-8f81-54ad3ba17b9c",
"OmitApiKeys": true,
"Platform": "Android",
"Language": "Java",
"SDK": "com.amplitude:android-sdk:2.+"
}
270 changes: 135 additions & 135 deletions android/java/v1/AmpliApp/app/src/main/java/com/amplitude/ampli/Ampli.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// This file is generated by Amplitude.
// To update run 'ampli pull java-ampli'
//
// Required dependencies: com.amplitude:android-sdk:2.37.0, com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 0
// Required dependencies: com.amplitude:android-sdk:[2.37.0,3.0), com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 1
// Build: 1.0.0
// Runtime: android:java-ampli
//
Expand Down Expand Up @@ -45,15 +45,15 @@ private synchronized static void createSingleton() {
}

public enum Environment {
DEV,
PROD
PROD,
DEV
}

public static final Map<Environment, String> API_KEY = new HashMap<>();

static {
API_KEY.put(Environment.DEV, "");
API_KEY.put(Environment.PROD, "");
API_KEY.put(Environment.DEV, "");
}

private boolean disabled = false;
Expand All @@ -72,8 +72,8 @@ public AmplitudeClient getClient() {
private final Plan observePlan = new Plan()
.setBranch("main")
.setSource("java-ampli")
.setVersion("0")
.setVersionId("79154a50-f057-4db5-9755-775e4e9f05e6");
.setVersion("1")
.setVersionId("a61c3908-ca4d-4c8d-8f81-54ad3ba17b9c");

// Options should have 'environment', 'client.api_key' or 'client.instance'
public void load(android.content.Context appContext, LoadOptions options) {
Expand Down Expand Up @@ -185,70 +185,6 @@ public void flush() {
this.client.uploadEvents();
}

/**
* EventMaxIntForTest
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/EventMaxIntForTest">View in Tracking Plan</a>
* <p>
* Event to test schema validation
* <p>
* Owner: Test codegen
*
* @param event The event
*/
public void eventMaxIntForTest(EventMaxIntForTest event) {
this.eventMaxIntForTest(event, null, null);
}

/**
* EventMaxIntForTest
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/EventMaxIntForTest">View in Tracking Plan</a>
* <p>
* Event to test schema validation
* <p>
* Owner: Test codegen
*
* @param event The event
* @param options The event's options
*/
public void eventMaxIntForTest(EventMaxIntForTest event, EventOptions options) {
this.eventMaxIntForTest(event, options, null);
}

/**
* EventMaxIntForTest
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/EventMaxIntForTest">View in Tracking Plan</a>
* <p>
* Event to test schema validation
* <p>
* Owner: Test codegen
*
* @param event The event
* @param extra Extra untyped parameters for use in middleware
*/
public void eventMaxIntForTest(EventMaxIntForTest event, MiddlewareExtra extra) {
this.eventMaxIntForTest(event, null, extra);
}

/**
* EventMaxIntForTest
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/EventMaxIntForTest">View in Tracking Plan</a>
* <p>
* Event to test schema validation
* <p>
* Owner: Test codegen
*
* @param event The event
* @param options The event's options
* @param extra Extra untyped parameters for use in middleware
*/
public void eventMaxIntForTest(EventMaxIntForTest event, EventOptions options, MiddlewareExtra extra) {
this.track(event, options, extra);
}

/**
* Event No Properties
* <p>
Expand Down Expand Up @@ -561,70 +497,6 @@ public void eventWithConstTypes(EventOptions options, MiddlewareExtra extra) {
this.track(EventWithConstTypes.builder().build(), options, extra);
}

/**
* event withDifferent_CasingTypes
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/event%20withDifferent_CasingTypes">View in Tracking Plan</a>
* <p>
* Description for case with space
* <p>
* Owner: Test codegen
*
* @param event The event
*/
public void eventWithDifferentCasingTypes(EventWithDifferentCasingTypes event) {
this.eventWithDifferentCasingTypes(event, null, null);
}

/**
* event withDifferent_CasingTypes
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/event%20withDifferent_CasingTypes">View in Tracking Plan</a>
* <p>
* Description for case with space
* <p>
* Owner: Test codegen
*
* @param event The event
* @param options The event's options
*/
public void eventWithDifferentCasingTypes(EventWithDifferentCasingTypes event, EventOptions options) {
this.eventWithDifferentCasingTypes(event, options, null);
}

/**
* event withDifferent_CasingTypes
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/event%20withDifferent_CasingTypes">View in Tracking Plan</a>
* <p>
* Description for case with space
* <p>
* Owner: Test codegen
*
* @param event The event
* @param extra Extra untyped parameters for use in middleware
*/
public void eventWithDifferentCasingTypes(EventWithDifferentCasingTypes event, MiddlewareExtra extra) {
this.eventWithDifferentCasingTypes(event, null, extra);
}

/**
* event withDifferent_CasingTypes
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/event%20withDifferent_CasingTypes">View in Tracking Plan</a>
* <p>
* Description for case with space
* <p>
* Owner: Test codegen
*
* @param event The event
* @param options The event's options
* @param extra Extra untyped parameters for use in middleware
*/
public void eventWithDifferentCasingTypes(EventWithDifferentCasingTypes event, EventOptions options, MiddlewareExtra extra) {
this.track(event, options, extra);
}

/**
* Event With Enum Types
* <p>
Expand Down Expand Up @@ -881,6 +753,134 @@ public void eventWithTemplateProperties(EventWithTemplateProperties event, Event
this.track(event, options, extra);
}

/**
* event withDifferent_CasingTypes
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/event%20withDifferent_CasingTypes">View in Tracking Plan</a>
* <p>
* Description for case with space
* <p>
* Owner: Test codegen
*
* @param event The event
*/
public void eventWithDifferentCasingTypes(EventWithDifferentCasingTypes event) {
this.eventWithDifferentCasingTypes(event, null, null);
}

/**
* event withDifferent_CasingTypes
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/event%20withDifferent_CasingTypes">View in Tracking Plan</a>
* <p>
* Description for case with space
* <p>
* Owner: Test codegen
*
* @param event The event
* @param options The event's options
*/
public void eventWithDifferentCasingTypes(EventWithDifferentCasingTypes event, EventOptions options) {
this.eventWithDifferentCasingTypes(event, options, null);
}

/**
* event withDifferent_CasingTypes
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/event%20withDifferent_CasingTypes">View in Tracking Plan</a>
* <p>
* Description for case with space
* <p>
* Owner: Test codegen
*
* @param event The event
* @param extra Extra untyped parameters for use in middleware
*/
public void eventWithDifferentCasingTypes(EventWithDifferentCasingTypes event, MiddlewareExtra extra) {
this.eventWithDifferentCasingTypes(event, null, extra);
}

/**
* event withDifferent_CasingTypes
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/event%20withDifferent_CasingTypes">View in Tracking Plan</a>
* <p>
* Description for case with space
* <p>
* Owner: Test codegen
*
* @param event The event
* @param options The event's options
* @param extra Extra untyped parameters for use in middleware
*/
public void eventWithDifferentCasingTypes(EventWithDifferentCasingTypes event, EventOptions options, MiddlewareExtra extra) {
this.track(event, options, extra);
}

/**
* EventMaxIntForTest
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/EventMaxIntForTest">View in Tracking Plan</a>
* <p>
* Event to test schema validation
* <p>
* Owner: Test codegen
*
* @param event The event
*/
public void eventMaxIntForTest(EventMaxIntForTest event) {
this.eventMaxIntForTest(event, null, null);
}

/**
* EventMaxIntForTest
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/EventMaxIntForTest">View in Tracking Plan</a>
* <p>
* Event to test schema validation
* <p>
* Owner: Test codegen
*
* @param event The event
* @param options The event's options
*/
public void eventMaxIntForTest(EventMaxIntForTest event, EventOptions options) {
this.eventMaxIntForTest(event, options, null);
}

/**
* EventMaxIntForTest
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/EventMaxIntForTest">View in Tracking Plan</a>
* <p>
* Event to test schema validation
* <p>
* Owner: Test codegen
*
* @param event The event
* @param extra Extra untyped parameters for use in middleware
*/
public void eventMaxIntForTest(EventMaxIntForTest event, MiddlewareExtra extra) {
this.eventMaxIntForTest(event, null, extra);
}

/**
* EventMaxIntForTest
* <p>
* <a href="https://data.amplitude.com/test-codegen/Test%20Codegen/events/main/latest/EventMaxIntForTest">View in Tracking Plan</a>
* <p>
* Event to test schema validation
* <p>
* Owner: Test codegen
*
* @param event The event
* @param options The event's options
* @param extra Extra untyped parameters for use in middleware
*/
public void eventMaxIntForTest(EventMaxIntForTest event, EventOptions options, MiddlewareExtra extra) {
this.track(event, options, extra);
}

private void handleEventOptions(EventOptions options, String userId) {
if (options != null && options.deviceId != null) {
this.client.setDeviceId(options.deviceId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// This file is generated by Amplitude.
// To update run 'ampli pull java-ampli'
//
// Required dependencies: com.amplitude:android-sdk:2.37.0, com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 0
// Required dependencies: com.amplitude:android-sdk:[2.37.0,3.0), com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 1
// Build: 1.0.0
// Runtime: android:java-ampli
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// This file is generated by Amplitude.
// To update run 'ampli pull java-ampli'
//
// Required dependencies: com.amplitude:android-sdk:2.37.0, com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 0
// Required dependencies: com.amplitude:android-sdk:[2.37.0,3.0), com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 1
// Build: 1.0.0
// Runtime: android:java-ampli
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// This file is generated by Amplitude.
// To update run 'ampli pull java-ampli'
//
// Required dependencies: com.amplitude:android-sdk:2.37.0, com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 0
// Required dependencies: com.amplitude:android-sdk:[2.37.0,3.0), com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 1
// Build: 1.0.0
// Runtime: android:java-ampli
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// This file is generated by Amplitude.
// To update run 'ampli pull java-ampli'
//
// Required dependencies: com.amplitude:android-sdk:2.37.0, com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 0
// Required dependencies: com.amplitude:android-sdk:[2.37.0,3.0), com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 1
// Build: 1.0.0
// Runtime: android:java-ampli
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// This file is generated by Amplitude.
// To update run 'ampli pull java-ampli'
//
// Required dependencies: com.amplitude:android-sdk:2.37.0, com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 0
// Required dependencies: com.amplitude:android-sdk:[2.37.0,3.0), com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 1
// Build: 1.0.0
// Runtime: android:java-ampli
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// This file is generated by Amplitude.
// To update run 'ampli pull java-ampli'
//
// Required dependencies: com.amplitude:android-sdk:2.37.0, com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 0
// Required dependencies: com.amplitude:android-sdk:[2.37.0,3.0), com.squareup.okhttp3:okhttp:4.2.2
// Tracking Plan Version: 1
// Build: 1.0.0
// Runtime: android:java-ampli
//
Expand Down
Loading

0 comments on commit 6538467

Please sign in to comment.